How to run an application when clicking "Shut Down" from start menu?
-
Hello, I am using Windows 2000 Professional and VC++ 6.0 (MFC). I have created a simple dialog based application. I want to run this application when I click "Shut Down" from start menu. How to achieve this? TIA, Regards, Jahfer V P
You would need a separate application running that handles the
WM_QUERYENDSESSION
message. When that message is received, return 0, start the "dialog based application."
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
You would need a separate application running that handles the
WM_QUERYENDSESSION
message. When that message is received, return 0, start the "dialog based application."
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
But, would the os allow launching a process when its in the process of shutdown? I think you have to abort the shutdown first, launch your application and call ExitWindows(...) again. ____________________________________________________________ rishabhs I think therefore I am.
-
But, would the os allow launching a process when its in the process of shutdown? I think you have to abort the shutdown first, launch your application and call ExitWindows(...) again. ____________________________________________________________ rishabhs I think therefore I am.
r i s h a b h s wrote: I think you have to abort the shutdown first, launch your application... Which is exactly what I suggested.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown