user1262425
user1262425

Reputation: 319

Get System32 directory in kernel

Can anybody give me a code which would return full path to System32 directory for Windows kernel driver?

Upvotes: 4

Views: 2047

Answers (1)

valdo
valdo

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

Related Questions