SetupDiMoveDuplicateDevice

BOOLEAN
    SetupDiMoveDuplicateDevice(
        IN HDEVINFO  DeviceInfoSet,
        IN PSP_DEVINFO_DATA  DestinationDeviceInfoData 
        );

SetupDiMoveDuplicateDevice is the default handler for the DIF_MOVEDEVICE class installation request. This function moves a device to a new location of the Enum branch of the registry.

Parameters
DeviceInfoSet
Supplies a handle to the device information set for the device which is to be moved.
DestinationDeviceInfoData
Supplies a pointer to an SP_DEVINFO_DATA structure for the device instance that is the destination of the move. This device instance must contain class install parameters for DIF_MOVEDEVICE or the function fails with an error of ERROR_NO_CLASSINSTALL_PARAMS.
Return Value

The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved with a call to GetLastError.

See Also

SP_MOVEDEV_PARAMS