[適用於 KMDF 和 UMDF]
WDF_OBJECT_ATTRIBUTES_INIT函式會初始化驅動程式的 WDF_OBJECT_ATTRIBUTES 結構。
語法
VOID WDF_OBJECT_ATTRIBUTES_INIT(
[out] PWDF_OBJECT_ATTRIBUTES Attributes
);
參數
[out] Attributes
驅動程式 WDF_OBJECT_ATTRIBUTES 結構的指標。
返回值
沒有
備註
WDF_OBJECT_ATTRIBUTES_INIT函式會將指定之 WDF_OBJECT_ATTRIBUTES 結構的 ExecutionLevel 成員設定為 WdfExecutionLevelInheritFromParent,並將 SynchronizationScope 成員設定為 WdfSynchronizationScopeInheritFromParent。
如需使用 WDF_OBJECT_ATTRIBUTES_INIT 的程式代碼範例,請參閱 WdfObjectCreate 和 WdfObjectGetTypedContext。
需求
| 要求 | 價值 |
|---|---|
| 目標平臺 | 普遍 |
| 最低 KMDF 版本 | 1.0 |
| 最低 UMDF 版本 | 2.0 |
| 標題 | wdfobject.h (包括 Wdf.h) |