05 2013 档案
摘要:The AdapterControl routine starts a DMA data-transfer operation.AdapterControl例程启动一个DMA数据传输操作。语法:DRIVER_CONTROL AdapterControl;IO_ALLOCATION_ACTION AdapterControl( _In_ struct _DEVICE_OBJECT *DeviceObject, _Inout_ struct _IRP *Irp, _In_ PVOID MapRegisterBase, _In_ PVOID Context){ .....
阅读全文
摘要:标准驱动程序This section describes the required and optional routines that you must implement in your driver to respond to calls from Windows or other drivers. 本节介绍当驱动被Windows或其它驱动程序调用时,为了做出适当的回应,你的驱动必须实现的必需和可选的例程。When these routines are called, your code must respond to the call and return the appropriat
阅读全文
摘要:DriverEntry is the first routine called after a driver is loaded, and is responsible for initializing the driver.DriverEntry是驱动加载后第一个执行的例程,它负责初始化驱动程序。语法:DRIVER_INITIALIZE DriverEntry;NTSTATUS DriverEntry( _In_ struct _DRIVER_OBJECT *DriverObject, _In_ PUNICODE_STRING RegistryPath){ ... }参数: Driv...
阅读全文
摘要:文件系统过滤驱动的DriverEntry需要做的事情:第一步:创建一个控制设备。第二步:设置普通分发函数;第三步: 设置FastIo分发函数;第四步:编写文件系统变动回调函数,并在其中绑定刚创建的文件系统控制设备;第五步:使用IoRegisterFsRegistrationChange调用注册这个回调函数。
阅读全文

浙公网安备 33010602011771号