Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method adds the specified protocol string to the source protocol information for this ConnectionManager instance.

Syntax

virtual DWORD AddSourceProtocol(
  LPCWSTR 
pszProtocolInfo
);

Parameters

pszProtocolInfo

String that contains a single ConnectionManager protocol string, like "http-get:*:audio/mpeg:*".

Return Value

The following table shows possible return values for this method.

Value Description

ERROR_AV_POINTER

The pszProtocolInfoparameter is NULL.

ERROR_AV_OOM

There was not enough memory to add the protocol.

SUCCESS_AV

The protocol information was added successfully.

Remarks

IConnectionManager::GetProtocolInforeturns a list of protocol information that was built using the protocol information provided in calls to this method.

For more information about protocol strings, including formatting, see the documentation for the ContentDirectory DCP in UPnP AV DCP Documentation.

Requirements

Header av_upnp.h
Library Av_upnp.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also