Compartilhar via


IConnectionManagerImpl::EndConnection (Windows CE 5.0)

Send Feedback

This method provides developers with a chance to perform custom connection-termination tasks. IConnectionManager::ConnectionComplete calls this method when it starts termination of the connection.

virtual DWORD EndConnection(  long ConnectionID) = 0;

Parameters

  • EndConnection
    [in] ID of the connection being terminated.

Return Values

The return value of this method is ignored by ConnectionComplete.

Remarks

The AVTransport service's PrepareForConnection action is defined as optional in the UPnP AV DCP. The AV renderer sample implements PrepareForConnection, or does not, depending on the value of the CM_NO_PREPARE_FOR_CONNECTION preprocessor definition. If this constant is defined, the sample does not support PrepareForConnection; otherwise, the sample provides support for multiple connections. To see how this definition is used, examine ConnectionManager.cpp in the AV renderer sample's source directory.

For more information about the ContentDirectory service, see the documentation for the ContentDirectory DCP in UPnP AV DCP Documentation.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Av_upnp.h.
Link Library: Av_upnp.lib.
C++ Namespace: av_upnp.

See Also

IConnectionManagerImpl | IConnectionManager::ConnectionComplete

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.