Hi All,
I want to get System32 path in my driver. My driver is bootstart so no usermode application do it for me. How my driver can do it?
Thanks & Regards,
Amit.
Hi All,
I want to get System32 path in my driver. My driver is bootstart so no usermode application do it for me. How my driver can do it?
Thanks & Regards,
Amit.
Do not care about this, just use \SystemRoot\system32 as pathname prefix in
ZwCreateFile. This will reference the system32 OS’s directory. The drive-letter
based pathname is just not needed.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi All,
>
> I want to get System32 path in my driver. My driver is bootstart so no
usermode application do it for me. How my driver can do it?
>
> Thanks & Regards,
> Amit.
>
Thanks,
Now I am using
\SystemRoot\system32\xyz.dat
file path to read the file, But ZwCreateFile() is returning STATUS_OBJECT_PATH_NOT_FOUND error status.
I have confirmed file exsist there.
L"\SystemRoot\System32\xyz.dat"
My friend
I have done the same otherwise it will give STATUS_OBJECT_PATH_SYNTAX_BAD error
> I have done the same otherwise it will give STATUS_OBJECT_PATH_SYNTAX_BAD error
Don’t forget about ‘??’ prefix - it should be like L"\??\SystemRoot\System32\xyz.dat
Anton Bassov