ReactOS  0.4.15-dev-506-ga3ec01c
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_ PDEVICE_DESCRIPTION DeviceDescription
Definition: iofuncs.h:1015

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 }
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
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ _In_ PDEVICE_DESCRIPTION DeviceDescription
Definition: iofuncs.h:1015
Status
Definition: gdiplustypes.h:24
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T _In_ POOL_TYPE PoolType
Definition: fltkernel.h:1444

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);
346  return STATUS_NOT_IMPLEMENTED;
347 }
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
#define UNIMPLEMENTED
Definition: hidp.c:9

◆ 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);
335  return STATUS_NOT_IMPLEMENTED;
336 }
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
#define UNIMPLEMENTED
Definition: hidp.c:9