WDF_OBJECT_ATTRIBUTES_INIT function

[Applies to KMDF and UMDF]

The WDF_OBJECT_ATTRIBUTES_INIT function initializes a driver's WDF_OBJECT_ATTRIBUTES structure.

Syntax

VOID WDF_OBJECT_ATTRIBUTES_INIT(
  _Out_ PWDF_OBJECT_ATTRIBUTES Attributes
);

Parameters

Attributes

A pointer to the driver's WDF_OBJECT_ATTRIBUTES structure.

Return Value

None

Remarks

The WDF_OBJECT_ATTRIBUTES_INIT function sets the ExecutionLevel member of the specified WDF_OBJECT_ATTRIBUTES structure to WdfExecutionLevelInheritFromParent, and it sets the SynchronizationScope member to WdfSynchronizationScopeInheritFromParent.

For code examples that use WDF_OBJECT_ATTRIBUTES_INIT, see WdfObjectCreate and WdfObjectGetTypedContext.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfobject.h (include Wdf.h)
Library NtosKrnl.exe

See Also

WDF_OBJECT_ATTRIBUTES

Send comments about this topic to Microsoft