how to cancel shutdown or restart of windows and make it entering something looks like windows updating more?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2720125/how-cancel-shutdown-from-a-windows-service-c-sharp">How cancel shutdown from a windows service C#</a>  </p>
</blockquote>



<p>I have windows service that should transfer file to nas storage, now the problem is that these files are very important and must not be interupted by windows shutdown or restart,</p>

<p>I want to do something looks like windows updating, when a user hit shut down while the service transfering files in queue, windows should wait until all files are transfered then performing shutdown or restart.</p>

<p>like in this image:
<a href="http://www.7tutorials.com/files/img/ie9_uninstall/unie93.png" rel="nofollow">http://www.7tutorials.com/files/img/ie9_uninstall/unie93.png</a></p>

<p>how to do this in c#.net?</p>
