Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2006, 01:36 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 :-)










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.