ReactOS 0.4.16-dev-311-g9382aa2
hidpddi.h File Reference
#include "hidusage.h"
#include "hidpi.h"
Include dependency graph for hidpddi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _HIDP_COLLECTION_DESC
 
struct  _HIDP_REPORT_IDS
 
struct  _HIDP_GETCOLDESC_DBG
 
struct  _HIDP_DEVICE_DESC
 

Macros

#define HIDP_GETCOLDESC_SUCCESS   0x00
 
#define HIDP_GETCOLDESC_RESOURCES   0x01
 
#define HIDP_GETCOLDESC_BUFFER   0x02
 
#define HIDP_GETCOLDESC_LINK_RESOURCES   0x03
 
#define HIDP_GETCOLDESC_UNEXP_END_COL   0x04
 
#define HIDP_GETCOLDESC_PREPARSE_RESOURCES   0x05
 
#define HIDP_GETCOLDESC_ONE_BYTE   0x06
 
#define HIDP_GETCOLDESC_TWO_BYTE   0x07
 
#define HIDP_GETCOLDESC_FOUR_BYTE   0x08
 
#define HIDP_GETCOLDESC_BYTE_ALLIGN   0x09
 
#define HIDP_GETCOLDESC_MAIN_ITEM_NO_USAGE   0x0A
 
#define HIDP_GETCOLDESC_TOP_COLLECTION_USAGE   0x0B
 
#define HIDP_GETCOLDESC_PUSH_RESOURCES   0x10
 
#define HIDP_GETCOLDESC_ITEM_UNKNOWN   0x12
 
#define HIDP_GETCOLDESC_REPORT_ID   0x13
 
#define HIDP_GETCOLDESC_BAD_REPORT_ID   0x14
 
#define HIDP_GETCOLDESC_NO_REPORT_ID   0x15
 
#define HIDP_GETCOLDESC_DEFAULT_ID_ERROR   0x16
 
#define HIDP_GETCOLDESC_NO_DATA   0x1A
 
#define HIDP_GETCOLDESC_INVALID_MAIN_ITEM   0x1B
 
#define HIDP_GETCOLDESC_NO_CLOSE_DELIMITER   0x20
 
#define HIDP_GETCOLDESC_NOT_VALID_DELIMITER   0x21
 
#define HIDP_GETCOLDESC_MISMATCH_OC_DELIMITER   0x22
 
#define HIDP_GETCOLDESC_UNSUPPORTED   0x40
 

Typedefs

typedef struct _HIDP_COLLECTION_DESC HIDP_COLLECTION_DESC
 
typedef struct _HIDP_COLLECTION_DESCPHIDP_COLLECTION_DESC
 
typedef struct _HIDP_REPORT_IDS HIDP_REPORT_IDS
 
typedef struct _HIDP_REPORT_IDSPHIDP_REPORT_IDS
 
typedef struct _HIDP_GETCOLDESC_DBG HIDP_GETCOLDESC_DBG
 
typedef struct _HIDP_GETCOLDESC_DBGPHIDP_GETCOLDESC_DBG
 
typedef struct _HIDP_DEVICE_DESC HIDP_DEVICE_DESC
 
typedef struct _HIDP_DEVICE_DESCPHIDP_DEVICE_DESC
 

Functions

NTSTATUS NTAPI HidP_GetCollectionDescription (IN PHIDP_REPORT_DESCRIPTOR ReportDesc, IN ULONG DescLength, IN POOL_TYPE PoolType, OUT PHIDP_DEVICE_DESC DeviceDescription)
 
VOID NTAPI HidP_FreeCollectionDescription (IN PHIDP_DEVICE_DESC DeviceDescription)
 
NTSTATUS NTAPI HidP_SysPowerEvent (IN PCHAR HidPacket, IN USHORT HidPacketLength, IN PHIDP_PREPARSED_DATA Ppd, OUT PULONG OutputBuffer)
 
