ReactOS  0.4.14-dev-552-g2fad488
kbdclass.h
Go to the documentation of this file.
1 #ifndef _KBDCLASS_PCH_
2 #define _KBDCLASS_PCH_
3 
4 #include <ntifs.h>
5 #include <ntddkbd.h>
6 
7 #define MAX_PATH 260
8 
9 #define MIN(a, b) ((a) < (b) ? (a) : (b))
10 
11 #define CLASS_TAG 'CdbK'
12 #define DPFLTR_CLASS_NAME_ID DPFLTR_KBDCLASS_ID
13 
14 typedef enum
15 {
22 
24 {
26 
27  /* Registry settings */
31 
34 
35 typedef struct _COMMON_DEVICE_EXTENSION
36 {
39 
40 typedef struct _PORT_DEVICE_EXTENSION
41 {
43 
52 
54 {
56 
58 
67 
68 /* misc.c */
69 
73  IN PIRP Irp);
74 
76 
79  IN ULONG Flags,
82 
83 #endif /* _KBDCLASS_PCH_ */
KSPIN_LOCK ListSpinLock
Definition: kbdclass.h:60
#define IN
Definition: typedefs.h:38
struct _PORT_DEVICE_EXTENSION * PPORT_DEVICE_EXTENSION
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
_In_ PIRP Irp
Definition: csq.h:116
COMMON_DEVICE_EXTENSION Common
Definition: kbdclass.h:42
struct _CLASS_DRIVER_EXTENSION CLASS_DRIVER_EXTENSION
PKEYBOARD_INPUT_DATA PortData
Definition: kbdclass.h:64
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS ForwardIrpAndWait(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:32
PORT_DEVICE_STATE
Definition: kbdclass.h:14
UNICODE_STRING RegistryPath
Definition: kbdclass.h:25
LIST_ENTRY ListEntry
Definition: kbdclass.h:44
COMMON_DEVICE_EXTENSION Common
Definition: kbdclass.h:55
struct _CLASS_DEVICE_EXTENSION * PCLASS_DEVICE_EXTENSION
UNICODE_STRING DeviceBaseName
Definition: kbdclass.h:30
PDEVICE_OBJECT ClassDO
Definition: kbdclass.h:48
struct _PORT_DEVICE_EXTENSION PORT_DEVICE_EXTENSION
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
UNICODE_STRING InterfaceName
Definition: kbdclass.h:50
KSPIN_LOCK SpinLock
Definition: kbdclass.h:61
unsigned char BOOLEAN
_Out_ _Inout_ POEM_STRING DestinationString
Definition: rtlfuncs.h:1869
PDEVICE_OBJECT MainClassDeviceObject
Definition: kbdclass.h:32
struct _COMMON_DEVICE_EXTENSION COMMON_DEVICE_EXTENSION
DRIVER_DISPATCH ForwardIrpAndForget
Definition: kbdclass.h:75
PDEVICE_OBJECT LowerDevice
Definition: kbdclass.h:47
NTSTATUS DuplicateUnicodeString(IN ULONG Flags, IN PCUNICODE_STRING SourceString, OUT PUNICODE_STRING DestinationString)
Definition: misc.c:72
PCLASS_DRIVER_EXTENSION DriverExtension
Definition: kbdclass.h:57
_Out_ _Inout_ POEM_STRING _In_ PCUNICODE_STRING SourceString
Definition: rtlfuncs.h:1869
Definition: typedefs.h:117
DRIVER_DISPATCH(nfs41_FsdDispatch)
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
ULONG_PTR SIZE_T
Definition: typedefs.h:78
struct _CLASS_DRIVER_EXTENSION * PCLASS_DRIVER_EXTENSION
struct _COMMON_DEVICE_EXTENSION * PCOMMON_DEVICE_EXTENSION
struct _CLASS_DEVICE_EXTENSION CLASS_DEVICE_EXTENSION
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
PDEVICE_OBJECT DeviceObject
Definition: kbdclass.h:45
PORT_DEVICE_STATE PnpState
Definition: kbdclass.h:46
LIST_ENTRY ListHead
Definition: kbdclass.h:59