SetupDiRegisterCoDeviceInstallers function (setupapi.h)
The SetupDiRegisterCoDeviceInstallers function is the default handler for DIF_REGISTER_COINSTALLERS.
WINSETUPAPI BOOL SetupDiRegisterCoDeviceInstallers( [in] HDEVINFO DeviceInfoSet, [in] PSP_DEVINFO_DATA DeviceInfoData );
A handle to the device information set that contains a device information element that represents the device for which to register co-installers. The device information set must not contain any remote elements.
A pointer to an SP_DEVINFO_DATA structure that specifies the device information element in DeviceInfoSet.
SetupDiRegisterCoDeviceInstallers returns TRUE if the function succeeds. If the function returns FALSE, call GetLastError for extended error information.
The caller of SetupDiRegisterCoDeviceInstallers must be a member of the Administrators group.
If there is no driver selected, or the device has an INF file for Windows 9x or Millennium Edition, this function does not register any co-installers.
Registering a new device-specific co-installer invalidates the Device Installer's current list of co-installers. After a successful registration, the Device Installer updates its list of co-installers.
This function only registers device-specific co-installers, not class co-installers.
For more information about how to write and register device-specific co-installers, see Writing a Co-installer.
The device information set specified by DeviceInfoSet must only contain elements on the local computer.
|Minimum supported client||Available in Microsoft Windows 2000 and later versions of Windows.|
|Header||setupapi.h (include Setupapi.h)|