38#if defined(EVENT_TRACING)
39#include "FxValidateFunctions.tmh"
55 "WDF_OBJECT_ATTRIBUTES required, %!STATUS!",
70 "Attributes %p Size incorrect, expected %d, got %d, %!STATUS!",
78#pragma prefast(suppress:__WARNING_REDUNDANTTEST, "different structs of the same size")
85 "Attributes %p ContextTypeInfo %p Size %d incorrect, expected %d, %!STATUS!",
96 if (
Attributes->ContextTypeInfo->ContextSize > 0 &&
101 "Attributes %p ContextTypeInfo %p ContextSize %I64d is not zero, "
102 "but ContextName is NULL, %!STATUS!",
118 "Attributes %p ContextSizeOverride of %I64d specified, but no type "
119 "information, %!STATUS!",
129 "Attributes %p ContextSizeOverride %I64d < "
130 "ContextTypeInfo->ContextSize %I64d, %!STATUS!",
143 "Attributes %p does not allow a parent object to be set, set to "
154 "ParentObject required in WDF_OBJECT_ATTRIBUTES %p, %!STATUS!",
165 "Attributes %p execution level set to %d, out of range, %!STATUS!",
175 "Attributes %p synchronization scope set to %d, out of range, %!STATUS!",
192 "Attributes %p does not allow synchronization scope too be set, "
193 "but was set to %!WDF_SYNCHRONIZATION_SCOPE!, %!STATUS!",
210 "Attributes %p does not allow execution level to be set, but was"
211 " set to %!WDF_EXECUTION_LEVEL!, %!STATUS!",
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
_Must_inspect_result_ NTSTATUS FxValidateObjectAttributes(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_OBJECT_ATTRIBUTES Attributes, __in ULONG Flags)
@ FX_VALIDATE_OPTION_PARENT_REQUIRED_FLAG
@ FX_VALIDATE_OPTION_SYNCHRONIZATION_SCOPE_ALLOWED
@ FX_VALIDATE_OPTION_EXECUTION_LEVEL_ALLOWED
@ FX_VALIDATE_OPTION_ATTRIBUTES_REQUIRED
@ FX_VALIDATE_OPTION_PARENT_NOT_ALLOWED
#define _Must_inspect_result_
#define TRACE_LEVEL_ERROR
#define STATUS_INFO_LENGTH_MISMATCH
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
@ WdfSynchronizationScopeInheritFromParent
@ WdfSynchronizationScopeNone
@ WdfSynchronizationScopeInvalid
@ WdfExecutionLevelDispatch
@ WdfExecutionLevelInheritFromParent
@ WdfExecutionLevelInvalid
#define STATUS_WDF_PARENT_ASSIGNMENT_NOT_ALLOWED
#define STATUS_WDF_OBJECT_ATTRIBUTES_INVALID
#define STATUS_WDF_SYNCHRONIZATION_SCOPE_INVALID
#define STATUS_WDF_EXECUTION_LEVEL_INVALID
#define STATUS_WDF_PARENT_NOT_SPECIFIED
_Must_inspect_result_ _In_ ULONG Flags