IConnectionManager::GetProtocolInfo (Compact 7)

3/12/2014

This method returns the protocol information, including network and content format data, supported by this ConnectionManager instance.

Syntax

virtual DWORD GetProtocolInfo(
  wstring* pstrSourceProtocolInfo,
  wstring* pstrSinkProtocolInfo
) = 0;

Parameters

  • pstrSourceProtocolInfo
    [in, out] Pointer to a string that, upon return, contains a comma-separated list of protocol information supported by this ConnectionManager instance for sending media. Corresponds to the SourceProtocolInfo state variable.
  • pstrSinkProtocolInfo
    [in, out] Pointer to a string that, upon return, contains a comma-separated list of protocol information supported by this ConnectionManager instance for receiving media. Corresponds to the SinkProtocolInfo state variable.

Return Value

Custom implementations can return appropriate error codes. If this method succeeeds, it should return SUCCESS_AV. Otherwise, it should return an error code defined in WinError.h or UPnP.h, or one of the UPnP AV-specific return values specified in UPnPAVError.

The implementation of this method in IConnectionManagerImpl returns these errors:

Value Description

ERROR_AV_POINTER

Either of the pstrSourceProtocolInfo or pstrSinkProtocolInfo parameters are NULL.

ERROR_AV_OOM

There was not enough memory to return protocol information strings.

SUCCESS_AV

Protocol information strings were returned correctly.

Remarks

This method corresponds to the ConnectionManager service's GetProtocolInfo action.

The IConnectionManagerImpl class provides the following methods to enable developers to maintain protocol information for a particular ConnectionManager instance.

The provided implementation of this method builds the protocol information strings using information provided by these methods.

For more information about the actions in the ConnectionManager service, including detailed information about the format of the strings returned by GetProtocolInfo, see the UPnP Forum AV web site.

Requirements

Header

av_upnp.h

Library

Av_upnp.lib

See Also

Reference

IConnectionManager
IConnectionManagerImpl
IConnectionManagerImpl::AddSinkProtocol
IConnectionManagerImpl::AddSourceProtocol
UPnPAVError