Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I implement a schedule reboot prompts using WUAPI? Or some other way?

How can I implement a schedule reboot prompts using WUAPI? Or some other way?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorialannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hanq_38910130
    wrote on last edited by
    #1

    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.

    N 1 Reply Last reply
    0
    • H hanq_38910130

      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.

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      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]

      H 1 Reply Last reply
      0
      • N Naveen

        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]

        H Offline
        H Offline
        hanq_38910130
        wrote on last edited by
        #3

        Thanks very much for your help!! I'll check your url:)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups