Share via


Windows Media Player 11 SDK IWMPContentPartnerCallback::Notify 

Windows Media Player SDK banner art

Previous Next

IWMPContentPartnerCallback::Notify

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 Notify method provides notifications from the content partner plug-in to Windows Media Player.

Syntax

  HRESULT Notify(
  WMPCallbackNotification  type,
  VARIANT*  pContext
);

Parameters

type

[in]  The type of notification being made, specified as a member of the WMPCallbackNotification enumeration.

pContext

[in]  Context-specific data for the notification. See Remarks.

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

The following table describes the notification types and their associated context data.

Notification type Context data Description
wmpcnLoginStateChange VT_BOOL or VT_UI4. If VT_BOOL, indicates ordinary success or failure of a login attempt. If VT_UI4, indicates a special condition, in which case the Player passes this value to IWMPContentPartner::GetItemInfo to retrieve a login failure URL. A login attempt has either succeeded or failed.
wmpcnAuthResult VT_BOOL containing VARIANT_TRUE to indicate that the authentication succeeded or VARIANT_FALSE to indicate that the authentication failed. Authentication is complete.
wmpcnLicenseUpdated VT_UI4 containing the content ID. A license was updated.
wmpcnNewCatalogAvailable VT_EMPTY A new version of the online store catalog is available. No contextual data.
wmpcnNewPluginAvailable VT_BOOL containing VARIANT_TRUE to indicate that updating the plug-in is required or VARIANT_FALSE to indicate that updating the plug-in is desirable, but optional. A new version of the online store plug-in is available.
wmpcnDisableRadioSkipping VT_EMPTY Instructs Windows Media Player to disable radio skipping.

Requirements

Version: Windows Media Player 11

Header: contentpartner.h

See Also

Previous Next