Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
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 Values
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
OS Versions: Windows CE 5.0 and later.
Header: Av_upnp.h.
Link Library: Av_upnp.lib.
C++ Namespace: av_upnp.
See Also
IConnectionManager | IConnectionManagerImpl | IConnectionManagerImpl::EndConnection | UPnPAVError
Send Feedback on this topic to the authors