| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef HIDAPI_HIDSDI_H |
| 21 |
#define HIDAPI_HIDSDI_H |
| 22 |
|
| 23 |
#ifdef HIDAPI_USE_DDK |
| 24 |
|
| 25 |
#include <hidsdi.h> |
| 26 |
|
| 27 |
#else |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
typedef USHORT USAGE; |
| 33 |
|
| 34 |
#include "hidapi_hidpi.h" |
| 35 |
|
| 36 |
typedef struct _HIDD_ATTRIBUTES{ |
| 37 |
ULONG Size; |
| 38 |
USHORT VendorID; |
| 39 |
USHORT ProductID; |
| 40 |
USHORT VersionNumber; |
| 41 |
} HIDD_ATTRIBUTES, *PHIDD_ATTRIBUTES; |
| 42 |
|
| 43 |
typedef void (__stdcall *HidD_GetHidGuid_)(LPGUID hid_guid); |
| 44 |
typedef BOOLEAN (__stdcall *HidD_GetAttributes_)(HANDLE device, PHIDD_ATTRIBUTES attrib); |
| 45 |
typedef BOOLEAN (__stdcall *HidD_GetSerialNumberString_)(HANDLE device, PVOID buffer, ULONG buffer_len); |
| 46 |
typedef BOOLEAN (__stdcall *HidD_GetManufacturerString_)(HANDLE handle, PVOID buffer, ULONG buffer_len); |
| 47 |
typedef BOOLEAN (__stdcall *HidD_GetProductString_)(HANDLE handle, PVOID buffer, ULONG buffer_len); |
| 48 |
typedef BOOLEAN (__stdcall *HidD_SetFeature_)(HANDLE handle, PVOID data, ULONG length); |
| 49 |
typedef BOOLEAN (__stdcall *HidD_GetFeature_)(HANDLE handle, PVOID data, ULONG length); |
| 50 |
typedef BOOLEAN (__stdcall* HidD_SetOutputReport_)(HANDLE handle, PVOID data, ULONG length); |
| 51 |
typedef BOOLEAN (__stdcall *HidD_GetInputReport_)(HANDLE handle, PVOID data, ULONG length); |
| 52 |
typedef BOOLEAN (__stdcall *HidD_GetIndexedString_)(HANDLE handle, ULONG string_index, PVOID buffer, ULONG buffer_len); |
| 53 |
typedef BOOLEAN (__stdcall *HidD_GetPreparsedData_)(HANDLE handle, PHIDP_PREPARSED_DATA *preparsed_data); |
| 54 |
typedef BOOLEAN (__stdcall *HidD_FreePreparsedData_)(PHIDP_PREPARSED_DATA preparsed_data); |
| 55 |
typedef BOOLEAN (__stdcall *HidD_SetNumInputBuffers_)(HANDLE handle, ULONG number_buffers); |
| 56 |
|
| 57 |
#endif |
| 58 |
|
| 59 |
#endif |