Windows 2003 Server and Remote Desktop problems with WM_QUERYENDSESSION -
I'm facing a strange problem with the small app that was written to detect Windows shutters.
To connect to Remote Desktop Windows 2003 server, sometimes I get WM_QUERYENDSESSION with OPper = LPARM = 0 at the time of admission, which is my app shutdown request (as stated) And, as a result, its work, the problem is, I am actually entering, not shutting down the system or rebooting.
I think it is possible to do this with session management under Windows 2003 Server, as the same device performs quite well on Windows XP.
I tried to restrict remote access to up to 1 remote session per user, but it did not change the behavior.
Any sign on this?
I think this answer is too late for you and any kind of use , But the same problem for someone else's benefit: I have used the SetConsoleCtrlHandler function successfully in the past without such unexpected false positive which seems to be WM_QUERYENDSION, it may be worth a try.
Comments
Post a Comment