Поделиться через


IRTCSessionOperationCompleteEvent2::GetRemoteSessionDescription (Windows Embedded CE 6.0)

1/6/2010

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