Export (0) Print
Expand All

IMFNetSchemeHandlerConfig::GetSupportedProtocolType method

Retrieves a supported protocol by index

Syntax


HRESULT GetSupportedProtocolType(
  [in]   ULONG nProtocolIndex,
  [out]  MFNETSOURCE_PROTOCOL_TYPE *pnProtocolType
);

Parameters

nProtocolIndex [in]

Zero-based index of the protocol to retrieve. To get the number of supported protocols, call IMFNetSchemeHandlerConfig::GetNumberOfSupportedProtocols.

pnProtocolType [out]

Receives a member of the MFNETSOURCE_PROTOCOL_TYPE enumeration.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

The value passed in the nProtocolIndex parameter was greater than the total number of supported protocols, returned by GetNumberOfSupportedProtocols.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFNetSchemeHandlerConfig

 

 

Community Additions

ADD
Show:
© 2014 Microsoft