Reputation: 319
Can anybody give me a code which would return full path to System32 directory for Windows kernel driver?
Upvotes: 4
Views: 2047
Reputation: 12943
You're lucky one. There's an open-source example that demonstrates exactly what you're looking for.
AFAIK there's no equivalent to a function such as GetSystemDirectory
or whatever. However you may access the system-reserved file system objects by using symbolic links.
directory using a symbolic link.
The reserved symbolic link for the "system32" directory is L"\\SystemRoot"
Upvotes: 6