Expand Minimize
This topic has not yet been rated - Rate this topic

SHAssocEnumHandlersForProtocolByApplication function

Gets an enumeration interface that provides access to handlers associated with a given protocol.

Syntax


HRESULT SHAssocEnumHandlersForProtocolByApplication(
  _In_   PCWSTR protocol,
  _In_   REFIID riid,
  _Out_  void **enumHandlers
);

Parameters

protocol [in]

Type: PCWSTR

Pointer to a string that specifies the protocol.

riid [in]

Type: REFIID

A reference to the IID of the interface to retrieve through enumHandlers, typically IID_IEnumAssocHandlers.

enumHandlers [out]

Type: void**

When this method returns, contains the interface pointer requested in riid. This is typically IEnumAssocHandlers.

Return value

Type: HRESULT

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

Remarks

It is recommended that you use the IID_PPV_ARGS macro, defined in Objbase.h, to package the riid and enumHandlers parameters. This macro provides the correct IID based on the interface pointed to by the value in enumHandlers, which eliminates the possibility of a coding error.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl.h

Library

Shell32.lib

DLL

Shell32.dll (version 6.1 or later)

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.