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 returns an IConnectionManagerpointer that control point code uses to communicate over the network with MediaServer devices.

Syntax

DWORD GetConnectionManager(
  IConnectionManager** 
ppIConnectionManager,
  wstring* 
pstrIConnectionManager
);

Parameters

ppIConnectionManager

Pointer to a pointer to an IConnectionManagerimplementation that communicates using UPnP with the ConnectionManager service implementation on the specified MediaServer device.

pstrIConnectionManager

Pointer to a string that, upon return, contains the UDN and service ID pair that identifies this ConnectionManager instance. You can use this value in the pszPeerConnectionManagerparameter of IConnectionManager::PrepareForConnection.

Return Value

The following table shows possible return values.

Value Description

ERROR_AV_POINTER

The ppIConnectionManagerparameter is NULL.

ERROR_AV_UPNP_ACTION_FAILED

The internal connection manager proxy implementation could not be initialized.

SUCCESS_AV

The internal connection manager proxy implementation was initialized and returned successfully.

Remarks

For more information about UPnP AV control points and devices, see 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