title: Any way to know if there's a scheduled shutdown?
body: <p>I'm currently making a program to schedule computer shutdowns or reboots. You input hours, minutes and seconds and then the computer shuts down/restarts after that given time. A red text then pops-up telling the remaining time before it shuts down. However, if I close the program and reopen it, the shutdown is still scheduled and I'd like to show the remaining time and inform the user.
  Is there any way to check if a scheduled shutdown is running ? I'll later make my program write to a log file each shutdown date and duration so I can get the remaining time before it stops.
  This is how I stop the computer: </p>
  
  <pre><code>Process.Start("shutdown.exe", "/s /f /t " + seconds);
  </code></pre>