Page 1 of 1

Intercept WM_QUERYENDSESSION to ensure proper mls shutdown

Posted: Mon Dec 30, 2013 1:44 pm
by jwizardc
Hi!

We have a Ward in our Stake that constantly crashes their MLS. Most of their members are not computer savvy and I am reasonably certain that they are shutting down windows without closing MLS.

If MLS were to intercept WM_QUERYENDSESSION as described Here it would be able to gracefully shut down before allowing windows to terminate it (with Extreme Prejudice).

Yes, I know the method described is C#, but I'm sure Java has a similar hook.

Thanks!

Re: Intercept WM_QUERYENDSESSION to ensure proper mls shutdo

Posted: Mon Dec 30, 2013 1:59 pm
by russellhltn
jwizardc wrote:I am reasonably certain that they are shutting down windows without closing MLS.
I had a ward with a similar problem. I ended up posting shutdown instructions on the edge of the monitor. The problems stopped. I suspect they were turning off the power bar before Windows completed the shutdown.