ReactOS  0.4.15-dev-3299-gbe8e5fc
fxrelateddevice.hpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxRelatedDevice.hpp
8 
9 Abstract:
10 
11  This module defines the "related device" class. These objects are used
12  to handle device relations queries.
13 
14 Author:
15 
16 
17 
18 Environment:
19 
20  Both kernel and user mode
21 
22 Revision History:
23 
24 --*/
25 
26 #ifndef _FXRELATEDDEVICE_H_
27 #define _FXRELATEDDEVICE_H_
28 
34 };
35 
36 class FxRelatedDevice : public FxObject {
38 
39 protected:
41 
43 
44 public:
46 
47 public:
50  __in PFX_DRIVER_GLOBALS FxDriverGlobals
51  );
52 
54  VOID
55  );
56 
59  VOID
60  )
61  {
62  return m_DeviceObject;
63  }
64 
66 
67 #ifdef INLINE_WRAPPER_ALLOCATION
68 #if (FX_CORE_MODE==FX_CORE_USER_MODE)
70  PVOID
72  )
73  {
74  PBYTE ptr = (PBYTE) this;
75  return (ptr + (USHORT) WDF_ALIGN_SIZE_UP(sizeof(*this), MEMORY_ALLOCATION_ALIGNMENT));
76  }
77 #endif
78 #endif
79 };
80 
81 #endif // _FXRELATEDDEVICE_H_
PVOID GetCOMWrapper()
Definition: fxobject.hpp:518
FxTransactionedEntry m_TransactionedEntry
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
FORCEINLINE size_t WDF_ALIGN_SIZE_UP(_In_ size_t Length, _In_ size_t AlignTo)
Definition: wdfcore.h:129
static PVOID ptr
Definition: dispmode.c:27
MdDeviceObject m_DeviceObject
DECLARE_INTERNAL_NEW_OPERATOR()
MdDeviceObject GetDevice(VOID)
FxRelatedDeviceState m_State
FxRelatedDevice(__in MdDeviceObject DeviceObject, __in PFX_DRIVER_GLOBALS FxDriverGlobals)
unsigned short USHORT
Definition: pedump.c:61
#define FORCEINLINE
Definition: wdftypes.h:67
FxRelatedDeviceState
#define __in
Definition: dbghelp.h:35
BYTE * PBYTE
Definition: pedump.c:66
#define MEMORY_ALLOCATION_ALIGNMENT
Definition: ntbasedef.h:90