I was wondering if anyone know more about the WM_QUERYENDSESSION. I know that windows sends that message to all the applications when it is shutting down? But how do I get the message and respond back to it?
I am currently incorporating it like this is my LRESULT CALLBACK WndProc function:
ErrorMessage("User is logging off. Terminating the program");
Am I not supposed to use the ErrorMessage box? Also, how do I reply back to say that it is ok to shutdown. And do i need to define WM_QUERYENDSESSION anywhere? Also what about logoff and restart; is WM_QUERYENDSESSION used then too?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL