次の方法で共有


DownLoad.DownloadEx

banner art

Previous Next

DownLoad.DownloadEx

The DownloadEx method is similar to the simple Download function, but allows the entry of a MIME type and header creation time.

Syntax

  DownLoad
  .DownloadEx(
  bstrFileName
  , bstrDRMHeader, bstrDRMHeaderTime, bstrMIMEType)

Parameters

bstrFileName

[in] String containing the path and file name of the packaged file.

bstrDRMHeader

[in] String containing the new content header.

bstrDRMHeaderTime

[in] Optional String that specifies the time the header was created. If empty, it uses the file time only. If not empty, this function will pick the newer of two times (entered time or file time) and use that one.

bstrMIMEType

[in] Optional String specifying the MIME type. If empty, the function will guess the type from the file extension.

Return Values

This method does not return a value.

Remarks

DownloadEx is identical to the Download method, but includes two additional parameters. See Download for a full explanation of the function.

Example Code

  DownLoad
  .DownloadEx(
  bstrFileName
  , bstrDRMHeader, bstrDRMHeaderTime, bstrMIMEType)

Requirements

Version: Windows Media Rights Manager 7 SDK or later

Reference: DRMReheader 1.0 Type Library

Library: wmrmrehd.dll

Platform: Windows Server 2003

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.