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.


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.

The GetDeviceIcon method returns a HICON that represents the icon that the device service provider indicates must be used to represent this device.

The GetFormatSupport method retrieves all the formats supported by the device. The format information includes codecs, file formats, and digital rights management schemes.

The GetManufacturer method retrieves the name of the manufacturer of the device. (IMDSPDevice.GetManufacturer)

The GetName method retrieves the name of the device.

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.

The GetSerialNumber method retrieves the serial number that uniquely identifies the device.

The GetStatus method retrieves all the device status information that the device can provide.

The GetType method retrieves device type information.

The GetVersion method retrieves the version number of the device.

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