Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ordering WM_QUERYENDSESSION messages

31 views
Skip to first unread message

Glenn

unread,
Jan 27, 2007, 10:49:06 AM1/27/07
to
Hello

Is there any way to make an application get the WM_QUERYENDSESSION
message at reboot/logoff/shutdown before an other?does windows have a
defined order it shuts down processes?

I have an application designed to intercept shutdown calls before an
other application receives it , is there any way i can make sure my
application gets the WM_QUERYENDSESSION message first?

thanks

Grzegorz Wróbel

unread,
Jan 27, 2007, 12:14:49 PM1/27/07
to

You can install global hook and simply not pass this message to any
other application than yours.

--
Grzegorz Wróbel
http://www.4neurons.com/
677265676F727940346E6575726F6E732E636F6D

Sten Westerback (MVP SDK)

unread,
Jan 29, 2007, 4:27:17 AM1/29/07
to

"Glenn" <glenn....@bt.com> wrote in message
news:1169912946....@l53g2000cwa.googlegroups.com...

Use SetProcessShutdownParameters()

- Sten


0 new messages