Share via


Windows Media Player 11 SDK IWMPSettings::get_autoStart 

Windows Media Player SDK banner art

Previous Next

IWMPSettings::get_autoStart

The get_autoStart method retrieves a value indicating whether the current media item begins playing automatically.

Syntax

  

Parameters

pfAutoStart

[out]  Pointer to a VARIANT_BOOL that indicates whether the current media item begins playing automatically. The default is TRUE.

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

If pfAutoStart is TRUE, the media item will begin playing when IWMPCore::put_URL, IWMPCore::put_currentPlaylist, or IWMPCore::put_currentMedia is called. Otherwise, the media item will not start playing until the IWMPControls::play method is called.

pfAutoStart for the full mode of Windows Media Player can be set globally by external events (such as loading a CD). Skins and remoted Player controls cannot expect a default value because they both employ the full mode Windows Media Player playback engine.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next