ReactOS 0.4.16-dev-292-gbbdcc14
kbdclass.h File Reference
#include <ntifs.h>
#include <ntddkbd.h>
Include dependency graph for kbdclass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _CLASS_DRIVER_EXTENSION
 
struct  _COMMON_DEVICE_EXTENSION
 
struct  _PORT_DEVICE_EXTENSION
 
struct  _CLASS_DEVICE_EXTENSION
 

Macros

#define MAX_PATH   260
 
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 
#define CLASS_TAG   'CdbK'
 
#define DPFLTR_CLASS_NAME_ID   DPFLTR_KBDCLASS_ID
 

Typedefs

typedef struct _CLASS_DRIVER_EXTENSION CLASS_DRIVER_EXTENSION
 
typedef struct _CLASS_DRIVER_EXTENSIONPCLASS_DRIVER_EXTENSION
 
typedef struct _COMMON_DEVICE_EXTENSION COMMON_DEVICE_EXTENSION
 
typedef struct _COMMON_DEVICE_EXTENSIONPCOMMON_DEVICE_EXTENSION
 
typedef struct _PORT_DEVICE_EXTENSION PORT_DEVICE_EXTENSION
 
typedef struct _PORT_DEVICE_EXTENSIONPPORT_DEVICE_EXTENSION
 
typedef struct _CLASS_DEVICE_EXTENSION CLASS_DEVICE_EXTENSION
 
typedef struct _CLASS_DEVICE_EXTENSIONPCLASS_DEVICE_EXTENSION
 

Enumerations

enum  PORT_DEVICE_STATE {
  dsStopped , dsStarted , dsPaused , dsRemoved ,
  dsSurpriseRemoved , dsStopped , dsStarted , dsPaused ,
  dsRemoved , dsSurpriseRemoved
}
 

Functions

NTSTATUS DuplicateUnicodeString (IN ULONG Flags, IN PCUNICODE_STRING SourceString, OUT PUNICODE_STRING DestinationString)
 

Variables

DRIVER_DISPATCH ForwardIrpAndForget
 

Macro Definition Documentation

◆ CLASS_TAG

#define CLASS_TAG   'CdbK'

Definition at line 11 of file kbdclass.h.

◆ DPFLTR_CLASS_NAME_ID

#define DPFLTR_CLASS_NAME_ID   DPFLTR_KBDCLASS_ID

Definition at line 12 of file kbdclass.h.

◆ MAX_PATH

#define MAX_PATH   260

Definition at line 7 of file kbdclass.h.

◆ MIN

#define MIN (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Definition at line 9 of file kbdclass.h.

Typedef Documentation

◆ CLASS_DEVICE_EXTENSION

◆ CLASS_DRIVER_EXTENSION

◆ COMMON_DEVICE_EXTENSION

◆ PCLASS_DEVICE_EXTENSION

◆ PCLASS_DRIVER_EXTENSION

◆ PCOMMON_DEVICE_EXTENSION

◆ PORT_DEVICE_EXTENSION

◆ PPORT_DEVICE_EXTENSION

Enumeration Type Documentation

◆ PORT_DEVICE_STATE

Enumerator
dsStopped 
dsStarted 
dsPaused 
dsRemoved 
dsSurpriseRemoved 
dsStopped 
dsStarted 
dsPaused 
dsRemoved 
dsSurpriseRemoved 

Definition at line 14 of file kbdclass.h.

15{
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

Function Documentation

◆ DuplicateUnicodeString()

NTSTATUS DuplicateUnicodeString ( IN ULONG  Flags,
IN PCUNICODE_STRING  SourceString,
OUT PUNICODE_STRING  DestinationString 
)

Definition at line 31 of file misc.c.

35{
40 {
42 }
43
44
45 if ((SourceString->Length == 0)
48 {
52 }
53 else
54 {
55 USHORT DestMaxLength = SourceString->Length;
56
58 DestMaxLength += sizeof(UNICODE_NULL);
59
62 return STATUS_NO_MEMORY;
63
66 DestinationString->MaximumLength = DestMaxLength;
67
70 }
71
72 return STATUS_SUCCESS;
73}
#define STATUS_NO_MEMORY
Definition: d3dkmdt.h:51
#define NULL
Definition: types.h:112
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
#define PagedPool
Definition: env_spec_w32.h:308
#define RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING
Definition: green.h:16
#define RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE
Definition: green.h:15
#define I8042PRT_TAG
Definition: i8042prt.h:12
_Out_ _Inout_ POEM_STRING _In_ PCUNICODE_STRING SourceString
Definition: rtlfuncs.h:1922
_Out_ _Inout_ POEM_STRING DestinationString
Definition: rtlfuncs.h:1921
#define UNICODE_NULL
unsigned short USHORT
Definition: pedump.c:61
#define STATUS_SUCCESS
Definition: shellext.h:65
unsigned short Length
Definition: sprintf.c:451
void * Buffer
Definition: sprintf.c:453
unsigned short MaximumLength
Definition: sprintf.c:452
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
__wchar_t WCHAR
Definition: xmlstorage.h:180

Variable Documentation

◆ ForwardIrpAndForget

DRIVER_DISPATCH ForwardIrpAndForget

Definition at line 70 of file kbdclass.h.