IMDSPObjectInfo interface (mswmdm.h)

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.

Inheritance

The IMDSPObjectInfo interface inherits from the IUnknown interface. IMDSPObjectInfo also has these types of members:

Methods

The IMDSPObjectInfo interface has these methods.

 
IMDSPObjectInfo::GetLastPlayPosition

The GetLastPlayPosition method retrieves the last play position of the object. The object must be a music file on the media device.
IMDSPObjectInfo::GetLongestPlayPosition

The GetLongestPlayPosition method retrieves the longest play position of the object. The object must be a music file on the media device.
IMDSPObjectInfo::GetPlayLength

The GetPlayLength method retrieves the play length of the object in units pertinent to the object. This is the remaining length that the object can play, not its total length.
IMDSPObjectInfo::GetPlayOffset

The GetPlayOffset method retrieves the play offset of the object, in units pertinent to the object. This is the starting point for the next invocation of IMDSPDeviceControl::Play.
IMDSPObjectInfo::GetTotalLength

The GetTotalLength method retrieves the total play length of the object in units pertinent to the object. The value returned is the total length regardless of the current settings of the play length and offset.
IMDSPObjectInfo::SetPlayLength

The SetPlayLength method sets the play length of the object, in units pertinent to the object. This is the maximum length that the object plays regardless of its actual length.
IMDSPObjectInfo::SetPlayOffset

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.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h

See also

IMDSPStorage Interface

Interfaces for Service Providers