ReactOS 0.4.15-dev-7931-gfd331f1
hidport.h
Go to the documentation of this file.
1#pragma once
2
3#include <hidclass.h>
4
6{
14
16{
21
23{
30
31#include <pshpack1.h>
32
33typedef struct _HID_DESCRIPTOR
34{
40
42 {
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
56typedef
60);
61
63{
67
71 IN PHID_MINIDRIVER_REGISTRATION MinidriverRegistration
72);
73
74#if(NTDDI_VERSION>=NTDDI_WINXPSP1)
75
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
unsigned char BOOLEAN
#define VOID
Definition: acefi.h:82
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN IsPresent
struct _HID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO HID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO
NTSTATUS NTAPI HidRegisterMinidriver(IN PHID_MINIDRIVER_REGISTRATION MinidriverRegistration)
Definition: hidclass.c:1244
struct _HID_MINIDRIVER_REGISTRATION * PHID_MINIDRIVER_REGISTRATION
struct _HID_DESCRIPTOR HID_DESCRIPTOR
struct _HID_DEVICE_EXTENSION HID_DEVICE_EXTENSION
struct _HID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO * PHID_SUBMIT_IDLE_NOTIFICATION_CALLBACK_INFO
VOID(NTAPI * HID_SEND_IDLE_CALLBACK)(IN PVOID Context)
Definition: hidport.h:58
struct _HID_DEVICE_EXTENSION * PHID_DEVICE_EXTENSION
struct _HID_MINIDRIVER_REGISTRATION HID_MINIDRIVER_REGISTRATION
struct _HID_DEVICE_ATTRIBUTES HID_DEVICE_ATTRIBUTES
struct _HID_DESCRIPTOR * PHID_DESCRIPTOR
NTSTATUS HidNotifyPresence(IN PDEVICE_OBJECT DeviceObject, IN BOOLEAN IsPresent)
struct _HID_DEVICE_ATTRIBUTES * PHID_DEVICE_ATTRIBUTES
unsigned short USHORT
Definition: pedump.c:61
UCHAR bCountry
Definition: hidport.h:38
UCHAR bNumDescriptors
Definition: hidport.h:39
struct _HID_DESCRIPTOR::_HID_DESCRIPTOR_DESC_LIST DescriptorList[1]
UCHAR bDescriptorType
Definition: hidport.h:36
UCHAR bLength
Definition: hidport.h:35
USHORT bcdHID
Definition: hidport.h:37
PDEVICE_OBJECT PhysicalDeviceObject
Definition: hidport.h:17
PVOID MiniDeviceExtension
Definition: hidport.h:19
PDEVICE_OBJECT NextDeviceObject
Definition: hidport.h:18
PUNICODE_STRING RegistryPath
Definition: hidport.h:9
PDRIVER_OBJECT DriverObject
Definition: hidport.h:8
HID_SEND_IDLE_CALLBACK IdleCallback
Definition: hidport.h:64
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
unsigned char UCHAR
Definition: xmlstorage.h:181