阅读:1176回复:1
过滤驱动程序中如何能改变鼠标报告的数据??
请问在这个鼠标过滤驱动程序中,如何在向上层驱动程序报告之前我能改变鼠标报告的数据??
也就是说我应该如何去操作获取的数据? 简单点,比如实现鼠标数据取反?请高手帮我改改这个代码,多谢! VOID MouFilter_ServiceCallback( IN PDEVICE_OBJECT DeviceObject, IN PMOUSE_INPUT_DATA InputDataStart, IN PMOUSE_INPUT_DATA InputDataEnd, IN OUT PULONG InputDataConsumed ) /*++ Routine Description: Called when there are mouse packets to report to the RIT. You can do anything you like to the packets. For instance: o Drop a packet altogether o Mutate the contents of a packet o Insert packets into the stream Arguments: DeviceObject - Context passed during the connect IOCTL InputDataStart - First packet to be reported InputDataEnd - One past the last packet to be Reported. Total number of packets is equal to InputDataEnd - InputDataStart InputDataConsumed - Set to the total number of packets consumed by the RIT (via the function pointer we replaced in the connect IOCTL) Return Value: Status is returned. --*/ { PDEVICE_EXTENSION devExt; devExt = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension; // // UpperConnectData must be called at DISPATCH // (*(PSERVICE_CALLBACK_ROUTINE) devExt->UpperConnectData.ClassService)( devExt->UpperConnectData.ClassDeviceObject, InputDataStart, InputDataEnd, InputDataConsumed ); } |
|
|
沙发#
发布于:2002-12-12 14:43
就在这一段中就可以实现
IN PMOUSE_INPUT_DATA InputDataStart, IN PMOUSE_INPUT_DATA InputDataEnd, IN OUT PULONG InputDataConsumed 这几个数据我不知道应该怎么去操作它 哪位高手来几笔哦 多谢多谢 |
|
|