200 "FxFileObject::_GetFileObjectFromWdm returned an error %!STATUS!",
215WDFEXPORT(WdfDeviceWdmDispatchPreprocessedIrp)(
243 if (
device->IsCxInIoPath()) {
251 "This API can only be called by client driver from its "
252 "pre-process IRP callback, STATUS_INVALID_DEVICE_REQUEST");
263 device->m_PreprocessInfoListHead.Flink->Flink);
293 "This API can only be called by wdf extension driver "
294 "from its pre-process IRP callback, %!STATUS!",
303 for (
next =
device->m_PreprocessInfoListHead.Flink;
316 "DispatchContext 0x%p is invalid, %!STATUS!",
406WDFEXPORT(WdfDeviceWdmDispatchIrpToIoQueue)(
464 Irp->IoStatus.Information = 0;
495 queue->GetCxDeviceInfo());
509WDFEXPORT(WdfDeviceAddDependentUsageDeviceObject)(
535WDFEXPORT(WdfDeviceRemoveDependentUsageDeviceObject)(
562WDFEXPORT(WdfDeviceAssignMofResourceName)(
598 "WDFDEVICE %p MofResourceName already assigned, %!STATUS!",
611 "WDFDEVICE %p couldn't creat duplicate buffer, %!STATUS!",
621WDFEXPORT(WdfDeviceSetSpecialFileSupport)(
644 "WDFDEVICE 0x%p FileType %d specified is not in valid range",
684 "NULL WDFDEVICE handle %p or invalid %!STATUS!",
698 "WDFDEVICE 0x%p No request to complete"
699 " STATUS_INVALID_DEVICE_REQUEST",
710 "WDFDEVICE 0x%p Not the waitwake owner"
711 " STATUS_INVALID_DEVICE_STATE",
723WDFEXPORT(WdfDeviceSetBusInformationForChildren)(
748WDFEXPORT(WdfDeviceAddRemovalRelationsPhysicalDevice)(
789WDFEXPORT(WdfDeviceRemoveRemovalRelationsPhysicalDevice)(
830WDFEXPORT(WdfDeviceClearRemovalRelationsDevices)(
864WDFEXPORT(WdfDeviceWdmAssignPowerFrameworkSettings)(
918 "WDFDEVICE 0x%p is not the power policy owner, so the caller cannot"
919 " assign power framework settings %!STATUS!",
Device,
status);
931 "WDFDEVICE 0x%p Expected PowerFrameworkSettings size %d, actual %d,"
951 "WDFDEVICE 0x%p Component settings are specified but "
961 "WDFDEVICE 0x%p Component settings are specified but IdleStates"
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
MdDeviceObject __inline GetPhysicalDevice(VOID)
WDFDEVICE __inline GetHandle(VOID)
MdDeviceObject __inline GetAttachedDevice(VOID)
MdDeviceObject __inline GetDeviceObject(VOID)
static FxDevice * GetFxDevice(__in MdDeviceObject DeviceObject)
UNICODE_STRING m_MofResourceName
__inline WDF_FILEOBJECT_CLASS GetFileObjectClass(VOID)
static _Must_inspect_result_ NTSTATUS _GetFileObjectFromWdm(__in FxDevice *pDevice, __in WDF_FILEOBJECT_CLASS FileObjectClass, __in_opt MdFileObject pWdmFileObject, __deref_out_opt FxFileObject **ppFxFileObject)
__inline WDFFILEOBJECT GetHandle(VOID)
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
VOID RemoveUsageDevice(__in MdDeviceObject DependentDevice)
BOOLEAN IsPowerPolicyOwner(VOID)
_Must_inspect_result_ NTSTATUS AddUsageDevice(__in MdDeviceObject DependentDevice)
VOID SetSpecialFileSupport(__in WDF_SPECIAL_FILE_TYPE FileType, __in BOOLEAN Supported)
_Must_inspect_result_ NTSTATUS AddRemovalDevice(__in MdDeviceObject DependentDevice)
BOOLEAN PowerIndicateWaitWakeStatus(__in NTSTATUS WaitWakeStatus)
SharedPowerData m_SharedPower
VOID RemoveRemovalDevice(__in MdDeviceObject DependentDevice)
NTSTATUS AssignPowerFrameworkSettings(__in PWDF_POWER_FRAMEWORK_SETTINGS PowerFrameworkSettings)
VOID ClearRemovalDevicesList(VOID)
VOID SetChildBusInformation(__in PPNP_BUS_INFORMATION BusInformation)
#define NT_SUCCESS(StatCode)
#define __drv_maxIRQL(irql)
#define IsListEmpty(ListHead)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
_Must_inspect_result_ NTSTATUS FX_VF_FUNCTION() VerifyWdfDeviceWdmDispatchIrpToIoQueue(_In_ PFX_DRIVER_GLOBALS FxDriverGlobals, _In_ FxDevice *device, _In_ MdIrp Irp, _In_ FxIoQueue *queue, _In_ ULONG Flags)
__in WDFDEVICE __in PPNP_BUS_INFORMATION BusInformation
_Must_inspect_result_ __in WDFDEVICE __in MdIrp __in WDFQUEUE __in ULONG Flags
_Must_inspect_result_ __in WDFDEVICE __in PDEVICE_OBJECT PhysicalDevice
_Must_inspect_result_ __in WDFDEVICE __in MdIrp Irp
_Must_inspect_result_ __in WDFDEVICE __in MdIrp __in WDFQUEUE Queue
__in PDEVICE_OBJECT DeviceObject
__in WDFDEVICE __in WDF_SPECIAL_FILE_TYPE FileType
FxObjectHandleGetPtr(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE_BASE,(PVOID *) &pDevice)
PFX_DRIVER_GLOBALS fxDriverGlobals
FX_TRACK_DRIVER(fxDriverGlobals)
_Must_inspect_result_ __in WDFDEVICE __in PDEVICE_OBJECT DependentDevice
_Must_inspect_result_ __in WDFDEVICE __in MdIrp __in WDFCONTEXT DispatchContext
_Must_inspect_result_ __in WDFDEVICE __in NTSTATUS WaitWakeStatus
__in WDFDEVICE __in MdFileObject FileObject
FxObjectHandleGetPtrAndGlobals(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE,(PVOID *) &device, &fxDriverGlobals)
VOID FX_VF_FUNCTION() VerifyWdfDeviceWdmDispatchIrp(_In_ PFX_DRIVER_GLOBALS FxDriverGlobals, _In_ PWDF_DRIVER_GLOBALS DriverGlobals, _In_ FxDevice *device, _In_ WDFCONTEXT DispatchContext)
_Must_inspect_result_ __in WDFDEVICE __in PCUNICODE_STRING MofResourceName
FxIoInCallerContext * ioInCallerCtx
_Must_inspect_result_ __in WDFDEVICE __in PWDF_POWER_FRAMEWORK_SETTINGS PowerFrameworkSettings
__in WDFDEVICE __in WDF_SPECIAL_FILE_TYPE __in BOOLEAN Supported
FxVerifierDbgBreakPoint(pFxDriverGlobals)
__inline PFX_DRIVER_GLOBALS GetFxDriverGlobals(__in PWDF_DRIVER_GLOBALS DriverGlobals)
#define FX_DECLARE_VF_FUNCTION_P3(rt, fnName, at1, at2, at3)
#define FX_DECLARE_VF_FUNCTION_P4(rt, fnName, at1, at2, at3, at4)
#define FX_VF_FUNCTION(fnName)
#define FxPointerNotNull(FxDriverGlobals, Ptr)
#define FX_IN_DISPATCH_CALLBACK
_Must_inspect_result_ NTSTATUS __inline FxValidateUnicodeString(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PCUNICODE_STRING String)
__inline NTSTATUS FxVerifierCheckIrqlLevel(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in KIRQL Irql)
#define _Must_inspect_result_
struct @1673::@1674 driver
PFILE_OBJECT MdFileObject
#define UNREFERENCED_PARAMETER(P)
#define IoCopyCurrentIrpStackLocationToNext(Irp)
#define IoCompleteRequest
static unsigned __int64 next
#define TRACE_LEVEL_ERROR
_Must_inspect_result_ NTSTATUS FxDuplicateUnicodeString(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in const UNICODE_STRING *Source, __out PUNICODE_STRING Destination)
_Must_inspect_result_ BOOLEAN IsVerificationEnabled(__in ULONG Major, __in ULONG Minor, __in FxVerifierDownlevelOption DownLevel)
struct _LIST_ENTRY * PLIST_ENTRY
#define STATUS_INVALID_DEVICE_REQUEST
#define STATUS_INVALID_PARAMETER
#define STATUS_INVALID_DEVICE_STATE
#define STATUS_INFO_LENGTH_MISMATCH
_Must_inspect_result_ _In_ WDFDEVICE Device
_In_ PDEVICE_OBJECT DeviceObject
_In_ UCHAR _In_ UCHAR _In_ ULONG _In_ WDFCONTEXT _Inout_ PIRP _In_ WDFCONTEXT DispatchContext
enum _WDF_SPECIAL_FILE_TYPE WDF_SPECIAL_FILE_TYPE
@ WDF_DISPATCH_IRP_TO_IO_QUEUE_PREPROCESSED_IRP
@ WDF_DISPATCH_IRP_TO_IO_QUEUE_INVOKE_INCALLERCTX_CALLBACK
_Must_inspect_result_ _In_ WDFDEVICE _In_ PDEVICE_OBJECT PhysicalDevice
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING MofResourceName
_Must_inspect_result_ _In_ WDFDEVICE _In_ PIRP _In_ WDFQUEUE Queue
_In_ WDFDEVICE _In_ WDF_SPECIAL_FILE_TYPE FileType
_Must_inspect_result_ _In_ WDFDEVICE _In_ NTSTATUS WaitWakeStatus
_Must_inspect_result_ _In_ WDFDEVICE _In_ PDEVICE_OBJECT DependentDevice
_In_ WDFDEVICE _In_ PPNP_BUS_INFORMATION BusInformation
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_POWER_FRAMEWORK_SETTINGS PowerFrameworkSettings
_Must_inspect_result_ _In_ ULONG Flags
FORCEINLINE VOID IoSetNextIrpStackLocation(_Inout_ PIRP Irp)
#define PAGED_CODE_LOCKED()