Share via


Windows Media Player 11 SDK IWMPSubscriptionServiceCallback::onComplete 

Windows Media Player SDK banner art

Previous Next

IWMPSubscriptionServiceCallback::onComplete

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 onComplete method notifies Windows Media Player when a background process is completed.

Syntax

  HRESULT onComplete(
  HRESULT  hrResult
);

Parameters

hrResult

HRESULT error code.

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

IWMPSubscriptionService2::prepareForSync and IWMPSubscriptionService2::deviceAvailable provide a pointer to this interface using a parameter. When responding to calls from Windows Media Player to these methods, you must initiate any background tasks as an asynchronous process and then return from the call immediately. When your asynchronous background task has completed, call onComplete from the thread that provided the callback pointer using the pointer that was provided in the original call.

Requirements

Version: Windows Media Player 10 or later.

Header: Defined in subscriptionservices.h.

See Also

Previous Next