阅读:1809回复:2
如何在IRP_MJ_DIRECTORY_CONTROL中获取全路径
rt~~~
我要做个一个可以 隐藏 指定路径下的文件 的东西。 |
|
沙发#
发布于:2010-05-18 09:23
已经解决,用 IoQueryFileDosDeviceName
|
|
板凳#
发布于:2010-05-18 22:29
Be careful about IRQL.
Checking MS document, you can see that IRP_MJ_DIRECTORY_CONTROL routine could be running at APC_LEVEL, while the function IoQueryFileDosDeviceName() requires PASSIVE_LEVEL. One way to solve this problem could be detecting IRQL at run-time and creating work items if necessary. |
|