Jump to content
  • Advertisement

Archived

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

iamgod

Hooking Shutdown

This topic is 5798 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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!