SHCreateAssociationRegistration 函式 (shobjidl_core.h)
根據 Windows 提供的介面庫存實作,建立 IApplicationAssociationRegistration 物件。
語法
SHSTDAPI SHCreateAssociationRegistration(
[in] REFIID riid,
[out] void **ppv
);
參數
[in] riid
類型: REFIID
所要求介面之 IID 的參考。
[out] ppv
類型: void**
當此函式傳回時,會包含 IApplicationAssociationRegistration 物件的指標位址。
傳回值
類型: HRESULT
如果此函式成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows Vista [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2008 [僅限傳統型應用程式] |
目標平台 | Windows |
標頭 | shobjidl_core.h (包含 Shobjidl.h) |
Dll | Shell32.dll |
API 集合 | ext-ms-win-shell-shell32-l1-2-0 (於 Windows 8.1) |