Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

AssocCreateForClasses function

Retrieves an object that implements an IQueryAssociations interface.

Syntax


HRESULT AssocCreateForClasses(
  _In_   const ASSOCIATIONELEMENT *rgClasses,
  _In_   ULONG cClasses,
  _In_   REFIID riid,
  _Out_  void **ppv
);

Parameters

rgClasses [in]

Type: const ASSOCIATIONELEMENT*

A pointer to an array of ASSOCIATIONELEMENT structures.

cClasses [in]

Type: ULONG

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

riid [in]

Type: REFIID

Reference to the desired IID, normally IID_IQueryAssociations.

ppv [out]

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]

Header

Shellapi.h

DLL

Shell32.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.