I want a code that says something like "When computer is shutting down say "Cya".
So when the user shuts down the cya message pops up or even a picture would be better. Thanks
How do i detect a shutdown with c++ code?
In a Windows program, your WndProc procedure should process the WM_QUERYENDSESSION and WM_ENDSESSION messages if you want to detect a system shutdown.
The information on those messages are available on Microsoft's web site (in the MSDN section) and in the Windows R2 Platform SDK.
Reply:the best way would be to use an event viewer.. to show the processes going on.
or say for instance.. check when a specific shut down program is present in memory.
normally the first thing that will happen is that things are shut down.. so you need to do it before that stage..
i don't see the point of it... to be honest.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment