Displays the default user interface for creating a favorite, which is initialized using the specified parameters.
Syntax
HRESULT AddFavorite( BSTR strURL, VARIANT Title );
Parameters
- strURL
- String value that contains the URL.
- Title
- String value that contains the name to be associated with the URL. You may pass an empty string.
Return Value
Returns S_OK if successful, or an error code otherwise.