ReactOS  0.4.15-dev-4920-g5fa8403
fxdevicecontrolapi.cpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation. All rights reserved.
4 
5 Module Name:
6 
7  FxDeviceControlAPI.cpp
8 
9 Abstract:
10 
11  This module implements external DDIs for control devices
12 
13 Author:
14 
15 
16 
17 Environment:
18 
19  Both kernel and user mode
20 
21 Revision History:
22 
23 --*/
24 
25 #include "coreprivshared.hpp"
26 
27 extern "C" {
28 // #include "FxDeviceControlAPI.tmh"
29 }
30 
31 extern "C" {
32 
34 VOID
35 STDCALL
36 WDFEXPORT(WdfControlFinishInitializing)(
37  __in
39  __in
40  WDFDEVICE Device
41  )
42 {
45 
47  Device,
49  (PVOID*) &pDevice,
51 
53 
54  if (pDevice->IsLegacy()) {
55  // pDevice->m_PkgWmi->Register(); __REACTOS__
56  device.SetFlags(device.GetFlags() & ~DO_DEVICE_INITIALIZING);
57  }
58  else {
61  "WDFDEVICE %p not a control device", Device);
63  }
64 }
65 
66 } // entire extern "C" for the file
67 
#define DO_DEVICE_INITIALIZING
Definition: env_spec_w32.h:399
MdDeviceObject __inline GetDeviceObject(VOID)
Definition: fxdevice.hpp:174
__drv_maxIRQL(DISPATCH_LEVEL) VOID STDCALL WDFEXPORT(WdfControlFinishInitializing)(__in PWDF_DRIVER_GLOBALS DriverGlobals
DriverGlobals
__inline BOOLEAN IsLegacy(VOID)
Definition: fxdevice.hpp:1209
Definition: devices.h:37
#define WDFEXPORT(a)
Definition: fxmacros.hpp:157
#define TRACINGDEVICE
Definition: dbgtrace.h:58
PFX_DRIVER_GLOBALS pFxDriverGlobals
#define STDCALL
Definition: wdf.h:45
MxDeviceObject device(pDevice->GetDeviceObject())
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
#define TRACE_LEVEL_ERROR
Definition: storswtr.h:27
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
FxVerifierDbgBreakPoint(pFxDriverGlobals)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
FxDevice * pDevice
__inline PFX_DRIVER_GLOBALS GetFxDriverGlobals(__in PWDF_DRIVER_GLOBALS DriverGlobals)
Definition: fxglobals.h:597
#define __in
Definition: dbghelp.h:35
FxObjectHandleGetPtrAndGlobals(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE,(PVOID *) &pDevice, &pFxDriverGlobals)
__in WDFDEVICE Device