基于 Windows 提供的接口的库存实现创建 IApplicationAssociationRegistration 对象。
Syntax
SHSTDAPI SHCreateAssociationRegistration(
[in] REFIID riid,
[out] void **ppv
);
参数
[in] riid
类型: REFIID
对所请求接口的 IID 的引用。
[out] ppv
类型: void**
当此函数返回时,包含指向 IApplicationAssociationRegistration 对象的指针的地址。
返回值
类型:HRESULT
如果此函数成功,它将返回 S_OK。 否则,它将返回 HRESULT 错误代码。
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows Vista [仅限桌面应用] |
| 支持的最低服务器 | Windows Server 2008 [仅限桌面应用] |
| 目标平台 | Windows操作系统 |
| Header | shobjidl_core.h (包括 Shobjidl.h) |
| Library | OneCore.Lib |
| DLL | Shell32.dll |
| API 集 | ext-ms-win-shell-shell32-l1-2-0(在 Windows 8.1 中引入) |