Skip to content

Latest commit

 

History

History
88 lines (73 loc) · 3.42 KB

nf-portabledeviceapi-iportabledevicemanager-refreshdevicelist.md

File metadata and controls

88 lines (73 loc) · 3.42 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:portabledeviceapi.IPortableDeviceManager.RefreshDeviceList
IPortableDeviceManager::RefreshDeviceList (portabledeviceapi.h)
The RefreshDeviceList method refreshes the list of devices that are connected to the computer.
IPortableDeviceManager interface [Windows Portable Devices SDK]
RefreshDeviceList method
IPortableDeviceManager.RefreshDeviceList
IPortableDeviceManager::RefreshDeviceList
IPortableDeviceManagerRefreshDeviceList
RefreshDeviceList
RefreshDeviceList method [Windows Portable Devices SDK]
RefreshDeviceList method [Windows Portable Devices SDK]
IPortableDeviceManager interface
portabledeviceapi/IPortableDeviceManager::RefreshDeviceList
wpdsdk.iportabledevicemanager_refreshdevicelist
wpdsdk\iportabledevicemanager_refreshdevicelist.htm
wpdsdk
89163407-7b38-4c79-8171-67a5b7e1d17c
12/05/2018
IPortableDeviceManager interface [Windows Portable Devices SDK],RefreshDeviceList method, IPortableDeviceManager.RefreshDeviceList, IPortableDeviceManager::RefreshDeviceList, IPortableDeviceManagerRefreshDeviceList, RefreshDeviceList, RefreshDeviceList method [Windows Portable Devices SDK], RefreshDeviceList method [Windows Portable Devices SDK],IPortableDeviceManager interface, portabledeviceapi/IPortableDeviceManager::RefreshDeviceList, wpdsdk.iportabledevicemanager_refreshdevicelist
portabledeviceapi.h
Windows
PortableDeviceGUIDs.lib
Windows
19H1
IPortableDeviceManager::RefreshDeviceList
portabledeviceapi/IPortableDeviceManager::RefreshDeviceList
c++
APIRef
kbSyntax
COM
PortableDeviceGUIDs.lib
PortableDeviceGUIDs.dll
IPortableDeviceManager.RefreshDeviceList

IPortableDeviceManager::RefreshDeviceList

-description

The RefreshDeviceList method refreshes the list of devices that are connected to the computer.

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

-remarks

When the IPortableDeviceManager interface is instantiated the first time, it generates a list of the devices that are connected. However, devices can connect and disconnect from the computer, making the original list obsolete. This method enables an application to refresh the list of connected devices.

This method is less resource-intensive than instantiating a new device manager to generate a new device list. However, it does require some resources; therefore, we recommend that you do not call this method arbitrarily. The best solution is to have the application register to get device arrival and removal notifications, and when a notification is received, have the application call this function.

-see-also

IPortableDeviceManager Interface