Skip to content

Latest commit

 

History

History
87 lines (68 loc) · 3.59 KB

nf-mswmdm-imdspobjectinfo-setplayoffset.md

File metadata and controls

87 lines (68 loc) · 3.59 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.IMDSPObjectInfo.SetPlayOffset
IMDSPObjectInfo::SetPlayOffset (mswmdm.h)
The SetPlayOffset method sets the play offset of the object, in the units pertinent to the object. This specifies the starting point for the next invocation of IMDSPDeviceControl::Play.
IMDSPObjectInfo interface [windows Media Device Manager]
SetPlayOffset method
IMDSPObjectInfo.SetPlayOffset
IMDSPObjectInfo::SetPlayOffset
IMDSPObjectInfoSetPlayOffset
SetPlayOffset
SetPlayOffset method [windows Media Device Manager]
SetPlayOffset method [windows Media Device Manager]
IMDSPObjectInfo interface
mswmdm/IMDSPObjectInfo::SetPlayOffset
wmdm.imdspobjectinfo_setplayoffset
wmdm\imdspobjectinfo_setplayoffset.htm
WMDM
f61ce3b5-3cd9-41e6-9a29-42b9832ec55a
12/05/2018
IMDSPObjectInfo interface [windows Media Device Manager],SetPlayOffset method, IMDSPObjectInfo.SetPlayOffset, IMDSPObjectInfo::SetPlayOffset, IMDSPObjectInfoSetPlayOffset, SetPlayOffset, SetPlayOffset method [windows Media Device Manager], SetPlayOffset method [windows Media Device Manager],IMDSPObjectInfo interface, mswmdm/IMDSPObjectInfo::SetPlayOffset, wmdm.imdspobjectinfo_setplayoffset
mswmdm.h
Windows
Mssachlp.lib
Windows
19H1
IMDSPObjectInfo::SetPlayOffset
mswmdm/IMDSPObjectInfo::SetPlayOffset
c++
APIRef
kbSyntax
COM
mssachlp.lib
mssachlp.dll
IMDSPObjectInfo.SetPlayOffset

IMDSPObjectInfo::SetPlayOffset

-description

The SetPlayOffset method sets the play offset of the object, in the units pertinent to the object. This specifies the starting point for the next invocation of IMDSPDeviceControl::Play.

-parameters

-param dwOffset [in]

DWORD containing the play offset to set for the object, in units pertinent to the object.

-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

If the value passed is greater than the total length of the object minus the current play length, it is clipped to the length of the object minus the play length.

For playable files, the value is specified in milliseconds. The play offset position value does not change when the user starts playing a file on the media device or when an application invokes the IMDSPDeviceControl::Play method.

For folders or file systems containing playable files, the value indicates the first track that is played when an application invokes the IMDSPDeviceControl::Play method.

-see-also

IMDSPObjectInfo Interface

IMDSPObjectInfo::GetPlayOffset