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

Windows: Detecting User logoff / shutdown 1

Status
Not open for further replies.

Adder

Programmer
Jun 6, 2002
1
AU
How do I capture Windows (2000) logoff / shutdown events ?
- need to clean-up some custom apps, if still open, when this occurs.

Is there an API function for this ?

Any help, pointers or 'Cunning plans' gratefully accepted.

Thanks.
 
Just look for the WM_QUERYENDSESSION and WM_ENDSESSION messages
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top