Windows Media Format SDK banner art
PreviousNext

IWMDMObjectInfo::GetTotalLength

The GetTotalLength method retrieves the total possible play length of the object in relevant units.

Syntax

HRESULT GetTotalLength(
  DWORD*  pdwLength
);

Parameters

  pdwLength

[out]  Pointer to a double word containing the total possible play length.

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.
E_FAIL An unspecified error occurred.

Remarks

The value returned is the total length of the object regardless of the current settings of the play length and play offsets.

The value returned for playable files is specified in milliseconds. For folders or file systems containing playable files, pdwLength indicates the number of available tracks or playable files.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.