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

Reply

Join Date: Aug 2004
Posts: 140
Reputation: Mahen is an unknown quantity at this point 
Solved Threads: 2
Mahen Mahen is offline Offline
Junior Poster

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

 
0
  #1
Oct 7th, 2005
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.
Want a new website for free:
http://indigo.kjots.com/
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 164
Reputation: Stoned_coder is an unknown quantity at this point 
Solved Threads: 5
Stoned_coder Stoned_coder is offline Offline
Junior Poster

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

 
0
  #2
Oct 7th, 2005
look up....
WM_QUERYENDSESSION
WM_ENDSESSION
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC