SetupDiFinishInstallAction function

The SetupDiFinishInstallAction function is the default handler for the DIF_FINISHINSTALL_ACTION request.

Syntax

BOOL SetupDiFinishInstallAction(
  _In_ HDEVINFO         DeviceInfoSet,
  _In_ PSP_DEVINFO_DATA DeviceInfoData
);

Parameters

  • DeviceInfoSet [in]
    A handle to the device information set. This set contains a device information element that represents the device for which to perform finish-install actions.

  • DeviceInfoData [in]
    A pointer to an SP_DEVINFO_DATA structure that specifies the device information element in DeviceInfoSet.

Return value

SetupDiFinishInstallAction returns TRUE if the operation succeeds. Otherwise, the function returns FALSE and the logged error can be retrieved with a call to GetLastError.

Remarks

SetupDiFinishInstallAction processes, in the interactive context of a user, the RunOnce registry entries that are set for a device.

An installation program or an installer should not directly call SetupDiFinishInstallAction.

For more information about finish-install actions, see How Device Installation Processes Finish-Install Actions and Implementing Finish-Install Actions.

Requirements

Target platform

Desktop

Version

Available in Windows Vistathrough Windows 7

Header

Setupapi.h (include Setupapi.h)

Library

Setupapi.lib

See also

DIF_FINISHINSTALL_ACTION

 

 

Send comments about this topic to Microsoft