IMDSPObjectInfo Interface (deprecated)

banner art

This is preliminary documentation and subject to change.

This topic documents a feature of the Windows Media Device Manager SDK. We recommend that you migrate your application to use the Windows Portable Devices API. For more information, see the Windows Portable Devices SDK.

The IMDSPObjectInfo interface provides methods for getting and setting parameters that describe how playable objects on a storage medium are referenced or accessed by the IMDSPDeviceControl interface. Implementing this interface is optional. For more information, see Mandatory and Optional Interfaces.

The resolution of the method parameters depends on the associated storage object as follows:

  • If the storage object represents a playable audio file, then the relative storage units are milliseconds.
  • If the storage object represents a folder or the root of a storage medium containing playable files, then the relative storage units are tracks.

This interface is not intended for non-playable files. If the IMDSPObjectInfo interface is acquired from an IMDSPStorage interface that represents a non-playable file or a folder or a root file system containing no playable files, E_INVALIDTYPE is returned from all of the methods.

In addition to the methods inherited from IUnknown, the IMDSPObjectInfo interface exposes the following methods.

Method Description
GetLastPlayPosition Retrieves the last play position of the object. The object must be a music file on the media device.
GetLongestPlayPosition Retrieves the longest play position of the object. The object must be a music file on the media device.
GetPlayLength Retrieves the play length of the object in units pertinent to the object.
GetPlayOffset Retrieves the play offset of the object, in units pertinent to the object.
GetTotalLength Retrieves the total play length of the object in units pertinent to the object.
SetPlayLength Sets the play length of the object, in units pertinent to the object.
SetPlayOffset Sets the play offset of the object, in units pertinent to the object.

See Also