71{
79
81
83
87
88
89
90
91
94
95
96
98 HookProcessInfo->DonotCallKmdfLib =
FALSE;
100 }
101
102
103
104
105
107 &attributes,
109 );
110
112
114
115
116
117 HookProcessInfo->DonotCallKmdfLib =
FALSE;
119 }
120
121
122
123
127 );
128
129
130
131
132
133
134
135
136
137
139
157
158
159
160
166 );
167
168
169
170
171 HookProcessInfo->DonotCallKmdfLib =
TRUE;
172 HookProcessInfo->DdiCallStatus =
status;
173
174
175
176
179
180
181
182
184 &attributes,
187
189
190
191
192
194
195
196
197
199 &
context->PnpPowerEventCallbacksOriginal,
200 &pnpPowerEvtsOriginal,
202 );
203 }
204 else {
205
206
207
208
209
210
211
212
213
214 ASSERTMSG(
"KMDF Enhanced Verifier failed to add context to object "
216
217 if (contextHeader !=
NULL) {
219 }
220 }
221 }
222 else {
223
224
225
226
227
228
230
231
232
235 &pnpPowerEvtsOriginal,
237 );
238 }
239
240 if (contextHeader !=
NULL) {
242 }
243 }
244
246}
#define NT_SUCCESS(StatCode)
PFX_DRIVER_GLOBALS pFxDriverGlobals
__inline PFX_DRIVER_GLOBALS GetFxDriverGlobals(__in PWDF_DRIVER_GLOBALS DriverGlobals)
#define FxPointerNotNull(FxDriverGlobals, Ptr)
void FxPoolFree(__in_xcount(ptr is at an offset from AllocationStart) PVOID ptr)
#define ASSERTMSG(msg, exp)
WDF_PNPPOWER_EVENT_CALLBACKS PnpPowerEventCallbacks
PFN_WDFDEVICECREATE pfnWdfDeviceCreate
#define RtlCopyMemory(Destination, Source, Length)
_Must_inspect_result_ NTSTATUS VfAllocateContext(__in PWDF_DRIVER_GLOBALS DriverGlobals, __in PWDF_OBJECT_ATTRIBUTES Attributes, __out PVOID *ContextHeader)
_Must_inspect_result_ NTSTATUS VfAddContextToHandle(__in PVOID ContextHeader, __in PWDF_OBJECT_ATTRIBUTES Attributes, __in WDFOBJECT Handle, __out_opt PVOID *Context)
#define SET_HOOK_IF_CALLBACK_PRESENT(Source, Target, Name)
_Must_inspect_result_ _In_ WDFDEVICE Device
_In_ PWDFDEVICE_INIT DeviceInit
_Must_inspect_result_ _Inout_ PWDFDEVICE_INIT _In_opt_ PWDF_OBJECT_ATTRIBUTES DeviceAttributes
#define WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(_attributes, _contexttype)
#define PAGED_CODE_LOCKED()