I have an MFC dialog based application. Please anyone tell me how to capture the Switch user(windows logged in user) event from this MFC program.
I tried to capture the WM_QUERYENDSESSION from the Dialog's WindowProc function and I could able to capture the Shutdown, Restart and log off events using WM_QUERYENDSESSION. But the "Switch user" event is not getting called with WM_QUERYENDSESSION.
Any help is much appreciated.