Can anybody give me a code which would return full path to System32 directory for Windows kernel driver?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
GetSystemDirectoryor 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"