ReactOS 0.4.15-dev-7906-g1b85a5f
mxdeviceobjectkm.h
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5ModuleName:
6
7 MxDeviceObjectKm.h
8
9Abstract:
10
11 Kernel Mode implementation of Device Object defined in MxDeviceObject.h
12
13--*/
14
15#pragma once
16
17#include "mxdeviceobject.h"
18
19__inline
22 VOID
23 )
24{
26}
27
28__inline
29VOID
32 )
33{
35}
36
37__inline
38VOID
40 )
41{
43}
44
45__inline
48 VOID
49 )
50{
52}
53
54__inline
55VOID
57 )
58{
60}
61
62__inline
65 VOID
66 )
67{
68#ifdef _MSC_VER
69#pragma warning(disable:28129)
70#endif
71 return m_DeviceObject->Flags;
72}
73
74__inline
75VOID
78 )
79{
80#ifdef _MSC_VER
81#pragma warning(disable:28129)
82#endif
84}
85
86__inline
91 )
92{
94}
95
96__inline
97VOID
100 )
101{
103}
104
105__inline
106VOID
109 )
110{
111 //
112 // UMDF currently needs Fdo for InvalidateDeviceState
113 // FDO is not used in km.
114 //
115 // m_DeviceObject holds PDO that is what is used below.
116 //
117
119
121}
122
123__inline
124PVOID
126 VOID
127 )
128{
130}
131
132__inline
133VOID
136 )
137{
139}
140
141__inline
144 VOID
145 )
146{
147 return m_DeviceObject->DeviceType;
148}
149
150__inline
151ULONG
153 VOID
154 )
155{
156 return m_DeviceObject->Characteristics;
157}
158
159__inline
160VOID
163 )
164{
165 m_DeviceObject->DeviceType = Value;
166}
167
168__inline
169VOID
171 ULONG Characteristics
172 )
173{
174 m_DeviceObject->Characteristics = Characteristics;
175}
176
177__inline
178VOID
181 )
182{
184}
185
186__inline
187ULONG
189 VOID
190 )
191{
193}
Type
Definition: Type.h:7
VOID InvalidateDeviceState(__in MdDeviceObject Fdo)
VOID SetDeviceType(DEVICE_TYPE Value)
MdDeviceObject m_DeviceObject
ULONG GetAlignmentRequirement(VOID)
VOID SetAlignmentRequirement(_In_ ULONG Value)
VOID SetCharacteristics(ULONG Characteristics)
VOID InvalidateDeviceRelations(__in DEVICE_RELATION_TYPE Type)
DEVICE_TYPE GetDeviceType(VOID)
CCHAR GetStackSize(VOID)
PVOID GetDeviceExtension(VOID)
ULONG GetFlags(VOID)
VOID DereferenceObject()
ULONG GetCharacteristics(VOID)
VOID SetStackSize(_In_ CCHAR Size)
POWER_STATE SetPowerState(__in POWER_STATE_TYPE Type, __in POWER_STATE State)
MdDeviceObject GetAttachedDeviceReference(VOID)
VOID SetDeviceExtension(PVOID Value)
VOID SetFlags(ULONG Flags)
#define __in
Definition: dbghelp.h:35
#define DEVICE_TYPE
Definition: guid.c:10
#define _In_
Definition: ms_sal.h:308
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
PDEVICE_OBJECT NTAPI IoGetAttachedDeviceReference(PDEVICE_OBJECT DeviceObject)
Definition: device.c:1406
POWER_STATE NTAPI PoSetPowerState(IN PDEVICE_OBJECT DeviceObject, IN POWER_STATE_TYPE Type, IN POWER_STATE State)
Definition: power.c:729
enum _POWER_STATE_TYPE POWER_STATE_TYPE
VOID NTAPI IoInvalidateDeviceRelations(IN PDEVICE_OBJECT DeviceObject, IN DEVICE_RELATION_TYPE Type)
Definition: pnpmgr.c:1772
VOID NTAPI IoInvalidateDeviceState(IN PDEVICE_OBJECT DeviceObject)
Definition: pnpmgr.c:1848
ULONG AlignmentRequirement
Definition: env_spec_w32.h:420
PVOID DeviceExtension
Definition: env_spec_w32.h:418
uint32_t ULONG
Definition: typedefs.h:59
char CCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_Must_inspect_result_ _In_ WDFDEVICE Fdo
Definition: wdffdo.h:461
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
enum _DEVICE_RELATION_TYPE DEVICE_RELATION_TYPE
#define ObDereferenceObject
Definition: obfuncs.h:203
#define ObReferenceObject
Definition: obfuncs.h:204