Share via


IWMPControls::get_currentPositionString (Windows Embedded CE 6.0)

1/6/2010

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

HRESULT get_currentPositionString( BSTR* pbstrCurrentPosition ); 

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).

The maximum size for the string would be formatted as HHH:MM:SS if the time value is large enough.

See Also

Reference

IWMPControls Interface