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