943,990 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1975
  • C RSS
Oct 7th, 2005
0

How to make my program detecct when the computer is going to LOGOFF or SHUTDOWN

Expand Post »
am currently building a program that runs as a background process, but due to the loops inside it, Windows fails to Close it when it goes into either shutdown or LOGOFF mode. It is a GUI program that uses WINMAIN but without a GUI interface. Can you tell me how to make the program detect when the computer is going to shutdown so that it can terminate imediately.
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster
Mahen is offline Offline
144 posts
since Aug 2004
Oct 7th, 2005
0

Re: How to make my program detecct when the computer is going to LOGOFF or SHUTDOWN

look up....
WM_QUERYENDSESSION
WM_ENDSESSION
Reputation Points: 19
Solved Threads: 5
Junior Poster
Stoned_coder is offline Offline
164 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: C program please help
Next Thread in C Forum Timeline: intercepting functions with a variable argument list





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC