InitiateSystemShutdown call not working

前端 未结 1 901
清酒与你
清酒与你 2021-01-16 02:24

I\'m writing an application that will need to reboot the Windows machine the code is running on.

There didn\'t appear to be an API within .NET to do this, so I looke

相关标签:
1条回答
  • 2021-01-16 03:12

    See the following example in MSDN: Displaying the Shutdown Dialog Box.

    You need to get the correct privileges for your thread.

    0 讨论(0)
提交回复
热议问题