Why need reboot after set NVMe device disable throuth call SetupDiCallClassInstaller
Ligang LG2 Guo
1
Reputation point
In response to a DIF code supplied by SetupDiCallClassInstaller, class installers and co-installers might perform operations that require the system to be restarted. In such situations, the installer or co-installer should do the following:
- Call SetupDiGetDeviceInstallParams to obtain the SP_DEVINSTALL_PARAMS structure.
- Set the DI_NEEDREBOOT or DI_NEEDRESTART flag in the structure's Flags member.
- Call SetupDiSetDeviceInstallParams, supplying the updated SP_DEVINSTALL_PARAMS structure, to save the revised Flags member.
After__SetupDiCallClassInstaller__returns, the device installation application that called it should callSetupDiGetDeviceInstallParams, check the flags, and request a restart if necessary.
I'd like to know when the installer or co-installer will set DI_NEEDREBOOT, thanks.
Sign in to answer