How can I implement a schedule reboot prompts using WUAPI? Or some other way?
-
Hi, all there: I was doing some stuff on windows update download&install using wuapi, and this done already. Now I wanna implement a schedule reboot prompts, just like windows os do after auto windows update, which you can select "reboot after XX minites" or "reboot now". Does anyone know how to implement this? Can WUAPI do this? Or some other way? Any replay is appreciated!! above.
-
Hi, all there: I was doing some stuff on windows update download&install using wuapi, and this done already. Now I wanna implement a schedule reboot prompts, just like windows os do after auto windows update, which you can select "reboot after XX minites" or "reboot now". Does anyone know how to implement this? Can WUAPI do this? Or some other way? Any replay is appreciated!! above.
hanq_38910130 wrote:
Does anyone know how to implement this?
Use InitiateSystemShutdownEx[^] function. The process need to have the SeShutdownPrivilege() privilege to call this api. Check http://www.codersource.net/mfc_shutdown_timer.html[^] if you want to know, how to set this privilege.
nave [My Articles] [My Blog]
-
hanq_38910130 wrote:
Does anyone know how to implement this?
Use InitiateSystemShutdownEx[^] function. The process need to have the SeShutdownPrivilege() privilege to call this api. Check http://www.codersource.net/mfc_shutdown_timer.html[^] if you want to know, how to set this privilege.
nave [My Articles] [My Blog]
Thanks very much for your help!! I'll check your url:)