SHCreateAssociationRegistration function

Creates an IApplicationAssociationRegistration object based on the stock implementation of the interface provided by Windows.

Syntax

SHSTDAPI SHCreateAssociationRegistration(
  REFIID riid,
  void   **ppv
);

Parameters

riid

Type: REFIID

A reference to the IID of the requested interface.

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

   
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