ReactOS
0.4.16-dev-306-g647d351
fxdeviceinterface.hpp
Go to the documentation of this file.
1
/*++
2
3
Copyright (c) Microsoft Corporation
4
5
Module Name:
6
7
FxDeviceInterface.hpp
8
9
Abstract:
10
11
This module implements the device interface object.
12
13
Author:
14
15
16
17
Environment:
18
19
Both kernel and user mode
20
21
Revision History:
22
23
--*/
24
25
#ifndef _FXDEVICEINTERFACE_H_
26
#define _FXDEVICEINTERFACE_H_
27
28
class
FxDeviceInterface
:
public
FxStump
29
{
30
public
:
31
GUID
m_InterfaceClassGUID
;
32
33
UNICODE_STRING
m_ReferenceString
;
34
35
UNICODE_STRING
m_SymbolicLinkName
;
36
37
SINGLE_LIST_ENTRY
m_Entry
;
38
39
BOOLEAN
m_State
;
40
41
#if (FX_CORE_MODE == FX_CORE_USER_MODE)
42
//
43
// This is needed in UM to get hold of host interface
44
//
45
MdDeviceObject
m_Device
;
46
47
#endif
48
49
public
:
50
FxDeviceInterface
(
51
VOID
52
);
53
54
~FxDeviceInterface
(
55
VOID
56
);
57
58
static
59
FxDeviceInterface
*
60
_FromEntry
(
61
__in
PSINGLE_LIST_ENTRY
Entry
62
)
63
{
64
return
CONTAINING_RECORD
(
Entry
,
FxDeviceInterface
,
m_Entry
);
65
}
66
67
_Must_inspect_result_
68
NTSTATUS
69
Initialize
(
70
__in
PFX_DRIVER_GLOBALS
FxDriverGlobals,
71
__in
CONST
GUID
* InterfaceGUID,
72
__in_opt
PCUNICODE_STRING
ReferenceString
73
);
74
75
VOID
76
SetState
(
77
__in
BOOLEAN
State
78
);
79
80
_Must_inspect_result_
81
NTSTATUS
82
Register
(
83
__in
MdDeviceObject
Pdo
84
);
85
86
_Must_inspect_result_
87
NTSTATUS
88
Register
(
89
_In_
FxDevice
*
Device
90
);
91
92
NTSTATUS
93
GetSymbolicLinkName
(
94
_In_
FxString
* LinkString
95
);
96
};
97
98
#endif
// _FXDEVICEINTERFACE_H_
BOOLEAN
unsigned char BOOLEAN
Definition:
ProcessorBind.h:185
IDTYPE::Register
@ Register
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
FxDeviceInterface
Definition:
fxdeviceinterface.hpp:29
FxDeviceInterface::m_State
BOOLEAN m_State
Definition:
fxdeviceinterface.hpp:39
FxDeviceInterface::~FxDeviceInterface
~FxDeviceInterface(VOID)
Definition:
fxdeviceinterface.cpp:61
FxDeviceInterface::SetState
VOID SetState(__in BOOLEAN State)
Definition:
fxdeviceinterface.cpp:129
FxDeviceInterface::m_SymbolicLinkName
UNICODE_STRING m_SymbolicLinkName
Definition:
fxdeviceinterface.hpp:35
FxDeviceInterface::_FromEntry
static FxDeviceInterface * _FromEntry(__in PSINGLE_LIST_ENTRY Entry)
Definition:
fxdeviceinterface.hpp:60
FxDeviceInterface::m_Device
MdDeviceObject m_Device
Definition:
fxdeviceinterface.hpp:45
FxDeviceInterface::m_ReferenceString
UNICODE_STRING m_ReferenceString
Definition:
fxdeviceinterface.hpp:33
FxDeviceInterface::GetSymbolicLinkName
NTSTATUS GetSymbolicLinkName(_In_ FxString *LinkString)
Definition:
fxdeviceinterfacekm.cpp:212
FxDeviceInterface::m_InterfaceClassGUID
GUID m_InterfaceClassGUID
Definition:
fxdeviceinterface.hpp:31
FxDeviceInterface::m_Entry
SINGLE_LIST_ENTRY m_Entry
Definition:
fxdeviceinterface.hpp:37
FxDevice
Definition:
fxdevice.hpp:487
FxString
Definition:
fxstring.hpp:30
__in
#define __in
Definition:
dbghelp.h:35
__in_opt
#define __in_opt
Definition:
dbghelp.h:38
GUID
Definition:
shobjidl.idl:2988
void
Definition:
nsiface.idl:2307
_Must_inspect_result_
#define _Must_inspect_result_
Definition:
no_sal2.h:62
_In_
#define _In_
Definition:
no_sal2.h:158
CONST
#define CONST
Definition:
pedump.c:81
Entry
base of all file and directory entries
Definition:
entries.h:83
FxStump
Definition:
fxstump.hpp:20
State
Definition:
stack_allocator.h:18
_DEVICE_OBJECT
Definition:
env_spec_w32.h:413
_FX_DRIVER_GLOBALS
Definition:
fxglobals.h:165
_SINGLE_LIST_ENTRY
Definition:
ntbasedef.h:636
_UNICODE_STRING
Definition:
env_spec_w32.h:368
CONTAINING_RECORD
#define CONTAINING_RECORD(address, type, field)
Definition:
typedefs.h:260
Device
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition:
wdfchildlist.h:474
ReferenceString
_Must_inspect_result_ _In_ WDFDEVICE _In_ CONST GUID _In_opt_ PCUNICODE_STRING ReferenceString
Definition:
wdfdevice.h:3630
Pdo
WDF_EXTERN_C_START typedef _Must_inspect_result_ _In_ WDFDRIVER _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT Pdo
Definition:
wdfminiport.h:72
Initialize
static void Initialize()
Definition:
xlate.c:212
sdk
lib
drivers
wdf
shared
inc
private
common
fxdeviceinterface.hpp
Generated on Mon Dec 2 2024 06:16:08 for ReactOS by
1.9.6