我想在文件打开时计算该文件的md5值,是特定的值,就拦截。那怎么做呢。 就是打开文件哪里出错了。我把ZwCreateFile函数换成FltCreateFile函数,这个函数的第二个参数: [in, optional] Instance An opaque instance pointer for the minifilter driver instance that the create request is to be sent to. The instance must be attached to the volume where the file or directory resides. This parameter is optional and can be NULL. If this parameter is NULL, the request is sent to the device object at the top of the file system driver stack for the volume. If it is non-NULL, the request is sent only to minifilter driver instances that are attached below the specified instance.