Thank's.
You can handle WM_QUERYENDSESSION which will fire when the system is
shutting down. Are you looking for this information?
Sreeram
O Yes! Thank's!
I mast write like this?
...
case WM_QUERYENDSESSION:
CreateThread ( ......SomeShutDownProc....);
retrun FALSE;
....
SomeShutDownProc(){
........
ExitWindows();
};
"Sreeram" <sreer...@netscape.net> wrote in message
news:3F431075...@netscape.net...
You can write code in OnQueryEndSession fn. which is the message map for
WM_QUERYENDSESSION. This message will fire when the windows is
shutting down or logg of. You don't have to call ExitWindows again.
Sreeram
I can write code that may take long execution times. In this case OSwindows
may show window "Programm not responding" and this is bad. What can I do in
this case?
Thank's
"Sreeram" <sreer...@netscape.net> wrote in message
news:3F4351CA...@netscape.net...
All you can do is refuse the shutdown, process your function, and the
restart the shutdown process. This, by the way, introduces a problem with
knowing exactly what type of shutdown was in progress.
--
-GJC
-Software Consultant (Embedded systems and Real Time Controls)
-gcha...@mvps.org
-Abolish public schools
"Gary Chanson" <gcha...@NOSPAM.TheWorld.com> wrote in message
news:#DE5yj0Z...@tk2msftngp13.phx.gbl...
Let your main thread process windows messages, and create another thread
for your long-running-function.
Also TOP-POSTING IS BAD in the news group communities!
--
BTW, I use WebMailSelector because I have many email addresses.
I recommend it. It is available at http://www.mselector.com