Something went wrong. Try again.
Reactos
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
FxDeviceControlAPI.cpp
Abstract:
This module implements external DDIs for control devices
Author:
Environment:
Both kernel and user mode
Revision History:
--*/
#include "coreprivshared.hpp"
extern "C" {// #include "FxDeviceControlAPI.tmh"}
extern "C" {
__drv_maxIRQL(DISPATCH_LEVEL)VOIDNTAPIWDFEXPORT(WdfControlFinishInitializing)( __in PWDF_DRIVER_GLOBALS DriverGlobals, __in WDFDEVICE Device ){ PFX_DRIVER_GLOBALS pFxDriverGlobals; FxDevice* pDevice;
FxObjectHandleGetPtrAndGlobals(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE, (PVOID*) &pDevice, &pFxDriverGlobals);
MxDeviceObject device(pDevice->GetDeviceObject());
if (pDevice->IsLegacy()) { pDevice->m_PkgWmi->Register(); device.SetFlags(device.GetFlags() & ~DO_DEVICE_INITIALIZING); } else { DoTraceLevelMessage( pFxDriverGlobals, TRACE_LEVEL_ERROR, TRACINGDEVICE, "WDFDEVICE %p not a control device", Device); FxVerifierDbgBreakPoint(pFxDriverGlobals); }}
} // entire extern "C" for the file