Archived

This topic is now archived and is closed to further replies.

iamgod

Hooking Shutdown

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites