IMFNetSchemeHandlerConfig::GetSupportedProtocolType method (mfidl.h)

Retrieves a supported protocol by index

Syntax

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

Parameters

[in] nProtocolIndex

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

[out] pnProtocolType

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 code Description
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

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFNetSchemeHandlerConfig