Previous | Next |
The GetLastPlayPosition method retrieves the last play position of the object. The object must be a music file on the media device.
Syntax
HRESULT GetLastPlayPosition(
DWORD* pdwLastPos
);
Parameters
pdwLastPos
[out] Pointer to a double word containing the last play position of the object, in units pertinent to the object.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Description |
E_INVALIDTYPE | The object is not a valid playable file. |
WMDM_E_NOTSUPPORTED | This object cannot report last play position. |
E_FAIL | An unspecified error occurred. |
Remarks
The object must be an audio data file. For all other object types, this function returns E_INVALIDTYPE.
The value returned in pdwLastPos is specified in milliseconds. The last play position changes when either the user presses Play on the media device or when an application invokes the IMDSPDeviceControl::Play method.
See Also
Previous | Next |