Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 3.69 KB

nf-mswmdm-iwmdmobjectinfo-getplaylength.md

File metadata and controls

91 lines (69 loc) · 3.69 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mswmdm.IWMDMObjectInfo.GetPlayLength
IWMDMObjectInfo::GetPlayLength (mswmdm.h)
The GetPlayLength method retrieves the play length of the object in units appropriate to the format. This is the remaining length that the file can play, not its total length.
GetPlayLength
GetPlayLength method [windows Media Device Manager]
GetPlayLength method [windows Media Device Manager]
IWMDMObjectInfo interface
IWMDMObjectInfo interface [windows Media Device Manager]
GetPlayLength method
IWMDMObjectInfo.GetPlayLength
IWMDMObjectInfo::GetPlayLength
IWMDMObjectInfoGetPlayLength
mswmdm/IWMDMObjectInfo::GetPlayLength
wmdm.iwmdmobjectinfo_getplaylength
wmdm\iwmdmobjectinfo_getplaylength.htm
WMDM
7f553513-0928-41b8-858f-c06ec57660d1
12/05/2018
GetPlayLength, GetPlayLength method [windows Media Device Manager], GetPlayLength method [windows Media Device Manager],IWMDMObjectInfo interface, IWMDMObjectInfo interface [windows Media Device Manager],GetPlayLength method, IWMDMObjectInfo.GetPlayLength, IWMDMObjectInfo::GetPlayLength, IWMDMObjectInfoGetPlayLength, mswmdm/IWMDMObjectInfo::GetPlayLength, wmdm.iwmdmobjectinfo_getplaylength
mswmdm.h
Windows
Mssachlp.lib
Windows
19H1
IWMDMObjectInfo::GetPlayLength
mswmdm/IWMDMObjectInfo::GetPlayLength
c++
APIRef
kbSyntax
COM
mssachlp.lib
mssachlp.dll
IWMDMObjectInfo.GetPlayLength

IWMDMObjectInfo::GetPlayLength

-description

The GetPlayLength method retrieves the play length of the object in units appropriate to the format. This is the remaining length that the file can play, not its total length.

-parameters

-param pdwLength [out]

Pointer to a DWORD specifying the remaining play length of the file, in milliseconds.

-returns

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 value of the play length retrieved is either the total length of the object minus the current play position (if the SetPlayLength method has not been called), or the value set by SetPlayLength clipped to be no greater than the total play length of the object minus the current play position.

The play length information can change either when the user starts playing a file on the media device or when an application invokes the Play method.

For folders or file systems containing playable files, the value returned is in tracks or numbers of playable files in that folder or in the root of that file system.

-see-also

IWMDMObjectInfo Interface

Play

SetPlayLength