I know that one can use ExitWindowsEx API with the EWX_REBOOT flag to reboot computer, but how do you instruct Windows to install updates while rebooting (if any are pending)?
Like this option:

I know that one can use ExitWindowsEx API with the EWX_REBOOT flag to reboot computer, but how do you instruct Windows to install updates while rebooting (if any are pending)?
Like this option:
