Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jan : Can I make my app the last to close?

www.cryer.info
Managed Newsgroup Archive

Can I make my app the last to close?

Subject:Can I make my app the last to close?
Posted by:"Pete" (petesouthwe..@hotmail.com)
Date:20 Jan 2006 04:46:12 -0700

Hi

I have a security app that is being closed down by users, who will initiate a shutdown while another program has data unsaved, most programs are closed, except for the message that says about unsaved data and offeres the option of cancelling. If they click cancel, they can continue using the system but my app has closed down.

I have seen posts that trap WMQueryEndSession and display a message, but I cant seem to work out how to simply use it to ensure my application is the last to close.

If anyone could shed light on this I would grateful.

Pete

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive