title: What event ids precede Windows 7 restart?
body: <p>I am looking for the major event ids that <strong>precede</strong> Windows 7 restart. </p>
  
  <p>In my <code>event viewer</code> i could find only one unique event id that always preceds the restart: <code>7040</code>. Am I correct ? I looked up <a href="https://technet.microsoft.com/en-us/library/Cc756386(v=WS.10).aspx" rel="nofollow noreferrer">this event</a> but I am not sure about it, the documentation says : </p>
  
  <pre><code>This event is written when an application causes the system to restart
  </code></pre>
  
  <p>Is this the only unique event  that <strong>precedes</strong> the restart ? </p>
  
  <p>I need this to answer my <a href="https://stackoverflow.com/questions/31725287/how-to-get-an-email-when-a-computer-is-about-to-restart">previous question</a></p>