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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When u log off or shutdown

Status
Not open for further replies.

UnfitElf

Programmer
Dec 3, 2002
24
NZ
Hi people,

I have a progrm that writes all its settings to the registry when the user closes the application.. what ive noticed is happening though is when the user logges off without closing the application nothing is written to the registry. Obiviously somehow windows is closing the app but its not recieving a WM_DESTROY message...

How does Windows close applications and how can i write my stuff to the registry before windows closes it???

Thank
 
Such as in Windows XP if a user logs off the programs do not have to close. They continue running until the system is shutdown. Im not sure exactly how this works though i have had issues because of this in the past where a user logs off, and it just acts like the user has changed users.
 
Thanks for the replys, i have since found the solutution:

WM_ENDSESSION

Thanks again :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top