ReactOS  0.4.14-dev-1233-gf5658fd
hidpddi.h
Go to the documentation of this file.
1 #ifndef _HIDPDDI_H
2 #define _HIDPDDI_H
3 
4 #include "hidusage.h"
5 #include "hidpi.h"
6 
7 typedef struct _HIDP_COLLECTION_DESC
8 {
19 
20 typedef struct _HIDP_REPORT_IDS
21 {
28 
29 typedef struct _HIDP_GETCOLDESC_DBG
30 {
33  ULONG Args[6];
35 
36 typedef struct _HIDP_DEVICE_DESC
37 {
44 
46 NTAPI
48  IN PHIDP_REPORT_DESCRIPTOR ReportDesc,
49  IN ULONG DescLength,
52 );
53 
54 VOID
55 NTAPI
58 );
59 
61 NTAPI
63  IN PCHAR HidPacket,
64  IN USHORT HidPacketLength,
67 );
68 
70 NTAPI
74 );
75 
76 #define HIDP_GETCOLDESC_SUCCESS 0x00
77 #define HIDP_GETCOLDESC_RESOURCES 0x01
78 #define HIDP_GETCOLDESC_BUFFER 0x02
79 #define HIDP_GETCOLDESC_LINK_RESOURCES 0x03
80 #define HIDP_GETCOLDESC_UNEXP_END_COL 0x04
81 #define HIDP_GETCOLDESC_PREPARSE_RESOURCES 0x05
82 #define HIDP_GETCOLDESC_ONE_BYTE 0x06
83 #define HIDP_GETCOLDESC_TWO_BYTE 0x07
84 #define HIDP_GETCOLDESC_FOUR_BYTE 0x08
85 #define HIDP_GETCOLDESC_BYTE_ALLIGN 0x09
86 #define HIDP_GETCOLDESC_MAIN_ITEM_NO_USAGE 0x0A
87 #define HIDP_GETCOLDESC_TOP_COLLECTION_USAGE 0x0B
88 #define HIDP_GETCOLDESC_PUSH_RESOURCES 0x10
89 #define HIDP_GETCOLDESC_ITEM_UNKNOWN 0x12
90 #define HIDP_GETCOLDESC_REPORT_ID 0x13
91 #define HIDP_GETCOLDESC_BAD_REPORT_ID 0x14
92 #define HIDP_GETCOLDESC_NO_REPORT_ID 0x15
93 #define HIDP_GETCOLDESC_DEFAULT_ID_ERROR 0x16
94 #define HIDP_GETCOLDESC_NO_DATA 0x1A
95 #define HIDP_GETCOLDESC_INVALID_MAIN_ITEM 0x1B
96 #define HIDP_GETCOLDESC_NO_CLOSE_DELIMITER 0x20
97 #define HIDP_GETCOLDESC_NOT_VALID_DELIMITER 0x21
98 #define HIDP_GETCOLDESC_MISMATCH_OC_DELIMITER 0x22
99 #define HIDP_GETCOLDESC_UNSUPPORTED 0x40
100 
101 #endif
struct _HIDP_GETCOLDESC_DBG * PHIDP_GETCOLDESC_DBG
signed char * PCHAR
Definition: retypes.h:7
HIDP_GETCOLDESC_DBG Dbg
Definition: hidpddi.h:42
#define IN
Definition: typedefs.h:39
PHIDP_PREPARSED_DATA PreparsedData
Definition: hidpddi.h:17
NTSTATUS NTAPI HidP_GetCollectionDescription(IN PHIDP_REPORT_DESCRIPTOR ReportDesc, IN ULONG DescLength, IN POOL_TYPE PoolType, OUT PHIDP_DEVICE_DESC DeviceDescription)
Definition: hidp.c:75
LONG NTSTATUS
Definition: precomp.h:26
struct _HIDP_COLLECTION_DESC * PHIDP_COLLECTION_DESC
struct _HIDP_DEVICE_DESC * PHIDP_DEVICE_DESC
UCHAR ReportID
Definition: hidpddi.h:22
PUCHAR PHIDP_REPORT_DESCRIPTOR
Definition: hidpi.h:38
struct _HIDP_GETCOLDESC_DBG HIDP_GETCOLDESC_DBG
USHORT FeatureLength
Definition: hidpddi.h:26
USHORT InputLength
Definition: hidpddi.h:24
VOID NTAPI HidP_FreeCollectionDescription(IN PHIDP_DEVICE_DESC DeviceDescription)
Definition: hidp.c:13
USHORT PreparsedDataLength
Definition: hidpddi.h:16
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
USHORT FeatureLength
Definition: hidpddi.h:15
NTSTATUS NTAPI HidP_SysPowerCaps(IN PHIDP_PREPARSED_DATA Ppd, OUT PULONG OutputBuffer)
Definition: hidp.c:403
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
_Must_inspect_result_ __drv_aliasesMem _In_ PDEVICE_OBJECT _In_opt_ PVOID _In_ ULONG _Out_opt_ PVOID OutputBuffer
Definition: iofuncs.h:713
UCHAR CollectionNumber
Definition: hidpddi.h:23
_Must_inspect_result_ _In_ PDEVICE_DESCRIPTION DeviceDescription
Definition: iofuncs.h:1015
USHORT OutputLength
Definition: hidpddi.h:25
INT POOL_TYPE
Definition: typedefs.h:77
struct _HIDP_PREPARSED_DATA * PHIDP_PREPARSED_DATA
Definition: hidpi.h:39
USHORT USAGE
Definition: hidusage.h:30
UCHAR CollectionNumber
Definition: hidpddi.h:11
PHIDP_REPORT_IDS ReportIDs
Definition: hidpddi.h:40
unsigned char UCHAR
Definition: xmlstorage.h:181
struct _HIDP_COLLECTION_DESC HIDP_COLLECTION_DESC
ULONG ReportIDsLength
Definition: hidpddi.h:41
struct _HIDP_REPORT_IDS HIDP_REPORT_IDS
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
struct _HIDP_REPORT_IDS * PHIDP_REPORT_IDS
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
ULONG CollectionDescLength
Definition: hidpddi.h:39
NTSTATUS NTAPI HidP_SysPowerEvent(IN PCHAR HidPacket, IN USHORT HidPacketLength, IN PHIDP_PREPARSED_DATA Ppd, OUT PULONG OutputBuffer)
Definition: hidp.c:390
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T _In_ POOL_TYPE PoolType
Definition: fltkernel.h:1444
PHIDP_COLLECTION_DESC CollectionDesc
Definition: hidpddi.h:38
struct _HIDP_DEVICE_DESC HIDP_DEVICE_DESC