Windows Media Player 11 SDK IWMPControls::pauseĀ 

Windows Media Player SDK banner art

Previous Next

IWMPControls::pause

The pause method pauses playback of the media item.

Syntax

  
    
  

Parameters

This method takes no parameters.

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

When a file is paused, Windows Media Player does not give up any system resources, such as the audio device.

Certain media types cannot be paused, such as live streams. To determine whether a particular media type can be paused, call the IWMPControls::get_isAvailable method and pass in the BSTR value "pause".

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next