WDF_OBJECT_ATTRIBUTES_INIT function (wdfobject.h)

[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

[out] 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

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfobject.h (include Wdf.h)

See also

WDF_OBJECT_ATTRIBUTES