Get the System32 directory in the kernel

Can someone give me some code that will return the full path to the System32 directory for the Windows kernel driver?

+4
source share
1 answer

What a score. There is an open source example that demonstrates exactly what you are looking for .

AFAIK there is no equivalent function like GetSystemDirectory or anything else. However, you can access system backup objects using symbolic links.

using a symbolic link.

Reserved symbolic link for directory "system32" L"\\SystemRoot"

+5
source

Source: https://habr.com/ru/post/1400884/


All Articles