29#include "../pnppriv.hpp"
35#if defined(EVENT_TRACING)
38#include "FxPkgFdoUm.tmh"
103 Irp->CopyCurrentIrpStackLocationToNext();
104 Irp->SetCompletionRoutine(
178 Irp->CopyCurrentIrpStackLocationToNext();
179 Irp->SetCompletionRoutine(
223 "Lower stack returned error for query pnp device state, %!STATUS!",
MdDeviceObject __inline GetAttachedDevice(VOID)
IWudfDeviceStack2 * GetDeviceStack2(VOID)
VOID SetStatus(__in NTSTATUS Status)
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
VOID HandleQueryPnpDeviceStateCompletion(__inout FxIrp *Irp)
virtual _Must_inspect_result_ NTSTATUS Initialize(__in PWDFDEVICE_INIT DeviceInit)
static _Must_inspect_result_ NTSTATUS _PnpQueryCapabilitiesCompletionRoutine(__in MdDeviceObject DeviceObject, __inout MdIrp Irp, __inout PVOID Context)
VOID HandleQueryCapabilitiesCompletion(__inout FxIrp *Irp)
static _Must_inspect_result_ NTSTATUS _PnpQueryPnpDeviceStateCompletionRoutine(__in MdDeviceObject DeviceObject, __inout MdIrp Irp, __inout PVOID Context)
_Must_inspect_result_ NTSTATUS PnpFilterResourceRequirements(__inout FxIrp *Irp)
_Must_inspect_result_ NTSTATUS PnpQueryCapabilities(__inout FxIrp *Irp)
static _Must_inspect_result_ NTSTATUS _PnpQueryPnpDeviceState(__inout FxPkgPnp *This, __inout FxIrp *Irp)
virtual _Must_inspect_result_ NTSTATUS AskParentToRemoveAndReenumerate(VOID)
VOID HandleQueryCapabilities(__inout FxIrp *Irp)
_Must_inspect_result_ NTSTATUS AllocateEnumInfo(VOID)
virtual _Must_inspect_result_ NTSTATUS Initialize(__in PWDFDEVICE_INIT DeviceInit)
NTSTATUS CompletePnpRequest(__inout FxIrp *Irp, __in NTSTATUS Status)
#define NT_SUCCESS(StatCode)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
IWudfDeviceStack * pDevStack
PFX_DRIVER_GLOBALS pGlobals
#define _Must_inspect_result_
#define ASSERTMSG(msg, exp)
#define UNREFERENCED_PARAMETER(P)
#define STATUS_NOT_SUPPORTED
#define STATUS_NOT_IMPLEMENTED
#define STATUS_MORE_PROCESSING_REQUIRED
#define TRACE_LEVEL_ERROR
_In_ PWDFDEVICE_INIT DeviceInit
_In_ PDEVICE_OBJECT DeviceObject