| | |
How to make my program detecct when the computer is going to LOGOFF or SHUTDOWN
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2004
Posts: 140
Reputation:
Solved Threads: 2
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/
http://indigo.kjots.com/
•
•
Join Date: Jul 2005
Posts: 164
Reputation:
Solved Threads: 5
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
WM_QUERYENDSESSION
WM_ENDSESSION
![]() |
Similar Threads
- Remote Computer Shutdown (Windows NT / 2000 / XP)
- Make a VB Program run in the background? (VB.NET)
- Make my own IM program and MySpace Clone. (PHP)
- Can I make my C program understand that a key has been pressed? (C++)
- need help with java program (Java)
- how can i make the program depend on time (C)
Other Threads in the C Forum
- Previous Thread: C program please help
- Next Thread: intercepting functions with a variable argument list
Views: 1541 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays asterisks binarysearch calculate centimeter char command convert copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax directory dynamic executable fflush file fork forloop frequency getlasterror givemetehcodez graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators infiniteloop kernel km lazy linked linkedlist linux linuxsegmentationfault list lists locate logical_drives match matrix microsoft motherboard multi mysql number open opendocumentformat opensource owf pattern pdf performance pointer pointers posix problem probleminc program programming radix recursion recv repetition research scanf scheduling scripting segmentationfault send sequential shape socketprograming spoonfeeding stack standard string strings structures student systemcall testautomation turboc unix user variable voidmain() wab win32 windows.h





