| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef HIDAPI_HIDPI_H |
| 21 |
#define HIDAPI_HIDPI_H |
| 22 |
|
| 23 |
#ifdef HIDAPI_USE_DDK |
| 24 |
|
| 25 |
#include <hidpi.h> |
| 26 |
|
| 27 |
#else |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
typedef enum _HIDP_REPORT_TYPE |
| 33 |
{ |
| 34 |
HidP_Input, |
| 35 |
HidP_Output, |
| 36 |
HidP_Feature |
| 37 |
} HIDP_REPORT_TYPE; |
| 38 |
|
| 39 |
typedef struct _HIDP_PREPARSED_DATA * PHIDP_PREPARSED_DATA; |
| 40 |
|
| 41 |
typedef struct _HIDP_CAPS |
| 42 |
{ |
| 43 |
USAGE Usage; |
| 44 |
USAGE UsagePage; |
| 45 |
USHORT InputReportByteLength; |
| 46 |
USHORT OutputReportByteLength; |
| 47 |
USHORT FeatureReportByteLength; |
| 48 |
USHORT Reserved[17]; |
| 49 |
|
| 50 |
USHORT NumberLinkCollectionNodes; |
| 51 |
|
| 52 |
USHORT NumberInputButtonCaps; |
| 53 |
USHORT NumberInputValueCaps; |
| 54 |
USHORT NumberInputDataIndices; |
| 55 |
|
| 56 |
USHORT NumberOutputButtonCaps; |
| 57 |
USHORT NumberOutputValueCaps; |
| 58 |
USHORT NumberOutputDataIndices; |
| 59 |
|
| 60 |
USHORT NumberFeatureButtonCaps; |
| 61 |
USHORT NumberFeatureValueCaps; |
| 62 |
USHORT NumberFeatureDataIndices; |
| 63 |
} HIDP_CAPS, *PHIDP_CAPS; |
| 64 |
|
| 65 |
#define HIDP_STATUS_SUCCESS 0x00110000 |
| 66 |
#define HIDP_STATUS_INVALID_PREPARSED_DATA 0xc0110001 |
| 67 |
|
| 68 |
typedef NTSTATUS (__stdcall *HidP_GetCaps_)(PHIDP_PREPARSED_DATA preparsed_data, PHIDP_CAPS caps); |
| 69 |
|
| 70 |
#endif |
| 71 |
|
| 72 |
#endif |