ReactOS 0.4.16-dev-319-g6cf4263
fxrelateddevice.hpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxRelatedDevice.hpp
8
9Abstract:
10
11 This module defines the "related device" class. These objects are used
12 to handle device relations queries.
13
14Author:
15
16
17
18Environment:
19
20 Both kernel and user mode
21
22Revision History:
23
24--*/
25
26#ifndef _FXRELATEDDEVICE_H_
27#define _FXRELATEDDEVICE_H_
28
34};
35
36class FxRelatedDevice : public FxObject {
38
39protected:
41
43
44public:
46
47public:
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
MdDeviceObject m_DeviceObject
MdDeviceObject GetDevice(VOID)
FxRelatedDeviceState m_State
DECLARE_INTERNAL_NEW_OPERATOR()
FxTransactionedEntry m_TransactionedEntry
#define __in
Definition: dbghelp.h:35
FxRelatedDeviceState
@ RelatedDeviceStateNeedsReportPresent
@ RelatedDeviceStateReportedPresent
@ RelatedDeviceStateNeedsReportMissing
@ RelatedDeviceStateUnspecified
static PVOID ptr
Definition: dispmode.c:27
#define MEMORY_ALLOCATION_ALIGNMENT
Definition: ntbasedef.h:90
BYTE * PBYTE
Definition: pedump.c:66
unsigned short USHORT
Definition: pedump.c:61
FORCEINLINE size_t WDF_ALIGN_SIZE_UP(_In_ size_t Length, _In_ size_t AlignTo)
Definition: wdfcore.h:129
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
#define FORCEINLINE
Definition: wdftypes.h:67