Power loss events in Windows 7...C# question
<p>I'm working on an C# WPF application that will be on a Windows 7 machine with an APC 1500 UPS attached.  On power loss, I need the app to respond with certain shutdown activities before Windows 7 shuts it down.  </p>

<p>Can I deal directly with windows events or do I need to interact with the APC software?  If Windows, what events?  Any links or info would be appreciated - I just haven't seen much when searching.  </p>

<p>Thanks.</p>
