ReactOS 0.4.17-dev-1321-g5c122a9
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
14typedef enum
15{
22
23typedef struct _READ_DATA
24{
30
32{
34
35 /* Registry settings */
39
42
43typedef struct _COMMON_DEVICE_EXTENSION
44{
47
48typedef struct _PORT_DEVICE_EXTENSION
49{
51
60
62{
64
66
72
73/* misc.c */
74
76
82
83#endif /* _KBDCLASS_PCH_ */
unsigned char BOOLEAN
Definition: actypes.h:127
LONG NTSTATUS
Definition: precomp.h:26
_In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ ULONG _In_ ULONG Flags
Definition: dispmprt.h:245
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
struct _READ_DATA * PREAD_DATA
struct _PORT_DEVICE_EXTENSION * PPORT_DEVICE_EXTENSION
struct _CLASS_DEVICE_EXTENSION CLASS_DEVICE_EXTENSION
NTSTATUS DuplicateUnicodeString(IN ULONG Flags, IN PCUNICODE_STRING SourceString, OUT PUNICODE_STRING DestinationString)
Definition: misc.c:31
struct _CLASS_DRIVER_EXTENSION * PCLASS_DRIVER_EXTENSION
PORT_DEVICE_STATE
Definition: kbdclass.h:15
@ dsSurpriseRemoved
Definition: kbdclass.h:20
@ dsStopped
Definition: kbdclass.h:16
@ dsPaused
Definition: kbdclass.h:18
@ dsStarted
Definition: kbdclass.h:17
@ dsRemoved
Definition: kbdclass.h:19
struct _CLASS_DRIVER_EXTENSION CLASS_DRIVER_EXTENSION
DRIVER_DISPATCH ForwardIrpAndForget
Definition: kbdclass.h:75
struct _COMMON_DEVICE_EXTENSION COMMON_DEVICE_EXTENSION
struct _PORT_DEVICE_EXTENSION PORT_DEVICE_EXTENSION
struct _CLASS_DEVICE_EXTENSION * PCLASS_DEVICE_EXTENSION
struct _COMMON_DEVICE_EXTENSION * PCOMMON_DEVICE_EXTENSION
struct _READ_DATA READ_DATA
PORT_DEVICE_STATE
Definition: mouclass.h:15
_Out_ _Inout_ POEM_STRING _In_ PCUNICODE_STRING SourceString
Definition: rtlfuncs.h:1957
_Out_ _Inout_ POEM_STRING DestinationString
Definition: rtlfuncs.h:1956
DRIVER_DISPATCH(nfs41_FsdDispatch)
COMMON_DEVICE_EXTENSION Common
Definition: kbdclass.h:63
KSPIN_LOCK ListSpinLock
Definition: kbdclass.h:68
PCLASS_DRIVER_EXTENSION DriverExtension
Definition: kbdclass.h:65
LIST_ENTRY ListHead
Definition: kbdclass.h:67
PREAD_DATA ReadData
Definition: kbdclass.h:69
PDEVICE_OBJECT MainClassDeviceObject
Definition: kbdclass.h:40
UNICODE_STRING RegistryPath
Definition: kbdclass.h:33
UNICODE_STRING DeviceBaseName
Definition: kbdclass.h:38
Definition: typedefs.h:120
PDEVICE_OBJECT DeviceObject
Definition: kbdclass.h:53
UNICODE_STRING InterfaceName
Definition: kbdclass.h:58
PORT_DEVICE_STATE PnpState
Definition: kbdclass.h:54
LIST_ENTRY ListEntry
Definition: kbdclass.h:52
PDEVICE_OBJECT ClassDO
Definition: kbdclass.h:56
COMMON_DEVICE_EXTENSION Common
Definition: kbdclass.h:50
PDEVICE_OBJECT LowerDevice
Definition: kbdclass.h:55
KSPIN_LOCK SpinLock
Definition: kbdclass.h:25
PKEYBOARD_INPUT_DATA PortData
Definition: kbdclass.h:28
SIZE_T InputCount
Definition: kbdclass.h:27
PIRP PendingIrp
Definition: kbdclass.h:26
const uint16_t * LPCWSTR
Definition: typedefs.h:57
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40