SHAssocEnumHandlers function
Returns an enumeration object for a specified set of file name extension handlers.
Syntax
HRESULT SHAssocEnumHandlers( _In_ PCWSTR pszExtra, _In_ ASSOC_FILTER afFilter, _Out_ IEnumAssocHandlers **ppEnumHandler );
Parameters
- pszExtra [in]
-
Type: PCWSTR
A pointer to a null-terminated buffer that contains a single file type extension, for instance ".jpg". Only handlers associated with the given extension are enumerated. If this value is NULL, all handlers for all extensions are enumerated.
- afFilter [in]
-
Type: ASSOC_FILTER
Specifies the enumeration handler filter applied to the full list of handlers that results from the value given in pszExtra. One of the following values.
- ppEnumHandler [out]
-
Type: IEnumAssocHandlers**
When this method returns, contains the address of a pointer to an IEnumAssocHandlers 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] |
|
Header |
|
|
Library |
|
|
DLL |
|