Windows Media Player 11 SDK IWMPControls::get_currentPositionStringĀ 

Windows Media Player SDK banner art

Previous Next

IWMPControls::get_currentPositionString

The get_currentPositionString method retrieves the current position in the media item as a BSTR formatted as HH:MM:SS (hours, minutes, and seconds).

Syntax

  

Parameters

pbstrCurrentPosition

[out]  Pointer to a BSTR containing the current position.

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 the media item is less than an hour long, the current position is formatted as MM:SS (minutes and seconds).

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next