ReactOS 0.4.15-dev-7674-gc0b4db1
fxirpdynamicdispatchinfo.hpp
Go to the documentation of this file.
1//
2// Copyright (C) Microsoft. All rights reserved.
3//
4#ifndef _FXIRPDYNAMICDISPATCHINFO_H_
5#define _FXIRPDYNAMICDISPATCHINFO_H_
6
7//
8// Placeholder macro for a no-op
9//
10#ifndef DO_NOTHING
11#define DO_NOTHING() (0)
12#endif
13
17 {
20 }
21
23 {
25 }
26
33 };
34
35 struct Info {
36 Info() :
39 {
40 }
41
43 {
44 DO_NOTHING();
45 }
46
49 };
50
51 __inline
52 static
53 int
56 )
57 {
59
60 switch (MajorFunction) {
61 case IRP_MJ_READ:
63 break;
64
65 case IRP_MJ_WRITE:
67 break;
68
71 break;
72
75 break;
76
77 default:
79 break;
80 }
81
82 return (int)type;
83 }
84
87
88 //
89 // If not null, weak ref to class extension info struct.
90 //
92};
93
94#endif // _FXIRPDYNAMICDISPATCHINFO_H_
#define NULL
Definition: types.h:112
#define IsListEmpty(ListHead)
Definition: env_spec_w32.h:954
#define InitializeListHead(ListHead)
Definition: env_spec_w32.h:944
#define DO_NOTHING()
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define ASSERT(a)
Definition: mode.c:44
#define IRP_MJ_READ
Definition: rdpdr.c:46
#define IRP_MJ_DEVICE_CONTROL
Definition: rdpdr.c:52
#define IRP_MJ_WRITE
Definition: rdpdr.c:47
PFN_WDFDEVICE_WDM_IRP_DISPATCH EvtDeviceDynamicDispatch
static __inline int Mj2Index(UCHAR MajorFunction)
Definition: typedefs.h:120
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_In_ UCHAR _In_ UCHAR _In_ ULONG _In_ WDFCONTEXT DriverContext
Definition: wdfdevice.h:1703
EVT_WDFDEVICE_WDM_IRP_DISPATCH * PFN_WDFDEVICE_WDM_IRP_DISPATCH
Definition: wdfdevice.h:1710
_In_ UCHAR MajorFunction
Definition: wdfdevice.h:1697
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH * Dispatch
Definition: wsk.h:188
#define IRP_MJ_INTERNAL_DEVICE_CONTROL
unsigned char UCHAR
Definition: xmlstorage.h:181