ReactOS  0.4.15-dev-506-ga3ec01c
hidport.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <hidclass.h>
4 
6 {
14 
15 typedef struct _HID_DEVICE_EXTENSION
16 {
21 
22 typedef struct _HID_DEVICE_ATTRIBUTES
23 {
30 
31 #include <pshpack1.h>
32 
33 typedef struct _HID_DESCRIPTOR
34 {
40 
42  {
45  }DescriptorList [1];
47 
48 #include <poppack.h>
49 
50 #define HID_HID_DESCRIPTOR_TYPE 0x21
51 #define HID_REPORT_DESCRIPTOR_TYPE 0x22
52 #define HID_PHYSICAL_DESCRIPTOR_TYPE 0x23
53 
54 
55 
56 typedef
57 VOID
60 );
61 
63 {
67 
69 NTAPI
71  IN PHID_MINIDRIVER_REGISTRATION MinidriverRegistration
72 );
73 
74 #if(NTDDI_VERSION>=NTDDI_WINXPSP1)
75 
79  IN BOOLEAN IsPresent
80 );
81 
82 #endif
83 
84 #define IOCTL_HID_GET_DEVICE_DESCRIPTOR HID_CTL_CODE(0)
85 #define IOCTL_HID_GET_REPORT_DESCRIPTOR HID_CTL_CODE(1)
86 #define IOCTL_HID_READ_REPORT HID_CTL_CODE(2)
87 #define IOCTL_HID_WRITE_REPORT HID_CTL_CODE(3)
88 #define IOCTL_HID_GET_STRING HID_CTL_CODE(4)
89 #define IOCTL_HID_ACTIVATE_DEVICE HID_CTL_CODE(7)
90 #define IOCTL_HID_DEACTIVATE_DEVICE HID_CTL_CODE(8)
91 #define IOCTL_HID_GET_DEVICE_ATTRIBUTES HID_CTL_CODE(9)
92 #define IOCTL_HID_SEND_IDLE_NOTIFICATION_REQUEST HID_CTL_CODE(10)
93 
94 #define HID_HID_DESCRIPTOR_TYPE 0x21
95 #define HID_REPORT_DESCRIPTOR_TYPE 0x22
96 #define HID_PHYSICAL_DESCRIPTOR_TYPE 0x23
97 
98 #define HID_STRING_ID_IMANUFACTURER 14
99 #define HID_STRING_ID_IPRODUCT 15
100 #define HID_STRING_ID_ISERIALNUMBER 16
#define IN
Definition: typedefs.h:39
VOID(NTAPI * HID_SEND_IDLE_CALLBACK)(IN PVOID Context)
Definition: hidport.h:58
PVOID MiniDeviceExtension
Definition: hidport.h:19
UCHAR bNumDescriptors
Definition: hidport.h:39
LONG NTSTATUS
Definition: precomp.h:26
struct _HID_MINIDRIVER_REGISTRATION HID_MINIDRIVER_REGISTRATION
struct _HID_DEVICE_EXTENSION HID_DEVICE_EXTENSION
USHORT bcdHID
Definition: hidport.h:37
struct _HID_DEVICE_ATTRIBUTES * PHID_DEVICE_ATTRIBUTES
PDEVICE_OBJECT PhysicalDeviceObject
Definition: hidport.h:17
struct _HID_DEVICE_ATTRIBUTES HID_DEVICE_ATTRIBUTES
UCHAR bDescriptorType
Definition: hidport.h:36
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
PUNICODE_STRING RegistryPath
Definition: hidport.h:9
NTSTATUS NTAPI HidRegisterMinidriver(IN PHID_MINIDRIVER_REGISTRATION MinidriverRegistration)
Definition: hidclass.c:1244
unsigned char BOOLEAN
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
UCHAR bLength
Definition: hidport.h:35
PDEVICE_OBJECT NextDeviceObject
Definition: hidport.h:18
struct _HID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO HID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO
struct _HID_DESCRIPTOR HID_DESCRIPTOR
unsigned char UCHAR
Definition: xmlstorage.h:181
HID_SEND_IDLE_CALLBACK IdleCallback
Definition: hidport.h:64
#define VOID
Definition: acefi.h:82
struct _HID_DEVICE_EXTENSION * PHID_DEVICE_EXTENSION
NTSTATUS HidNotifyPresence(IN PDEVICE_OBJECT DeviceObject, IN BOOLEAN IsPresent)
UCHAR bCountry
Definition: hidport.h:38
struct _HID_DESCRIPTOR::_HID_DESCRIPTOR_DESC_LIST DescriptorList[1]
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1569
unsigned short USHORT
Definition: pedump.c:61
struct _HID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO * PHID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO
struct tagContext Context
Definition: acpixf.h:1034
unsigned int ULONG
Definition: retypes.h:1
struct _HID_DESCRIPTOR * PHID_DESCRIPTOR
struct _HID_MINIDRIVER_REGISTRATION * PHID_MINIDRIVER_REGISTRATION
PDRIVER_OBJECT DriverObject
Definition: hidport.h:8