Windows Media Format SDK banner art
PreviousNext

IWMDMObjectInfo::GetLongestPlayPosition

The GetLongestPlayPosition method retrieves the longest play position of the object.

Syntax

HRESULT GetLongestPlayPosition(
  DWORD*  pdwLongestPos
);

Parameters

  pdwLongestPos

[out]  Pointer to a double word containing the longest play position in milliseconds.

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 longest 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 is always specified in milliseconds.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.