Compartir a través de


IPortableDeviceManager Interface

banner art

Previous Next

IPortableDeviceManager Interface

Enumerates devices that are connected to the computer and provides a simple way to request installation information, including manufacturer, friendly name, and description. This is typically the first Windows Portable Devices interface created by an application. To create an instance of this interface, call CoCreateInstance and specify CLSID_PortableDeviceManager.

The properties that are requested using this interface can also be requested by using the IPortableDeviceProperties interface. However, that interface requires several steps to acquire; using this interface is a much simpler way to request device information.

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

Method Description
GetDeviceDescription Retrieves the description of a device.
GetDeviceFriendlyName Retrieves the user-friendly name for the device.
GetDeviceManufacturer Retrieves the name of the device manufacturer.
GetDeviceProperty Retrieves a property value stored by the device on the computer.
GetDevices Retrieves a list of portable devices connected to the computer.
GetPrivateDevices Retrieves a list of private portable devices connected to the computer.
RefreshDeviceList Refreshes the list of portable devices that are connected to the computer.

Requirements

Header: Defined in PortableDeviceApi.h

Library: PortableDeviceGUIDs.lib

See Also

Previous Next