Share via


Windows Media Player 11 SDK IWMPMedia::get_markerCount 

Windows Media Player SDK banner art

Previous Next

IWMPMedia::get_markerCount

The get_markerCount method retrieves the number of markers in the media item.

Syntax

  

Parameters

pMarkerCount

[out]  Pointer to a long that contains the marker count.

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

This method returns zero if a file has no markers, or if the media item is not the same as the one specified in IWMPCore::get_currentMedia.

Marker numbers start at 1.

Before calling this method, you must have read access to the library. For more information, see Library Access.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next