Windows Media Format SDK banner art
PreviousNext

IWMDMObjectInfo::GetLastPlayPosition

The GetLastPlayPosition method retrieves the previous play offset in a playable object.

Syntax

HRESULT GetLastPlayPosition(
  DWORD*  pdwLastPos
);

Parameters

  pdwLastPos

[out]  Pointer to a double word containing the previous play offset.

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 with which this interface is associated is not a playable file or folder.
WMDM_E_NOTSUPPORTED This device does not support reporting last play positions.
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 return value always is specified in milliseconds. The last play position changes either when the user presses Play on the media device or when an application invokes the IWMDMDeviceControl::Play method.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.