SHCreateAssociationRegistration function (shobjidl_core.h)
Creates an IApplicationAssociationRegistration object based on the stock implementation of the interface provided by Windows.
Syntax
SHSTDAPI SHCreateAssociationRegistration(
[in] REFIID riid,
[out] void **ppv
);
Parameters
[in] riid
Type: REFIID
A reference to the IID of the requested interface.
[out] ppv
Type: void**
When this function returns, contains the address of a pointer to the IApplicationAssociationRegistration object.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll |
API set | ext-ms-win-shell-shell32-l1-2-0 (introduced in Windows 8.1) |