ReactOS 0.4.16-dev-197-g92996da
fxdevicecontrolapi.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation. All rights reserved.
4
5Module Name:
6
7 FxDeviceControlAPI.cpp
8
9Abstract:
10
11 This module implements external DDIs for control devices
12
13Author:
14
15
16
17Environment:
18
19 Both kernel and user mode
20
21Revision History:
22
23--*/
24
25#include "coreprivshared.hpp"
26
27extern "C" {
28// #include "FxDeviceControlAPI.tmh"
29}
30
31extern "C" {
32
34VOID
36WDFEXPORT(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
MdDeviceObject __inline GetDeviceObject(VOID)
Definition: fxdevice.hpp:174
__inline BOOLEAN IsLegacy(VOID)
Definition: fxdevice.hpp:1209
#define __in
Definition: dbghelp.h:35
#define TRACINGDEVICE
Definition: dbgtrace.h:58
#define __drv_maxIRQL(irql)
Definition: driverspecs.h:291
#define DO_DEVICE_INITIALIZING
Definition: env_spec_w32.h:399
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
PFX_DRIVER_GLOBALS pFxDriverGlobals
FxDevice * pDevice
__in WDFDEVICE Device
FxVerifierDbgBreakPoint(pFxDriverGlobals)
FxObjectHandleGetPtrAndGlobals(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE,(PVOID *) &pDevice, &pFxDriverGlobals)
DriverGlobals
__inline PFX_DRIVER_GLOBALS GetFxDriverGlobals(__in PWDF_DRIVER_GLOBALS DriverGlobals)
Definition: fxglobals.h:597
#define WDFEXPORT(a)
Definition: fxmacros.hpp:157
@ FX_TYPE_DEVICE
Definition: fxtypes.h:47
#define TRACE_LEVEL_ERROR
Definition: storswtr.h:27
Definition: devices.h:37
#define STDCALL
Definition: wdf.h:45
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474