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 |
|
|
DLL |
|