using WM_POWERBROADCAST
Hello to everybody! :-) I need to solve next problem - there is file server under Win 2003 Server. I have UPS from APC with software (APC PowerChute Personal Edition). When power is failure, this software is automatically shutting down server. But I need to run one console application before it. Unfortunately, PowerChute can't provide this possibility... Can you get me advice, how can I use Win Power API for solving this problem? Is there any of code examples (I mean WM_POWERBROADCAST)?
Sorry for possible mistakes in English :-)
|