开发者

Do mini-filter functions need APCs enabled?

Many Zw* functions that work with files (such as ZwCreateFile) need to be called at PASSIVE_LEVEL with APCs enabled: http://msdn.microsoft.com/en-us/library/ff566424%28VS.85%29.aspx. This is because, internally, I/O operations are asynchronous开发者_StackOverflowly and the completion of an operation is delivered through an APC (correct me if I'm wrong).

However, the documentation for similar functions from a mini-filter (such as FltCreateFile, FltReadFile, etc) does not specify that APCs should be enabled. Is it safe to call FltCreateFile/FltReadFile with APCs disabled?

Thanks!


You can call ZwCreateFile and FltCreateFile only at PASSIVE_LEVEL and with special kernel APCs enabled (normal kernel APCs can be disabled).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