ReactOS  0.4.15-dev-494-g1d8c567
mouhid.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define _HIDPI_NO_FUNCTION_MACROS_
4 #include <ntddk.h>
5 #include <hidclass.h>
6 #include <hidpddi.h>
7 #include <hidpi.h>
8 #define NDEBUG
9 #include <debug.h>
10 #include <ntddmou.h>
11 #include <kbdmou.h>
12 #include <debug.h>
13 
14 
15 typedef struct
16 {
17  //
18  // lower device object
19  //
21 
22  //
23  // irp which is used for reading input reports
24  //
26 
27  //
28  // event
29  //
31 
32  //
33  // device object for class callback
34  //
36 
37  //
38  // class callback
39  //
41 
42  //
43  // mouse type
44  //
46 
47  //
48  // wheel usage page
49  //
51 
52  //
53  // buffer for the four usage lists below
54  //
56 
57  //
58  // usage list length
59  //
61 
62  //
63  // current usage list length
64  //
66 
67  //
68  // previous usage list
69  //
71 
72  //
73  // removed usage item list
74  //
76 
77  //
78  // new item usage list
79  //
81 
82  //
83  // preparsed data
84  //
86 
87  //
88  // mdl for reading input report
89  //
91 
92  //
93  // input report buffer
94  //
96 
97  //
98  // input report length
99  //
101 
102  //
103  // file object the device is reading reports from
104  //
106 
107  //
108  // report read is active
109  //
111 
112  //
113  // stop reading flag
114  //
116 
117  //
118  // mouse absolute
119  //
121 
122  //
123  // value caps x
124  //
126 
127  //
128  // value caps y button
129  //
131 
133 
134 #define WHEEL_DELTA 120
135 #define VIRTUAL_SCREEN_SIZE_X (65536)
136 #define VIRTUAL_SCREEN_SIZE_Y (65536)
137 
138 NTSTATUS
140  IN PMOUHID_DEVICE_EXTENSION DeviceExtension);
141 
142 #define MOUHID_TAG 'diHM'
signed char * PCHAR
Definition: retypes.h:7
#define IN
Definition: typedefs.h:39
HIDP_VALUE_CAPS ValueCapsY
Definition: mouhid.h:130
PDEVICE_OBJECT ClassDeviceObject
Definition: mouhid.h:35
PFILE_OBJECT FileObject
Definition: mouhid.h:105
LONG NTSTATUS
Definition: precomp.h:26
PUSAGE PreviousUsageList
Definition: mouhid.h:70
struct MOUHID_DEVICE_EXTENSION * PMOUHID_DEVICE_EXTENSION
KEVENT ReadCompletionEvent
Definition: mouhid.h:30
USHORT UsageListLength
Definition: mouhid.h:60
PDEVICE_OBJECT NextDeviceObject
Definition: mouhid.h:20
USHORT * PUSAGE
Definition: hidusage.h:30
NTSTATUS MouHid_InitiateRead(IN PMOUHID_DEVICE_EXTENSION DeviceExtension)
Definition: mouhid.c:397
USHORT MouseIdentifier
Definition: mouhid.h:45
* PFILE_OBJECT
Definition: iotypes.h:1957
unsigned char UCHAR
Definition: xmlstorage.h:181
unsigned short USHORT
Definition: pedump.c:61
unsigned int ULONG
Definition: retypes.h:1
HIDP_VALUE_CAPS ValueCapsX
Definition: mouhid.h:125
PUSAGE CurrentUsageList
Definition: mouhid.h:65