IWMPCore interface (wmp.h)

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMPCore interface is the root interface for the Windows Media Player control. It can be used to retrieve pointers to other interfaces supported by the control and to access some basic features.

Inheritance

The IWMPCore interface inherits from the IDispatch interface. IWMPCore also has these types of members:

Methods

The IWMPCore interface has these methods.

 
IWMPCore::close

The close method releases Windows Media Player resources.
IWMPCore::get_cdromCollection

The get_cdromCollection method retrieves a pointer to an IWMPCdromCollection interface.
IWMPCore::get_closedCaption

The get_closedCaption method retrieves a pointer to an IWMPClosedCaption interface.
IWMPCore::get_controls

The get_controls method retrieves a pointer to an IWMPControls interface.
IWMPCore::get_currentMedia

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

The get_currentPlaylist method retrieves a pointer to an IWMPPlaylist interface corresponding to the current playlist.
IWMPCore::get_error

The get_error method retrieves a pointer to an IWMPError interface.
IWMPCore::get_isOnline

The get_isOnline method retrieves a value indicating whether the user is connected to a network.
IWMPCore::get_mediaCollection

The get_mediaCollection method retrieves a pointer to an IWMPMediaCollection interface.
IWMPCore::get_network

The get_network method retrieves a pointer to an IWMPNetwork interface.
IWMPCore::get_openState

The get_openState method retrieves an enumeration value indicating the state of the content source.
IWMPCore::get_playlistCollection

The get_playlistCollection method retrieves a pointer to an IWMPPlaylistCollection interface.
IWMPCore::get_playState

The get_playState method retrieves an enumeration value indicating the operating state of Windows Media Player.
IWMPCore::get_settings

The get_settings method retrieves a pointer to an IWMPSettings interface.
IWMPCore::get_status

The get_status method retrieves the status of Windows Media Player.
IWMPCore::get_URL

The get_URL method retrieves the name of the clip to play.
IWMPCore::get_versionInfo

The get_versionInfo method retrieves a String value specifying the version of Windows Media Player.
IWMPCore::launchURL

The launchURL method sends a URL to the user's default browser.
IWMPCore::put_currentMedia

The put_currentMedia method specifies the IWMPMedia interface that corresponds to the current media item.
IWMPCore::put_currentPlaylist

The put_currentPlaylist method specifies the IWMPPlaylist interface that corresponds to the current playlist.
IWMPCore::put_URL

The put_URL method specifies the URL of the media item to play.

Requirements

Requirement Value
Target Platform Windows
Header wmp.h

See also

IWMPCdromCollection Interface

IWMPClosedCaption Interface

IWMPControls Interface

IWMPCore2 Interface

IWMPCore3 Interface

IWMPError Interface

IWMPMedia Interface

IWMPMediaCollection Interface

IWMPNetwork Interface

IWMPPlaylist Interface

IWMPPlaylistCollection Interface

IWMPSettings Interface

Interfaces

WMPOpenState

WMPPlayState