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
You cannot suspend windows shutdown for more than a few seconds: https://blogs.msdn.microsoft.com/oldnewthing/20060216-06/?p=32263