Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

App to run on shutdown

Status
Not open for further replies.

BobTheMad

Programmer
Jun 11, 1999
81
US
What is the best way to have an application set up so that it automatically executes upon user logoff or system shutdown?

Thanks!

Thought for the day: Beware of Gods who cannot laugh...
 
I'm not sure how successful this would be -- during the logoff/shutdown process, Windows is busy killing processes. If you try and start a new one, I suspect it will be spectacularly unreliable -- some days it will run to completion, other days Windows will kill it before it's done.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
What you can try to do is get the shutdown button hwnd and then the mouse gets over it the execute your app, or in the shutdown dialog, but as chiph said windows is killing processes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top