IMDSPDevice interface (mswmdm.h)

The IMDSPDevice interface provides an instance-based association with a media device. Using this interface, the client can get a storage media enumerator for the device, get information about the device, and send opaque (pass-through) commands to the device. IMDServiceProvider2 extends IMDSPDevice by providing methods for getting video formats, getting Plug and Play (PnP) device names, enabling the use of property pages, and making it possible to get a pointer to a storage medium from its name. This interface is optional for the service provider but is recommended.


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


The IMDSPDevice interface has these methods.

Method Description
IMDSPDevice::EnumStorage The EnumStorage method retrieves a pointer to an IMDSPEnumStorage interface of an enumerator object that represents the top-level storage(s) on the device. Top-level storage for a device is the root directory of the storage medium.
IMDSPDevice::GetDeviceIcon The GetDeviceIcon method returns a HICON that represents the icon that the device service provider indicates must be used to represent this device.
IMDSPDevice::GetFormatSupport The GetFormatSupport method retrieves all the formats supported by the device. The format information includes codecs, file formats, and digital rights management schemes.
IMDSPDevice::GetManufacturer The GetManufacturer method retrieves the name of the manufacturer of the device.
IMDSPDevice::GetName The GetName method retrieves the name of the device.
IMDSPDevice::GetPowerSource The GetPowerSource method reports whether the device is capable of running on batteries, external power, or both, and on which type of power source it is currently running.
IMDSPDevice::GetSerialNumber The GetSerialNumber method retrieves the serial number that uniquely identifies the device.
IMDSPDevice::GetStatus The GetStatus method retrieves all the device status information that the device can provide.
IMDSPDevice::GetType The GetType method retrieves device type information.
IMDSPDevice::GetVersion The GetVersion method retrieves the version number of the device.
IMDSPDevice::SendOpaqueCommand The SendOpaqueCommand method sends a command through Windows Media Device Manager. Without acting on it, Windows Media Device Manager passes the command through to a device.


Target Platform Windows
Header mswmdm.h

See also

IMDSPDevice2 Interface

IMDSPDevice3 Interface

Interfaces for Service Providers