-
-
[求助]vhidmini驱动不能操作IRP_MJ_READ
-
-
[求助]vhidmini驱动不能操作IRP_MJ_READ
用DDK自带的vhidminiw修改的,为什么不能操作IRP_MJ_CREATE、IRP_MJ_CLOSE等呢?
目录:\WINDDK\3790.1830\src\wdm\hid\vhidmini
DriverObject->MajorFunction[IRP_MJ_CREATE] =
DriverObject->MajorFunction[IRP_MJ_CLOSE] = EventCreateClose; //no handle
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = EventDispatchIoControl; //no handle
DriverObject->MajorFunction[IRP_MJ_READ] = ReadFile; //no handle
有效的派遣:
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] =
InternalIoctl;
DriverObject->MajorFunction[IRP_MJ_PNP] = PnP;
DriverObject->MajorFunction[IRP_MJ_POWER] = Power;
DriverObject->DriverUnload = Unload;
DriverObject->DriverExtension->AddDevice = AddDevice;
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课