Share via


IRTCSessionOperationCompleteEvent2::GetRemoteSessionDescription

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method retrieves the session description from the remote client.

The application uses the method to retrieve the session description that was set with the IRTCReInviteEvent::Accept method.

This method is used for sessions of type RTCST_APPLICATION only. A call to this method for any other type of session fails.

Syntax

HRESULT GetRemoteSessionDescription(
  BSTR* pbstrContentType,
  BSTR* pbstrSessionDescription
);

Parameters

  • pbstrContentType
    [out] Pointer to a BSTR that will be filled with the content type for the session description.

    The method allocates the buffer.

    The caller is responsible for releasing this memory with SysFreeString.

  • pbstrSessionDescription
    [out] Pointer to a BSTR that is filled with the session description.

    The method allocates the buffer.

    The caller is responsible for releasing this memory with SysFreeString.

Return Value

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

Value Meaning

E_INVALIDARG

The pbstrContentType or pbstrDescription parameter is NULL.

RTC_E_INVALID_SESSION_STATE

The session is not in the connected or incoming state.

Requirements

Header rtccore.h, rtccore.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

IRTCSessionOperationCompleteEvent2
IRTCReInviteEvent::Accept
IRTCSession

Other Resources

SysFreeString