SHGetAssocKeys function (shlwapi.h)

Retrieves an array of class subkeys associated with an IQueryAssociations object.

Syntax

DWORD SHGetAssocKeys(
  [in]  IQueryAssociations *pqa,
  [out] HKEY               *rgKeys,
        DWORD              cKeys
);

Parameters

[in] pqa

A IQueryAssociations interface pointer to the object you're interested in.

[out] rgKeys

A pointer to an array of HKEY elements that, when this function returns successfully, receives the retrieved class subkeys.

cKeys

The number of elements in the rgKeys array. If you are interested in only the primary class subkey, set this value to 1.

Return value

The number of subkeys inserted into the array.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll