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:setupapi.SetupDiUnremoveDevice |
SetupDiUnremoveDevice function (setupapi.h) |
The SetupDiUnremoveDevice function is the default handler for the DIF_UNREMOVE installation request. |
|
devinst\setupdiunremovedevice.htm |
devinst |
1bffe874-d4ba-4efa-ab71-098a3c96092f |
12/05/2018 |
SetupDiUnremoveDevice, SetupDiUnremoveDevice function [Device and Driver Installation], devinst.setupdiunremovedevice, di-rtns_8c97341a-c852-47be-ad6e-c551f82deb6d.xml, setupapi/SetupDiUnremoveDevice |
setupapi.h |
Setupapi.h |
Desktop |
Available in Microsoft Windows 2000 and later versions of Windows. |
Setupapi.lib |
Setupapi.dll |
Windows |
19H1 |
|
|
|
|
|
|
The SetupDiUnremoveDevice function is the default handler for the DIF_UNREMOVE installation request.
A handle to a device information set for the local system that contains a device information element that represents a device to restore and to restart.
A pointer to an SP_DEVINFO_DATA structure that specifies the device information element in DeviceInfoSet. This is an IN-OUT parameter because DeviceInfoData.DevInst might be updated with a new handle value on return.
The function returns TRUE if it is successful. Otherwise, it returns FALSE and the logged error can be retrieved by a call to GetLastError.
SetupDiUnremoveDevice restores a device to a hardware profile. This function starts the device, if possible, or it sets a flag in the device install parameters that eventually causes the user to be prompted to shut down the system.
The DeviceInfoSet must only contain elements on the local computer.
The caller of SetupDiUnremoveDevice must be a member of the Administrators group.