ReactOS  0.4.15-dev-4914-g2220e56
mouclass.h File Reference
#include <ntifs.h>
#include <ntddmou.h>
Include dependency graph for mouclass.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   'CuoM'
 
#define DPFLTR_CLASS_NAME_ID   DPFLTR_MOUCLASS_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   'CuoM'

Definition at line 11 of file mouclass.h.

◆ DPFLTR_CLASS_NAME_ID

#define DPFLTR_CLASS_NAME_ID   DPFLTR_MOUCLASS_ID

Definition at line 12 of file mouclass.h.

◆ MAX_PATH

#define MAX_PATH   260

Definition at line 7 of file mouclass.h.

◆ MIN

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

Definition at line 9 of file mouclass.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 mouclass.h.

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_INVALID_PARAMETER
Definition: udferr_usr.h:135
#define RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING
Definition: green.h:16
unsigned short Length
Definition: sprintf.c:451
#define I8042PRT_TAG
Definition: i8042prt.h:12
void * Buffer
Definition: sprintf.c:453
#define UNICODE_NULL
_Out_ _Inout_ POEM_STRING DestinationString
Definition: rtlfuncs.h:1895
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE
Definition: green.h:15
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
_Out_ _Inout_ POEM_STRING _In_ PCUNICODE_STRING SourceString
Definition: rtlfuncs.h:1895
unsigned short USHORT
Definition: pedump.c:61
#define STATUS_NO_MEMORY
Definition: ntstatus.h:260
#define NULL
Definition: types.h:112
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
#define STATUS_SUCCESS
Definition: shellext.h:65
unsigned short MaximumLength
Definition: sprintf.c:452

Variable Documentation

◆ ForwardIrpAndForget

DRIVER_DISPATCH ForwardIrpAndForget

Definition at line 70 of file mouclass.h.