当前位置: 代码迷 >> 驱动开发 >> 微过滤驱动与IRP重入,该如何解决
  详细解决方案

微过滤驱动与IRP重入,该如何解决

热度:105   发布时间:2016-04-28 10:29:00.0
微过滤驱动与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似乎是解决了重入的问题。
  相关解决方案