33#ifndef _FXVALIDATEFUNCTIONS_H_
34#define _FXVALIDATEFUNCTIONS_H_
38#if defined(EVENT_TRACING)
39#include "FxValidateFunctions.hpp.tmh"
80 "WDF_OBJECT_ATTRIBUTES required, %!STATUS!",
91 "Attributes %p Size incorrect, expected %d, got %d, %!STATUS!",
102 "ParentObject required in WDF_OBJECT_ATTRIBUTES %p, %!STATUS!",
126 "UNICODE_STRING %p, Length %d is odd, %!STATUS!",
132 if (
String->MaximumLength & 1) {
135 "UNICODE_STRING %p, MaximumLength %d is odd, %!STATUS!",
144 "UNICODE_STRING %p, MaximumLength %d > 0, Buffer is NULL, %!STATUS!",
153 "UNICODE_STRING %p, Length %d > MaximumLength %d, %!STATUS!",
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
FX_VALIDATE_FUNCTIONS_FLAGS
@ FX_VALIDATE_OPTION_PARENT_REQUIRED
@ FX_VALIDATE_OPTION_NONE_SPECIFIED
@ 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
_Must_inspect_result_ NTSTATUS __inline FxValidateUnicodeString(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PCUNICODE_STRING String)
_Must_inspect_result_ NTSTATUS __inline FxValidateObjectAttributesForParentHandle(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_OBJECT_ATTRIBUTES Attributes, __in ULONG Flags=FX_VALIDATE_OPTION_NONE_SPECIFIED)
_Must_inspect_result_ NTSTATUS FxValidateObjectAttributes(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_OBJECT_ATTRIBUTES Attributes, __in ULONG Flags=FX_VALIDATE_OPTION_NONE_SPECIFIED)
#define _Must_inspect_result_
#define TRACE_LEVEL_ERROR
#define STATUS_INVALID_PARAMETER
#define STATUS_INFO_LENGTH_MISMATCH
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
#define STATUS_WDF_PARENT_NOT_SPECIFIED
_Must_inspect_result_ _In_ ULONG Flags