Click to return to the Content     
ISubscriptionMgr Interfac...     ISubscriptionMgr::DeleteS...     ISubscriptionMgr Interfac...    
Web Workshop  |  Content & Component Delivery

ISubscriptionMgr::CreateSubscription Method


Creates a subscription.

Syntax

HRESULT CreateSubscription(
    HWND hwnd;    
    LPCWSTR pwszURL,
    LPCWSTR pwszFriendlyName,
    DWORD dwFlags,
    SUBSCRIPTIONTYPE subsType,
    SUBSCRIPTIONINFO *pInfo
);

Parameters

hwnd
[in] Handle to the parent window.
pwszURL
[in] String value that contains the URL of the site to subscribe to.
pwszFriendlyName
[in] String value that contains a friendly name for the site.
dwFlags
[in] Unsigned long integer value that contains the flags that control the creation of the subscription. This can be a combination of the CREATESUBSCRIPTIONFLAGS values.
subsType
[in] SUBSCRIPTIONTYPE value that determines how the subscription will be handled.
pInfo
[in,out] Address of a SUBSCRIPTIONINFO structure containing the subscription information.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

ISubscriptionMgr::DeleteSubscription



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.