IConnectionManager::ConnectionComplete (Windows Embedded CE 6.0)
1/6/2010
This method enables devices to clean up connections. It is called when a control point is no longer using a connection that the control point created using the PrepareForConnection action.
Syntax
virtual DWORD ConnectionComplete(
long ConnectionID
) = 0;
Parameters
- ConnectionID
[in] Connection ID of the connection that is no longer needed and can be cleaned up. Corresponds to the A_ARG_TYPE_ConnectionID state variable.
Return Value
Custom implementations can return appropriate error codes. If this method succeeds, 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, especially the following error documented for this action in the ConnectionManager DCP documentation:
- ERROR_AV_UPNP_CM_INVALID_CONNECTION_REFERENCE
The implementation of this method in IConnectionManagerImpl returns the errors in the following table. In addition, it returns any error returned by the custom IConnectionManagerImpl::EndConnection implementation.
Value | Description |
---|---|
SUCCESS_AV |
Connection completion was successful. |
Remarks
This method corresponds to the ConnectionManager service's ConnectionComplete action.
The implementation of this method in IConnectionManagerImpl performs these tasks:
- Calls IConnectionManagerImpl::EndConnection to provide developers with a chance to perform any specific connection-completion tasks.
- Updates its internal connection data.
- Raises an event by calling IEventSink::OnStateChanged with the CurrentConnectionIDs constant documented in ConnectionManagerState.
For more information about the actions in the ConnectionManager service, see UPnP AV DCP Documentation.
Requirements
Header | av_upnp.h |
Library | Av_upnp.lib |
Windows Embedded CE | Windows CE 5.0 and later |
See Also
Reference
IConnectionManager
IConnectionManagerImpl
IConnectionManagerImpl::EndConnection
UPnPAVError