Hooking Shutdown

Started by
2 comments, last by iamgod 21 years, 5 months ago
I have written a program that allows for my to keep my time sheet. I need to hook( I guess?) into the shutdown and pop up a dialog to if the time has not been enter for the current day and shutdown is chosen like in office xp if you shutdown with outlook open. Any suggestions or a better way would be great. Thanks!
Advertisement
Theres a Windows message (WM_SHUTDOWN ?) that you can get your app to respond to. If you return 1 (i think), then windows won''t exit.

Steve
DirectX Programmer
Soon to be the new Bill Gates
Member of the Unban Mindwipe Society (UMWS)
make sure you give the user the option to disable that feature, as its implementation in outlook is incredibly annoying. i can''t quit windows because a mail app is open -- whoever came up with that idea?

anyway, there''s WM_QUERYENDSESSION i think.
thank for the help i did plan on making that an option i can''t stand the outlook think either

This topic is closed to new replies.

Advertisement