NTSTATUS NTAPI HidP_SysPowerCaps (IN PHIDP_PREPARSED_DATA Ppd, OUT PULONG OutputBuffer)
 

Macro Definition Documentation

◆ HIDP_GETCOLDESC_BAD_REPORT_ID

#define HIDP_GETCOLDESC_BAD_REPORT_ID   0x14

Definition at line 91 of file hidpddi.h.

◆ HIDP_GETCOLDESC_BUFFER

#define HIDP_GETCOLDESC_BUFFER   0x02

Definition at line 78 of file hidpddi.h.

◆ HIDP_GETCOLDESC_BYTE_ALLIGN

#define HIDP_GETCOLDESC_BYTE_ALLIGN   0x09

Definition at line 85 of file hidpddi.h.

◆ HIDP_GETCOLDESC_DEFAULT_ID_ERROR

#define HIDP_GETCOLDESC_DEFAULT_ID_ERROR   0x16

Definition at line 93 of file hidpddi.h.

◆ HIDP_GETCOLDESC_FOUR_BYTE

#define HIDP_GETCOLDESC_FOUR_BYTE   0x08

Definition at line 84 of file hidpddi.h.

◆ HIDP_GETCOLDESC_INVALID_MAIN_ITEM

#define HIDP_GETCOLDESC_INVALID_MAIN_ITEM   0x1B

Definition at line 95 of file hidpddi.h.

◆ HIDP_GETCOLDESC_ITEM_UNKNOWN

#define HIDP_GETCOLDESC_ITEM_UNKNOWN   0x12

Definition at line 89 of file hidpddi.h.

◆ HIDP_GETCOLDESC_LINK_RESOURCES

#define HIDP_GETCOLDESC_LINK_RESOURCES   0x03

Definition at line 79 of file hidpddi.h.

◆ HIDP_GETCOLDESC_MAIN_ITEM_NO_USAGE

#define HIDP_GETCOLDESC_MAIN_ITEM_NO_USAGE   0x0A

Definition at line 86 of file hidpddi.h.

◆ HIDP_GETCOLDESC_MISMATCH_OC_DELIMITER

#define HIDP_GETCOLDESC_MISMATCH_OC_DELIMITER   0x22

Definition at line 98 of file hidpddi.h.

◆ HIDP_GETCOLDESC_NO_CLOSE_DELIMITER

#define HIDP_GETCOLDESC_NO_CLOSE_DELIMITER   0x20

Definition at line 96 of file hidpddi.h.

◆ HIDP_GETCOLDESC_NO_DATA

#define HIDP_GETCOLDESC_NO_DATA   0x1A

Definition at line 94 of file hidpddi.h.

◆ HIDP_GETCOLDESC_NO_REPORT_ID

#define HIDP_GETCOLDESC_NO_REPORT_ID   0x15

Definition at line 92 of file hidpddi.h.

◆ HIDP_GETCOLDESC_NOT_VALID_DELIMITER

#define HIDP_GETCOLDESC_NOT_VALID_DELIMITER   0x21

Definition at line 97 of file hidpddi.h.

◆ HIDP_GETCOLDESC_ONE_BYTE

#define HIDP_GETCOLDESC_ONE_BYTE   0x06

Definition at line 82 of file hidpddi.h.

◆ HIDP_GETCOLDESC_PREPARSE_RESOURCES

#define HIDP_GETCOLDESC_PREPARSE_RESOURCES   0x05

Definition at line 81 of file hidpddi.h.

◆ HIDP_GETCOLDESC_PUSH_RESOURCES

#define HIDP_GETCOLDESC_PUSH_RESOURCES   0x10

Definition at line 88 of file hidpddi.h.

◆ HIDP_GETCOLDESC_REPORT_ID

#define HIDP_GETCOLDESC_REPORT_ID   0x13

Definition at line 90 of file hidpddi.h.

◆ HIDP_GETCOLDESC_RESOURCES

#define HIDP_GETCOLDESC_RESOURCES   0x01

Definition at line 77 of file hidpddi.h.

◆ HIDP_GETCOLDESC_SUCCESS

#define HIDP_GETCOLDESC_SUCCESS   0x00

Definition at line 76 of file hidpddi.h.

◆ HIDP_GETCOLDESC_TOP_COLLECTION_USAGE

#define HIDP_GETCOLDESC_TOP_COLLECTION_USAGE   0x0B

Definition at line 87 of file hidpddi.h.

◆ HIDP_GETCOLDESC_TWO_BYTE

#define HIDP_GETCOLDESC_TWO_BYTE   0x07

Definition at line 83 of file hidpddi.h.

◆ HIDP_GETCOLDESC_UNEXP_END_COL

#define HIDP_GETCOLDESC_UNEXP_END_COL   0x04

Definition at line 80 of file hidpddi.h.

◆ HIDP_GETCOLDESC_UNSUPPORTED

#define HIDP_GETCOLDESC_UNSUPPORTED   0x40

Definition at line 99 of file hidpddi.h.

Typedef Documentation

◆ HIDP_COLLECTION_DESC

◆ HIDP_DEVICE_DESC

◆ HIDP_GETCOLDESC_DBG

◆ HIDP_REPORT_IDS

◆ PHIDP_COLLECTION_DESC

◆ PHIDP_DEVICE_DESC

◆ PHIDP_GETCOLDESC_DBG

◆ PHIDP_REPORT_IDS

Function Documentation

◆ HidP_FreeCollectionDescription()

VOID NTAPI HidP_FreeCollectionDescription ( IN PHIDP_DEVICE_DESC  DeviceDescription)

Definition at line 13 of file hidp.c.

15{
16 //
17 // free collection
18 //
20}
VOID NTAPI HidParser_FreeCollectionDescription(IN PHIDP_DEVICE_DESC DeviceDescription)
Definition: hidparser.c:163
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING DeviceDescription
Definition: wdfpdo.h:432

Referenced by TestGetCollectionDescription().

◆ HidP_GetCollectionDescription()

NTSTATUS NTAPI HidP_GetCollectionDescription ( IN PHIDP_REPORT_DESCRIPTOR  ReportDesc,
IN ULONG  DescLength,
IN POOL_TYPE  PoolType,
OUT PHIDP_DEVICE_DESC  DeviceDescription 
)

Definition at line 61 of file hidp.c.

66{
68
69 //
70 // get description;
71 //
74}
LONG NTSTATUS
Definition: precomp.h:26
Status
Definition: gdiplustypes.h:25
NTSTATUS TranslateStatusForUpperLayer(IN NTSTATUS Status)
Definition: hidp.c:37
NTSTATUS NTAPI HidParser_GetCollectionDescription(IN PHIDP_REPORT_DESCRIPTOR ReportDesc, IN ULONG DescLength, IN POOL_TYPE PoolType, OUT PHIDP_DEVICE_DESC DeviceDescription)
Definition: hidparser.c:18
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3815

Referenced by HidClassFDO_StartDevice(), and TestGetCollectionDescription().

◆ HidP_SysPowerCaps()

NTSTATUS NTAPI HidP_SysPowerCaps ( IN PHIDP_PREPARSED_DATA  Ppd,
OUT PULONG  OutputBuffer 
)

Definition at line 340 of file hidp.c.

343{
345 ASSERT(FALSE);
347}
#define STATUS_NOT_IMPLEMENTED
Definition: d3dkmdt.h:42
#define FALSE
Definition: types.h:117
#define UNIMPLEMENTED
Definition: hidp.c:9
#define ASSERT(a)
Definition: mode.c:44

◆ HidP_SysPowerEvent()

NTSTATUS NTAPI HidP_SysPowerEvent ( IN PCHAR  HidPacket,
IN USHORT  HidPacketLength,
IN PHIDP_PREPARSED_DATA  Ppd,
OUT PULONG  OutputBuffer 
)

Definition at line 327 of file hidp.c.

332{
334 ASSERT(FALSE);
336}