Windows Media Player 11 SDK IWMPControls::put_currentMarkerĀ 

Windows Media Player SDK banner art

Previous Next

IWMPControls::put_currentMarker

The put_currentMarker method specifies the current marker number.

Syntax

  

Parameters

lMarker

[in]  long containing the marker.

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

Specifying a marker with the put_currentMarker method causes playback to start from that marker. Before attempting to specify a marker with put_currentMarker, determine whether a file has markers and how many it has by calling IWMPMedia::get_markerCount. If a file has no markers, specifying a marker to anything but zero by using put_currentMarker results in an error. Specifying a marker to a number higher than a number retrieved by using IWMPMedia::get_markerCount also results in an error.

Until the current media item is set (using ** IWMPCore::put_URL or IWMPCore::put_currentMedia), get_currentMarker retrieves a marker that is zero.

See Also

Previous Next