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


IRTCClientSubscriber::CreateSubscription (Windows Embedded CE 6.0)

1/6/2010

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