Share via


IRTCClientSubscriber::CreateSubscription

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

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method starts a SUBSCRIBE transaction with a proxy server.

Syntax

HRESULT CreateSubscription(
  IRTCProfile* pServerProfile,
  BSTR bstrAcceptedContent,
  BSTR bstrEventPackage,
  BSTR bstrContentType,
  BSTR bstrMessageBody,
  IRTCSubscription** ppSubscription
);

Parameters

  • pServerProfile
    [in] IRTCProfile object that contains the proxy server info. This value must be non-NULL.
  • bstrAcceptedContent
    [in] Contents of the “Accept” header that is sent to the proxy server. This string must be non-NULL and non-empty.
  • bstrEventPackage
    [in] Contents of the “Event” header that is sent to the proxy server. This string must be non-NULL and non-empty.
  • bstrContentType
    [in] Contents of the “Content-Type” header that is sent to the proxy server. This may be NULL.
  • bstrMessageBody
    [in] Contents of the body that is sent to the proxy server. This may be NULL.
  • ppSubscription
    [out] Subscription object returned to the caller on success. This pointer must be non-NULL.

Return Value

RTC methods may return an RTC_E_ constants.

Requirements

Header rtccore.idl
Library uuid.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Concepts

IRTCClientSubscriber