IXFeedEnclosure::SetFile Method

Adds the downloaded enclosure file to the Windows RSS Platform.

Syntax

HRESULT SetFile(
    LPCWSTR pszDownloadUrl,
    LPCWSTR pszDownloadFilePath,
    LPCWSTR pszDownloadMimeType,
    LPCWSTR pszEnclosureFilename
);

Parameters

  • pszDownloadUrl
    [in] String that specifies a valid absolute (non-relative) URL.
  • pszDownloadFilePath
    [in] String that specifies the local system path to the download folder.
  • pszDownloadMimeType
    [in] String that specifies the final MIME type of the file.
  • pszEnclosureFilename
    [in] String that specifies the file name of the enclosure. The file specified in pszEnclosureFilename is moved from the location specified in pszDownloadFilePath to the location defined by IXFeed::LocalEnclosurePath.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The IXFeedEnclosure::SetFile method enables applications that perform their own downloads to share data with other applications that use the Windows RSS Platform. Setting the enclosure URL with this method does not cause the Windows RSS Platform to perform the download. Calling this method will cancel pending downloads and delete the previous enclosure file, if one exists.

Note  IXFeedEnclosure::AsyncDownload will always download the original enclosure even if an alternate file has been set.

See Also

IXFeedEnclosure::RemoveFile