-
-
[求助]vhidmini驱动不能操作IRP_MJ_READ
-
发表于:
2012-4-7 17:22
4782
-
[求助]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;
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!