标题: USB HID设备读写代码实现c++(2) [打印本页] 作者: yuyang911220 时间: 2015-12-24 21:58 标题: USB HID设备读写代码实现c++(2)
typedef struct _HID_DEVICE {
PCHAR DevicePath;
HANDLE HidDevice; // A file handle to the hid device.
HIDP_CAPS Caps; // The Capabilities of this hid device.
HIDD_ATTRIBUTES Attributes;
} HID_DEVICE, *PHID_DEVICE;
bool _fUsbCommRunning;
bool _offHookSignal;
unsigned long _dataWaitProcess;
unsigned long _inputReportByteLength;
unsigned long _outputReportByteLength;
};