Re: TWAPI - how to register a callback to a Shutdown (or similar) event?



MartinLemburg@UGS wrote:
Perhabs I found the solution for my problem, not really needing twapi,
just by ...

wm protocol . WM_SAVE_YOURSELF

But ... is this event really supported?
Does this really solve it? It's mapped to the
Windows message WM_QUERYENDSESSION which all apps
receive. Any app's refusal means the system won't be shutting
down and the distribution of the message is stopped
after the first refusal.

Seems WM_ENDSESSION is the definitive Windows signal
that the app must exit with no option.
R

Thanks again!

Martin

On May 8, 10:59 am, "MartinLemburg@UGS" <martin.lemburg....@xxxxxxx>
wrote:
Hello,

I really would like to know, if and how it is possible using TWAPI to
register a callback for a Shutdown, LogOff, etc. event!

Can somebody help me?

Thanks and best regards,

Martin


.