Share via


Windows Media Player 11 SDK IWMPCore::get_currentMedia 

Windows Media Player SDK banner art

Previous Next

IWMPCore::get_currentMedia

The get_currentMedia method retrieves a pointer to an IWMPMedia interface corresponding to the current media item.

Syntax

  

Parameters

ppMedia

[out]  Pointer to a pointer to an IWMPMedia interface.

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.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next