37 #define OFFSET_AND_NAME(type, offset) { #offset, FIELD_OFFSET(type, offset) } 206 "Device name for WDFDEVICE 0x%p is NULL. Possibly incorrect " 268 WDFEXPORT(WdfDeviceGetAlignmentRequirement)(
293 WDFEXPORT(WdfDeviceSetAlignmentRequirement)(
364 WDFEXPORT(WdfDeviceGetDevicePowerPolicyState)(
387 WDFEXPORT(WdfDeviceAssignS0IdleSettings)(
415 "Device 0x%p is not the power policy owner, caller cannot set S0" 430 "Expected Settings Size %d, got %d, %!STATUS!",
447 "a field (DxState, IdleCaps, Enabled, or UserControlOfIdleSettings)" 448 " is out range, %!STATUS!",
status);
463 "value of field PowerUpIdleDeviceOnSystemWake is out of range," 473 "value of field PowerUpIdleDeviceOnSystemWake should be set only when" 474 " IdleCaps is IdleCannotWakeFromS0, %!STATUS!",
status);
487 "WDFDEVICE %p, value of field IdleTimeoutType is out of range," 500 WDFEXPORT(WdfDeviceAssignSxWakeSettings)(
530 "Device 0x%p is not the power policy owner, caller cannot set Sx" 543 "Expected Settings Size %x, got %x, %!STATUS!",
559 "a field (DxState, Enabled, or UserControlOfIdleSettings) is out " 560 "range, %!STATUS!",
status);
575 Settings->ArmForWakeIfChildrenAreArmedForWake :
583 Settings->IndicateChildWakeOnParentWake :
695 "The subkey cannot be of length zero, %!STATUS!",
status);
717 "Unable to allocate memory for WDFKEY object, %!STATUS!",
status);
771 "WDFDEVICE 0x%p DeviceState Size %d, expected %d",
820 "WDFDEVICE 0x%p, DeviceState Size %d, expected %d",
849 "WDFDEVICE 0x%p DeviceState WDF_TRI_STATE %s value out of range, " 918 if ((*DeviceInit)->CreatedDevice !=
NULL) {
923 "WDFDEVICE 0x%p already created" 924 "STATUS_INVALID_DEVICE_STATE",
934 if ((*DeviceInit)->Security.Sddl !=
NULL || (*DeviceInit)->Security.DeviceClassSet) {
935 if ((*DeviceInit)->HasName()) {
946 "Device init: has device class or SDDL set, but does not have " 947 "a name, %!STATUS!",
status);
953 if ((*DeviceInit)->RequiresSelfIoTarget) {
958 "Client called WdfDeviceInitAllowSelfTarget. Self " 959 "IO Targets are supported only for FDOs, %!STATUS!",
status);
1007 "WDFDEVICE %p, SymbolicLinkName has no length, %!STATUS!",
1028 "WDFDEVICE %p already has a symbolic link associated with it, %!STATUS!",
1105 "WDFDEVICE 0x%p is not a PnP device %!STATUS!",
1121 "exit WDFDEVICE %p, Property %d, %!STATUS!",
1131 WDFEXPORT(WdfDeviceAllocAndQueryProperty)(
1199 "WDFDEVICE %p is not a PnP device, %!STATUS!",
1215 "exit WDFDEVICE %p, Property %d, %!STATUS!",
1224 WDFEXPORT(WdfDeviceSetStaticStopRemove)(
1292 "WDFDEVICE %p, !devobj %p SetFailed %!WDF_DEVICE_FAILED_ACTION!",
1338 "WDFDEVICE %p WdfDeviceStopIdle does nothing if you are not the power " 1339 "policy owner for the stack, %!STATUS!",
Device,
status);
1347 "WDFDEVICE %p WdfDeviceStopIdle, WaitForD0 %d %!STATUS!",
1380 "WdfDeviceResumeIdle does nothing if you are not the power " 1381 "policy owner for the stack");
1551 "WDFDEVICE 0x%p PnpCapabilities Size %d, expected %d",
1565 sizeof(*PnpCapabilities)) {
1580 "WDFDEVICE 0x%p PnpCapabilities WDF_TRI_STATE %s value out " 1595 WDFEXPORT(WdfDeviceSetPowerCapabilities)(
1647 "WDFDEVICE 0x%p PowerCapabilities Size %d, expected %d",
1663 sizeof(*PowerCapabilities)) {
1678 "WDFDEVICE 0x%p PowerCapabilities WDF_TRI_STATE %s value out " 1679 "of range, value is %d",
1692 "WDFDEVICE 0x%p PowerCapabilities DeviceState is invalid",
1706 "WDFDEVICE 0x%p PowerCapabilities DeviceWake %d is out of range",
1719 "WDFDEVICE 0x%p PowerCapabilities SystemWake %d is out of range",
1731 "WDFDEVICE 0x%p PowerCapabilities IdealDxStateForSx %d can only" 1732 " be set by the power policy owner",
1748 "WDFDEVICE 0x%p PowerCapabilities IdealDxStateForSx %d is out " 1765 WDFEXPORT(WdfDeviceConfigureRequestDispatching)(
1826 "Invalid RequestType %!WDF_REQUEST_TYPE!, %!STATUS!",
1844 "Input WDFQUEUE 0x%p doesn't belong to the WDFDEVICE 0x%p, %!STATUS!",
1861 "Queue cannot be configured for automatic dispatching" 1862 " after WdfControlDeviceFinishInitializing" 1863 "is called on the WDFDEVICE %p is called %!STATUS!",
1877 "Queue cannot be configured for automatic dispatching" 1878 "after the WDFDEVICE %p is started, %!STATUS!",
1948 "No default Queue configured " 1949 "for Device 0x%p",
Device);
2036 WDFEXPORT(WdfDeviceGetSystemPowerAction)(
2174 "PropertyData size (%d) incorrect, expected %d, %!STATUS!",
2192 "Property buffer size is non-zero, while the buffer is NULL" 2200 "Property buffer size is zero, while the buffer is non-NULL" 2222 WDFEXPORT(WdfDeviceAllocAndQueryPropertyEx)(
2299 "PropertyData size (%d) incorrect, expected %d, %!STATUS!",
2412 "PropertyData size (%d) incorrect, expected %d, %!STATUS!",
2427 "Property buffer size is zero, while the buffer is non-NULL" 2446 WDFEXPORT(WdfDeviceConfigureWdmIrpDispatchCallback)(
2516 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 2524 "Invalid MajorFunction provided %!IRPMJ!, %!STATUS!",
2560 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 2574 "Driver cannot set IRP dispatch callback " 2575 "after WdfControlDeviceFinishInitializing " 2576 "is called on the WDFDEVICE %p, %!STATUS!",
2588 "Driver cannot set IRP dispatch callback " 2589 "after the WDFDEVICE %p is started, %!STATUS!",
2627 "WDFDEVICE 0x%p !devobj 0x%p %!IRPMJ!, IRP_MN %x, IRP 0x%p",
2634 #if (FX_CORE_MODE == FX_CORE_KERNEL_MODE) 2642 "Flags 0x%x are invalid, %!STATUS!",
2655 "Only Read/Write/Control/Internal-Control IRPs can be " 2656 "forwarded to I/O Queue 0x%p, Irp 0x%p, %!IRPMJ!, " 2657 "IRP_MN %x, Device 0x%p, %!STATUS!",
2667 if (
FALSE ==
queue->IsIoEventHandlerRegistered(
2673 "I/O Queue 0x%p cannot handle Irp 0x%p, %!IRPMJ!, " 2674 "IRP_MN %x, Device 0x%p, %!STATUS!",
2681 if (
device->m_ParentDevice ==
queue->GetDevice()) {
2689 "No parent device for Device 0x%p, %!STATUS!",
2706 device->GetPdoPkg()->m_AllowForwardRequestToParent ==
FALSE) {
2710 "WdfPdoInitSetForwardRequestToParent not called on " 2711 "Device 0x%p, %!STATUS!",
2725 "Cannot forward a request to " 2726 "a different Device 0x%p, %!STATUS!",
#define DO_DEVICE_INITIALIZING
enum _WDF_DEVICE_PNP_STATE WDF_DEVICE_PNP_STATE
_In_ WDFDEVICE _In_ BOOLEAN Stoppable
_Must_inspect_result_ __in WDFDEVICE __in ULONG __in ACCESS_MASK __in_opt PWDF_OBJECT_ATTRIBUTES __out WDFKEY * Key
FxVerifierCheckNxPoolType(pFxDriverGlobals, PoolType, pFxDriverGlobals->Tag)
VOID InvalidateDeviceState(VOID)
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
__inline NTSTATUS StopIdleWorker(__in PWDF_DRIVER_GLOBALS DriverGlobals, __in WDFDEVICE Device, __in BOOLEAN WaitForD0, __in PVOID Tag, __in LONG Line, __in PSTR File)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ _Strict_type_match_ POOL_TYPE PoolType
ULONG GetCharacteristics(VOID)
#define STATUS_INVALID_SECURITY_DESCR
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
#define STATUS_INSUFFICIENT_RESOURCES
_In_ WDFDEVICE _In_ PWDF_DEVICE_POWER_CAPABILITIES PowerCapabilities
#define STATUS_INFO_LENGTH_MISMATCH
_Must_inspect_result_ __in WDFDEVICE __in WDFREQUEST Request
MdDeviceObject __inline GetDeviceObject(VOID)
_Must_inspect_result_ NTSTATUS Commit(__in_opt PWDF_OBJECT_ATTRIBUTES Attributes, __out_opt WDFOBJECT *ObjectHandle, __in_opt FxObject *Parent=NULL, __in BOOLEAN AssignDriverAsDefaultParent=TRUE)
BOOLEAN indicateChildWakeOnParentWake
__nullterminated PCHAR Name
__in WDFDEVICE __in ULONG DeviceCharacteristics
#define WDF_PTR_ADD_OFFSET(_ptr, _offset)
WDFDEVICE __inline GetHandle(VOID)
#define STATUS_INVALID_PARAMETER
__inline VOID ResumeIdleWorker(__in PWDF_DRIVER_GLOBALS DriverGlobals, __in WDFDEVICE Device, __in PVOID Tag, __in LONG Line, __in PSTR File)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PIRP _In_ WDFQUEUE Queue
enum _WDF_TRI_STATE WDF_TRI_STATE
_Must_inspect_result_ __in WDFDEVICE __in DEVICE_REGISTRY_PROPERTY DeviceProperty
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty
_In_ WDFDEVICE _In_ PWDF_DEVICE_PNP_CAPABILITIES PnpCapabilities
struct _WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_V1_5 WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_V1_5
_Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDRIVER _In_ UCHAR _In_ PFN_WDFDEVICE_WDM_IRP_DISPATCH _In_opt_ WDFCONTEXT DriverContext
#define FX_VF_FUNCTION(fnName)
FxCxDeviceInfo * pCxDeviceInfo
static _Must_inspect_result_ NTSTATUS _AllocAndQueryProperty(_In_ PFX_DRIVER_GLOBALS Globals, _In_opt_ PWDFDEVICE_INIT DeviceInit, _In_opt_ FxDevice *Device, _In_opt_ MdDeviceObject RemotePdo, _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty, _In_ POOL_TYPE PoolType, _In_opt_ PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes, _Out_ WDFMEMORY *PropertyMemory)
NTSTATUS PowerPolicySetS0IdleSettings(__in PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings)
_Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDRIVER Driver
#define STATUS_INVALID_DEVICE_REQUEST
_Must_inspect_result_ __in WDFDEVICE __in WDFSTRING String
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFMEMORY * PropertyMemory
VOID SetDeviceBase(__in CfxDeviceBase *DeviceBase)
UNICODE_STRING m_SymbolicLinkName
_Must_inspect_result_ __in WDFDEVICE __in PCUNICODE_STRING SymbolicLinkName
_Must_inspect_result_ __in WDFDEVICE __in BOOLEAN __in_opt PVOID __in LONG Line
VOID SetPnpState(__in PWDF_DEVICE_STATE State)
virtual FxIoTarget * GetDefaultIoTarget(VOID)
__inline BOOLEAN IsLegacy(VOID)
#define TRACE_LEVEL_INFORMATION
__in WDFDEVICE __in PWDF_DEVICE_POWER_CAPABILITIES PowerCapabilities
FxDeviceBase * pDeviceBase
_IRQL_requires_max_(DISPATCH_LEVEL) WDFIOTARGET STDCALL WDFEXPORT(WdfDeviceGetSelfIoTarget)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
EVT_WDFDEVICE_WDM_IRP_DISPATCH * PFN_WDFDEVICE_WDM_IRP_DISPATCH
#define STATUS_INVALID_DEVICE_STATE
VOID __inline PowerDereference(__in_opt PVOID Tag=NULL, __in_opt LONG Line=0, __in_opt PSTR File=NULL)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings
_Must_inspect_result_ __inout PWDFDEVICE_INIT __in_opt PWDF_OBJECT_ATTRIBUTES DeviceAttributes
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFQUEUE _In_ _Strict_type_match_ WDF_REQUEST_TYPE RequestType
WDFIOTARGET GetHandle(VOID)
_Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDRIVER _In_ UCHAR MajorFunction
static _Must_inspect_result_ NTSTATUS _QueryPropertyEx(_In_ PFX_DRIVER_GLOBALS DriverGlobals, _In_opt_ PWDFDEVICE_INIT DeviceInit, _In_opt_ FxDevice *Device, _In_ PVOID PropertyData, _In_ FxPropertyType FxPropertyType, _In_ ULONG BufferLength, _Out_ PVOID PropertyBuffer, _Out_ PULONG ResultLength, _Out_ PDEVPROPTYPE PropertyType)
__inline WDF_DEVICE_POWER_STATE GetDevicePowerState()
_In_ WDFDEVICE _Out_ PWDF_DEVICE_STATE DeviceState
_In_ WDFDEVICE _In_ ULONG AlignmentRequirement
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
#define TRACE_LEVEL_VERBOSE
_Must_inspect_result_ _Inout_ PWDFDEVICE_INIT _In_opt_ PWDF_OBJECT_ATTRIBUTES DeviceAttributes
_Must_inspect_result_ NTSTATUS EnqueueRequest(__in CfxDevice *Device, __inout FxRequest *pRequest)
_Must_inspect_result_ __in WDFDEVICE __in BOOLEAN WaitForD0
_In_ WDFDEVICE _In_ ULONG DeviceCharacteristics
PVOID __inline GetObjectHandle(VOID)
#define PAGED_CODE_LOCKED()
UNICODE_STRING m_DeviceName
__in WDFDEVICE __in WDF_DEVICE_FAILED_ACTION FailedAction
_Must_inspect_result_ NTSTATUS OpenDevicemapKeyWorker(_In_ PFX_DRIVER_GLOBALS pFxDriverGlobals, _In_ PCUNICODE_STRING KeyName, _In_ ACCESS_MASK DesiredAccess, _In_ FxRegKey *pKey)
_Must_inspect_result_ __in WDFDEVICE __in PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings
static const FxOffsetAndName offsets[]
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK _In_opt_ PWDF_OBJECT_ATTRIBUTES KeyAttributes
_Must_inspect_result_ __in WDFDEVICE __in DEVICE_REGISTRY_PROPERTY __in __in_opt PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes
_Must_inspect_result_ NTSTATUS ConfigureForwarding(__in FxIoQueue *FxQueue)
#define OFFSET_AND_NAME(type, offset)
__inline WDFDRIVER GetHandle(VOID)
_Must_inspect_result_ __in WDFDEVICE __in ULONG DeviceInstanceKeyType
_Must_inspect_result_ __in WDFDEVICE __in DEVICE_REGISTRY_PROPERTY __in ULONG __out_bcount_full(BufferLength) PVOID PropertyBuffer
static _Must_inspect_result_ NTSTATUS _Create(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDFDEVICE_INIT *DeviceInit, __in_opt PWDF_OBJECT_ATTRIBUTES DeviceAttributes, __out FxDevice **Device)
__inline NTSTATUS FxVerifierCheckIrqlLevel(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in KIRQL Irql)
_Must_inspect_result_ _In_ ULONG Flags
__drv_maxIRQL(DISPATCH_LEVEL) WDFDRIVER STDCALL WDFEXPORT(WdfDeviceGetDriver)(__in PWDF_DRIVER_GLOBALS DriverGlobals
enum _WDF_REQUEST_TYPE WDF_REQUEST_TYPE
_Must_inspect_result_ __inout PWDFDEVICE_INIT * DeviceInit
#define NT_SUCCESS(StatCode)
_Must_inspect_result_ _In_ WDFDEVICE _In_opt_ WDFDRIVER _In_ UCHAR _In_ PFN_WDFDEVICE_WDM_IRP_DISPATCH EvtDeviceWdmIrpDispatch
_Must_inspect_result_ NTSTATUS __inline PowerReference(__in BOOLEAN WaitForD0, __in_opt PVOID Tag=NULL, __in_opt LONG Line=0, __in_opt PSTR File=NULL)
__in WDFDEVICE __in ULONG AlignmentRequirement
_Must_inspect_result_ NTSTATUS Assign(__in PCWSTR SourceString)
FxObjectHandleGetPtr(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE,(PVOID *) &pDevice)
#define IRP_MJ_INTERNAL_DEVICE_CONTROL
static _Must_inspect_result_ NTSTATUS _AllocAndQueryPropertyEx(_In_ PFX_DRIVER_GLOBALS DriverGlobals, _In_opt_ PWDFDEVICE_INIT DeviceInit, _In_opt_ FxDevice *Device, _In_ PVOID PropertyData, _In_ FxPropertyType FxPropertyType, _In_ POOL_TYPE PoolType, _In_opt_ PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes, _Out_ WDFMEMORY *PropertyMemory, _Out_ PDEVPROPTYPE PropertyType)
VOID SetPnpCaps(__in PWDF_DEVICE_PNP_CAPABILITIES PnpCapabilities)
_Must_inspect_result_ __in WDFDEVICE __in DEVICE_REGISTRY_PROPERTY __in __in_opt PWDF_OBJECT_ATTRIBUTES __out WDFMEMORY * PropertyMemory
__in WDFDEVICE __in PWDF_DEVICE_PNP_CAPABILITIES PnpCapabilities
BOOLEAN IsPowerPolicyOwner(VOID)
__inline FxDriver * GetDriver(VOID)
FxIoTargetSelf * GetSelfIoTarget(VOID)
__inline WDF_DEVICE_PNP_STATE GetDevicePnpState()
#define _Strict_type_match_
#define InterlockedDecrement
_Must_inspect_result_ NTSTATUS FxValidateObjectAttributes(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_OBJECT_ATTRIBUTES Attributes, __in ULONG Flags=FX_VALIDATE_OPTION_NONE_SPECIFIED)
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN WaitForD0
_Must_inspect_result_ NTSTATUS AssignProperty(_In_ PVOID PropertyData, _In_ FxPropertyType FxPropertyType, _In_ DEVPROPTYPE Type, _In_ ULONG BufferLength, _In_opt_ PVOID PropertyBuffer)
NTSTATUS CreateSymbolicLink(_In_ PFX_DRIVER_GLOBALS FxDriverGlobals, _In_ PCUNICODE_STRING SymbolicLinkName)
POWER_ACTION GetSystemPowerAction(VOID)
ULONG GetAlignmentRequirement(VOID)
VOID SetPowerCaps(__in PWDF_DEVICE_POWER_CAPABILITIES PowerCapabilities)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
_Must_inspect_result_ NTSTATUS __inline FxValidateUnicodeString(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PCUNICODE_STRING String)
GLsizei const GLfloat * value
_Must_inspect_result_ __in WDFDEVICE __in BOOLEAN __in_opt PVOID __in LONG __in PSTR File
_Must_inspect_result_ __in WDFDEVICE __in WDFQUEUE Queue
#define _Must_inspect_result_
_Must_inspect_result_ _In_ WDFDEVICE Device
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
_Must_inspect_result_ __in WDFDEVICE __in DEVICE_REGISTRY_PROPERTY __in __drv_strictTypeMatch(__drv_typeExpr) POOL_TYPE PoolType
MxDeviceObject deviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES PropertyMemoryAttributes
FxPkgGeneral * m_PkgGeneral
_Must_inspect_result_ __drv_when(WaitForD0==0, __drv_maxIRQL(DISPATCH_LEVEL)) __drv_when(WaitForD0 !=0
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG _Out_ PDEVPROPTYPE Type
FxObjectHandleGetPtrAndGlobals(GetFxDriverGlobals(DriverGlobals), Device, FX_TYPE_DEVICE,(PVOID *) &pDevice, &pFxDriverGlobals)
#define TRACE_LEVEL_ERROR
#define TRACE_LEVEL_WARNING
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
_In_ ULONG _In_ ULONG Offset
BOOLEAN armForWakeIfChildrenAreArmedForWake
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_ERROR, TRACINGPNP, "Device name for WDFDEVICE 0x%p is NULL. Possibly incorrect " "device handle was passed, %!STATUS!", Device, status)
__in WDFDEVICE __in BOOLEAN Stoppable
VOID SetCharacteristics(ULONG Characteristics)
enum _WDF_DEVICE_FAILED_ACTION WDF_DEVICE_FAILED_ACTION
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
#define InterlockedIncrement
_Must_inspect_result_ __in WDFDEVICE __in ULONG __in ACCESS_MASK __in_opt PWDF_OBJECT_ATTRIBUTES KeyAttributes
FxCxDeviceInfo * GetCxDeviceInfo(__in FxDriver *CxDriver)
__inline VOID SetObject(__in_opt MdDeviceObject DeviceObject)
VOID SetDeviceFailed(__in WDF_DEVICE_FAILED_ACTION FailedAction)
_Must_inspect_result_ NTSTATUS ConfigureForwarding(__inout FxIoQueue *TargetQueue, __in WDF_REQUEST_TYPE RequestType)
VOID GetPnpState(__out PWDF_DEVICE_STATE State)
__inline WDF_DEVICE_POWER_POLICY_STATE GetDevicePowerPolicyState()
__inline CfxDevice * GetDevice(VOID)
enum _WDF_DEVICE_POWER_POLICY_STATE WDF_DEVICE_POWER_POLICY_STATE
VOID DeleteFromFailedCreate(VOID)
static _Must_inspect_result_ NTSTATUS _QueryProperty(_In_ PFX_DRIVER_GLOBALS FxDriverGlobals, _In_opt_ PWDFDEVICE_INIT DeviceInit, _In_opt_ FxDevice *Device, _In_opt_ MdDeviceObject RemotePdo, _In_ DEVICE_REGISTRY_PROPERTY DeviceProperty, _In_ ULONG BufferLength, _Out_opt_ PVOID PropertyBuffer, _Out_opt_ PULONG ResultLength)
static _Must_inspect_result_ NTSTATUS _OpenKey(_In_ PFX_DRIVER_GLOBALS FxDriverGlobals, _In_opt_ PWDFDEVICE_INIT DeviceInit, _In_opt_ FxDevice *Device, _In_ ULONG DeviceInstanceKeyType, _In_ ACCESS_MASK DesiredAccess, _In_opt_ PWDF_OBJECT_ATTRIBUTES KeyAttributes, _Out_ WDFKEY *Key)
_In_ WDFDEVICE _In_ WDF_DEVICE_FAILED_ACTION FailedAction
UCHAR GetMinorFunction(VOID)
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
_Must_inspect_result_ __in WDFDEVICE __in DEVICE_REGISTRY_PROPERTY __in ULONG __out PULONG ResultLength
_Must_inspect_result_ __in WDFDEVICE __in DEVICE_REGISTRY_PROPERTY __in ULONG BufferLength
__in WDFDEVICE __out PWDF_DEVICE_STATE DeviceState
VOID SetAlignmentRequirement(_In_ ULONG Value)
FxPointerNotNull(pFxDriverGlobals, Settings)
NTSTATUS PowerPolicySetSxWakeSettings(__in PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings, __in BOOLEAN ArmForWakeIfChildrenAreArmedForWake, __in BOOLEAN IndicateChildWakeOnParentWake)
_In_ PWDFDEVICE_INIT DeviceInit
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
#define FILE_DEVICE_SECURE_OPEN
__inline FxIoQueue * GetDefaultQueue(VOID)
enum _WDF_DEVICE_POWER_STATE WDF_DEVICE_POWER_STATE
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
__inline PFX_DRIVER_GLOBALS GetFxDriverGlobals(__in PWDF_DRIVER_GLOBALS DriverGlobals)
_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)
#define FX_DISPATCH_IRP_TO_IO_QUEUE_FLAGS_MASK
UCHAR GetMajorFunction(VOID)
_Must_inspect_result_ __in WDFDEVICE __in BOOLEAN __in_opt PVOID Tag
_Must_inspect_result_ _In_ WDFDRIVER Driver
PFX_DRIVER_GLOBALS pFxDriverGlobals
_In_ UCHAR _In_ UCHAR _In_ ULONG _In_ WDFCONTEXT DriverContext
_Must_inspect_result_ __in WDFDEVICE __in ULONG __in ACCESS_MASK DesiredAccess
FxVerifierDbgBreakPoint(pFxDriverGlobals)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING SymbolicLinkName
#define IRP_MJ_DEVICE_CONTROL
_Must_inspect_result_ NTSTATUS ConfigureDynamicDispatching(__in UCHAR MajorFunction, __in_opt FxCxDeviceInfo *CxDeviceInfo, __in PFN_WDFDEVICE_WDM_IRP_DISPATCH EvtDeviceWdmIrpDispatch, __in_opt WDFCONTEXT DriverContext)