驱动DriverEntry函数实现体中,开发人员通常会在DriverObject->MajorFunction中填写分发函数指针。
为快速识别每一个分发函数,特别记录常用的分发函数指针距DriverObject指针的偏移量
DriverObject+0x34 DriverUnload
DriverObject+0x38 DeviceCreate
DriverObject+0x40 DeviceClose
DriverObject+0x44 DeviceRead
DriverObject+0x48 DeviceWrite
DriverObject+0x70 DeviceControl
DriverObject+0x80 DeviceClean
IRP+0x18 Irp->IoStatus.Status
IRP+0x1c Irp->IoStatus.Information