共用方式為


sh_composition關鍵字

sh_composition關鍵字會 system_handle 指定 保存組合表面的控制碼。

[system_handle(sh_composition)]

[system_handle(sh_composition, access-rights)]

參數

這個關鍵字是 system_handle的參數。

system_handle檔也包含選擇性使用存取權限參數的詳細資料。 預設行為是 DUPLICATE_SAME_ACCESS 每個DuplicateHandle 函式規格。

備註

若要搭配 system_handle 屬性使用這個關鍵字,在執行 midl.exe 時, -target 旗標必須設定為 NT100 (或更高版本) 。

範例

interface MyInterface : IUnknown                         
{         
    HRESULT GetVisualSurface([out, system_handle(sh_composition)] HANDLE* visual);
}

規格需求

   
最低支援的用戶端 Windows 10年度更新版 (1607,組建 14393)
最低支援的伺服器 Windows Server 2016 (組建 14393)

另請參閱

system_handle

DirectComposition

DCompositionCreateSurfaceHandle 函