谁能给我一个代码,将返回到System32目录的Windows内核驱动程序的完整路径?
发布于 2012-03-12 04:47:36
你真幸运。There's an open-source example that demonstrates exactly what you're looking for。
AFAIK没有等价物,比如GetSystemDirectory之类的函数。但是,您可以使用符号链接访问系统保留的文件系统对象。
使用符号链接的目录。
为"system32“目录保留的符号链接是L"\\SystemRoot"
https://stackoverflow.com/questions/9658599
复制相似问题