微过滤驱动与IRP重入
在文件微过滤驱动中调ZwQueryInformationFile CwReadFile等函数是否会有IRP重入产生?
[解决办法]
简单的说 需要调用你驱动上层的驱动的 就会重新收到irp
zw 会重入
以下是 msdn上的 转述
A driver should call ZwReadFile in the context of the system process if any of the following conditions exist:
The driver created the file handle that it passes to ZwReadFile.
ZwReadFile will notify the driver of I/O completion by means of an event that the driver created.
ZwReadFile will notify the driver of I/O completion by means of an APC callback routine that the driver passes to ZwReadFile.
多看wdk的帮助文件,多看msdn
[解决办法]
我记得minifilter似乎是解决了重入的问题。