Ken Dibble wrote on 2013-04-03: > >> Look at that, Calvin blogged about this: >> http://blogs.msdn.com/b/calvin_hsia/archive/2005/01/24/359713.aspx >> > Amazing! When this message came in, I had just finished reading Doug > Hennig's white paper on binding Windows events, and had concluded that > WM_POWERBROADCAST was probably what I needed, and was starting to look > around for a code example. > > Serendipity! > > Thanks. > > Ken Dibble > www.stic-cil.org
Ken, I like the WM_QUERYENDSESSION. I sent you a small project I put together using it. With Windows Vista and higher, the use of ShutdownBlockReasonCreate and ShutdownBlockReasonDestroy allows the user to see why the program is not allowing the computer to shutdown. Tracy Pearson PowerChurch Software _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

