AssocCreateForClasses function

Retrieves an object that implements an IQueryAssociations interface.

Syntax

SHSTDAPI AssocCreateForClasses(
  const ASSOCIATIONELEMENT *rgClasses,
  ULONG                    cClasses,
  REFIID                   riid,
  void                     **ppv
);

Parameters

rgClasses

Type: const ASSOCIATIONELEMENT*

A pointer to an array of ASSOCIATIONELEMENT structures.

cClasses

Type: ULONG

The number of elements in the array pointed to by rgClasses.

riid

Type: REFIID

Reference to the desired IID, normally IID_IQueryAssociations.

ppv

Type: void**

When this method returns, contains the interface pointer requested in riid. This is normally IQueryAssociations.

Return Value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

For systems earlier than Windows Vista, use the AssocCreate function.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shellapi.h
DLL Shell32.dll