IWMSServer::DownloadContent

banner art

Previous Next

IWMSServer::DownloadContent

The DownloadContent method downloads audio or video content locally using the WMS Archiver Data Writer plug-in.

Syntax

  HRESULT DownloadContent(
  BSTR  bstrSrcURL,
  BSTR  bstrDestFile,
  long  lContentSizeLow,
  long  lContentSizeHigh,
  long  lBitRate
);

Parameters

bstrSrcURL

[in] BSTR containing the source URL of the content to be downloaded.

bstrDestFile

[in] BSTR containing the destination file to store the downloaded content.

lContentSizeLow

[in] long containing the low-order bits of a 64-bit integer value indicating the maximum size for the destination file. The default value is 0xFFFFFFFF.

lContentSizeHigh

[in] long containing the high-order bits of a 64-bit integer value indicating the maximum size for the destination file. The default value is 0xFFFFFFFF.

lBitRate

[in] long specifying the maximum bit rate at which to download the content. The default value is 0, indicating that content will be downloaded based on the encoded bit rate of the content.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Number Description
E_INVALIDARG 0x80070057 Indicates that one of the arguments is invalid.
E_OUTOFMEMORY 0x8007000E Indicates that there is insufficient memory to complete the function.

Example Code

  EXIT:
    // TODO: Release temporary COM objects and uninitialize COM.

Requirements

Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next