阅读:1863回复:1
USB接口的触控装置,除了用vhidmin方式外,还可以用什么样的方式模拟成mouse
USB接口的触控装置,除了用vhidmin方式外,还可以用什么样的方式模拟成mouse
vhidmin 用hid模式可以仿真 DriverEntry () hidMinidriverRegistration.Revision = HID_REVISION; hidMinidriverRegistration.DriverObject = DriverObject; hidMinidriverRegistration.RegistryPath = RegistryPath; hidMinidriverRegistration.DeviceExtensionSize = sizeof(DEVICE_EXTENSION); hidMinidriverRegistration.DevicesArePolled = FALSE; // //Register with hidclass // ntStatus = HidRegisterMinidriver(&hidMinidriverRegistration); 用usb模式,可是不成功 BulkUsb_AddDevice( ntStatus = IoCreateDevice( DriverObject, // our driver object sizeof(DEVICE_EXTENSION), // extension size for us NULL, // name for this device FILE_DEVICE_MOUSE, FILE_AUTOGENERATED_DEVICE_NAME, FALSE, // Not exclusive &deviceObject); |
|
沙发#
发布于:2010-12-04 00:36
用户被禁言,该主题自动屏蔽! |
|