- STATUS_OBJECT_NAME_NOT_FOUND
- Posted by Anand Kalyan on December 16th, 2003
Hi
I need to open a file in c:\winnt\system32\test.txt and read its contents in
my kernel mode code.
I used ZwCreateFile, with the unicode string L\\SystemRoot\\system32\\test.
The error return is c0000034 (STATUS_OBJECT_NAME_NOT_FOUND).
Could anyone guide me how to open the test.txt file and read its contets
from my kernel mode code??
regards,
Anand.
- Posted by Matt on December 16th, 2003
Just use the filename itself without a path. I had to do
this with NdisOPenFile that was in system32\drivers, so it
is probably the same.
I guess this is probably to do with the fact that it is
ONLY the system32 directory that is available early in the
boot process. (Or is there NO directory structure early in
the boot process so all files have no path? Thats one for
discussion)
ATB
Matt

