IMDSPObjectInfo::GetLastPlayPosition method (mswmdm.h)

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(
  [out] DWORD *pdwLastPos
);

Parameters

[out] pdwLastPos

Pointer to a DWORD containing the last play position of the object, in milliseconds.

Return value

The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes
For an extensive list of possible error codes, see Error Codes.

Remarks

The object must be an audio data file. For all other object types, this function returns E_INVALIDTYPE.

The last play position changes when either the user starts playing a file on the media device or when an application invokes the IMDSPDeviceControl::Play method.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

IMDSPObjectInfo Interface