• Advertisement

Archived

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

Hooking Shutdown

This topic is 5588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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

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
thank for the help i did plan on making that an option i can''t stand the outlook think either

Share this post


Link to post
Share on other sites

  • Advertisement