资 源 简 介
CharFilter_Class实例是对CharFilter实例的完善。在CharFilter实例中,我们定义了四个全局变量,这不符合WDM驱动程序的要求,它限制了IRP的可重入性,我们应该使用局部变量。
该实例定义了一个READ_COMPLETION_INFO结构,当有DeviceControl 调用时,就分配一个结构对象,参数设置完后,就将该结构对象地址指针放在I.FileObject()->FsContext中。
-CharFilter_Class CharFilter example of the perfect examples. In CharFilter example, we define four global variables, which does not conform to the WDM driver, which limits the IRP, can be used, we should use local variables. The examples READ_COMPLETION_INFO definition of a structure, when DeviceControl call, on the allocation of a target structure, parameter setting after the end of this structure on the address pointer on the object I. FileObject ()- gt; FsContext China.