Share via


IRTCSession::Terminate (Windows CE 5.0)

Send Feedback

This method terminates a session. The method can be called on a session that is in any state except RTCSS_DISCONNECTED.

HRESULT Terminate(RTC_TERMINATE_REASON enReason);

Parameters

  • enReason
    [in] An RTC_TERMINATE_REASON enumeration value specifying the reason for session termination.

Return Values

This method can return an RTC_E_ constant. The following table shows an additional return value and additional information about a specific return value.

Value Description
E_INVALIDARG Invalid terminate reason.
RTC_E_INVALID_SESSION_STATE An idle session cannot be terminated.

In addition, the enReason parameter must be either RTCTR_NORMAL or RTCTR_SHUTDOWN if the session is not in the RTCSS_INCOMING state.

If the enReason parameter contains any other value and the session is not in the incoming state, this error is returned.

Remarks

This method does the following:

  • Disconnects an RTCSS_CONNECTED session
  • Rejects an RTCSS_INCOMING session
  • Withdraws an RTCSS_INPROGRESS or RTCSS_ANSWERING session

Security Note   This method can send data over the network in unencrypted form. Therefore, someone eavesdropping on the network might be able to read the data. Before using this method in an unencrypted session, consider the security risk of sending the data in clear text. The application can encrypt an RTC session by specifying TLS in the profile used for the session.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.

See Also

IRTCSession | IRTCSession::Answer | RTC_TERMINATE_REASON

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.