IPortableDeviceManager 介面 (portabledeviceapi.h)

列舉連線到電腦的裝置,並提供簡單的方法來要求安裝資訊,包括製造商、易記名稱和描述。 這通常是應用程式所建立的第一個 Windows 可攜式裝置介面。 若要建立這個介面的實例,請呼叫 CoCreateInstance 並指定 CLSID_PortableDeviceManager

您也可以使用 IPortableDeviceProperties 介面來要求使用此介面要求的屬性。 不過,該介面需要數個步驟才能取得;使用此介面是要求裝置資訊更簡單的方式。

繼承

IPortableDeviceManager介面繼承自IUnknown介面。 IPortableDeviceManager 也有下列類型的成員:

方法

IPortableDeviceManager介面具有這些方法。

 
IPortableDeviceManager::GetDeviceDescription

擷取裝置的描述。
IPortableDeviceManager::GetDeviceFriendlyName

擷取裝置的使用者易記名稱。
IPortableDeviceManager::GetDeviceManufacturer

擷取裝置製造商的名稱。
IPortableDeviceManager::GetDeviceProperty

擷取電腦上裝置所儲存的屬性值。 (這些不是 Windows 可攜式裝置.) 所定義的標準屬性。
IPortableDeviceManager::GetDevices

擷取連線到電腦的可攜式裝置清單。
IPortableDeviceManager::GetPrivateDevices

GetPrivateDevices 方法會擷取連線到電腦的私人可攜式裝置清單。 這些私人裝置只能透過專為這些特定裝置設計的應用程式來存取。
IPortableDeviceManager::RefreshDeviceList

RefreshDeviceList 方法會重新整理連線到電腦的裝置清單。

需求

   
目標平台 Windows
標頭 portabledeviceapi.h

另請參閱

用戶端介面