Share via


Windows Media Player 11 SDK IWMPContentPartner::DownloadTrackComplete 

Windows Media Player SDK banner art

Previous Next

IWMPContentPartner::DownloadTrackComplete

Note This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The DownloadTrackComplete method notifies the content partner plug-in that Windows Media Player has finished downloading a track or that the download attempt failed.

Syntax

  HRESULT DownloadTrackComplete(
  HRESULT  hrResult,
  ULONG  contentID,
  BSTR  downloadTrackParam
);

Parameters

hrResult

[in]  HRESULT indicating success or failure of the download. Any success code indicates that the Player successfully downloaded the track. Any failure code indicates that the Player failed to download the track.

contentID

[in]  Content ID of the track in question.

downloadTrackParam

[in]  Parameter that the plug-in previously passed to IWMPContentPartnerCallback::DownloadTrack. This parameter is meaningful only to the online store; it is not interpreted by Windows Media Player.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

To learn how the Player and the plug-in work together to download a set of tracks, see Downloading Media Content.

Requirements

Version: Windows Media Player 11

Header: contentpartner.h

See Also

Previous Next