Windows 10 shutdown delay, VB.NET

后端 未结 2 1055
天命终不由人
天命终不由人 2021-01-22 08:01

I want to delay windows 10 from shutting down so that my app can finish up some necessary actions like saving data...

Following is a working code example to ach

2条回答
  •  醉梦人生
    2021-01-22 08:38

    You cannot suspend windows shutdown for more than a few seconds: https://blogs.msdn.microsoft.com/oldnewthing/20060216-06/?p=32263

提交回复
热议问题