IRTCSession::SendMessageStatus

The SendMessageStatus method sends a user's typing status for a messaging window. For this method to succeed, the session must be of type RTCST_IM or RTCST_MULTIPARTY_IM.

The completion is notified with an RTCE_MESSAGING event of type RTCMSET_STATUS.

HRESULT SendMessageStatus(RTC_MESSAGING_USER_STATUSenUserStatus,
LONG_PTRlCookie);

Parameters

  • enUserStatus
    [in] An RTC_MESSAGING_USER_STATUS enumeration containing the user's status.
  • lCookie
    [in] Application-provided cookie used for pairing the notifications with the statuses sent.

Return Values

RTC methods may return an RTC_E_ constant.

Value Meaning
RTC_E_INVALID_SESSION_STATE The message state must be RTCSS_INPROGRESS, RTCSS_INCOMING, or RTCSS_CONNECTED.
RTC_E_INVALID_SESSION_TYPE The session must be IM.

Remarks

This function may send data over the wire in unencrypted form; therefore, someone eavesdropping on the network may be able to read the data. The security risk of sending the data in clear text should be considered before using this method in an unencrypted session. An RTC session can be encrypted by specifying TLS in the profile used for the session.

Requirements

Client: Requires Windows XP.
Server: Requires Windows Server 2003.
Redistributable: Requires Rtcdll.dll on Windows 2000, and Windows Me/98.
Header: Declared in Rtccore.h.
Library: Included as a resource in Rtcdll.dll.
GUID: IID_IRTCSession is defined as 387c8086-99be-42fb-9973-7c0fc0ca9fa8.

See Also

IRTCSession, RTC_MESSAGING_USER_STATUS, IRTCSession::SendMessage