Problem with opening file in system32.

Hi All,

I am reading a file in eg. system32\abc.dat in my bootstart driver for that I am using L"\SystemRoot\System32\abc.dat" path but ZwCreateFile fails with status code STATUS_OBJECT_PATH_NOT_FOUND. What will be the problem?

Thanks & Regards,
Amit.

I found that \SystemRoot this is not availble in namespace when my boot start drivr try to open file so the status code STATUS_OBJECT_PATH_NOT_FOUND. Bot you can use it afterword. eg. I have used it in shutdown notification.