Compartilhar via


IWMDMDevice Interface

banner art

One instance of the IWMDMDevice interface is associated with each device. The interface can be used to get information about a device and enumerate its storages. IWMDMDevice2 extends the capabilities of this interface.

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

Method Description
EnumStorage Retrieves an IWMDMEnumStorage interface to enumerate the storage media on a device.
GetDeviceIcon Retrieves a handle to the icon that the device service provider wants to display when the device is connected.
GetFormatSupport Retrieves all formats supported by this device, including codecs, file formats, and DRM schemes.
GetManufacturer Retrieves the name of the manufacturer of a media device.
GetName Retrieves the name of an installed media device.
GetPowerSource Retrieves information about the power source and the percentage of power remaining for the device.
GetSerialNumber Retrieves a serial number that uniquely identifies the device.
GetStatus Retrieves device status information.
GetType Retrieves information defining what operation types are supported by the device.
GetVersion Retrieves the version number of the media device.
SendOpaqueCommand Sends a command through Windows Media Device Manager. Without acting on it, Windows Media Device Manager passes the command through to a device. Applications can use this method to send proprietary commands to a service provider.

See Also