API to capture Login event
-
Dear all, I am developing an application using MFC VC++ Version 6.0 for Windows 2000. I need to capture login and log off event in my application. Is there any event (or API) to capture these events Thanks rohit:-O
-
Dear all, I am developing an application using MFC VC++ Version 6.0 for Windows 2000. I need to capture login and log off event in my application. Is there any event (or API) to capture these events Thanks rohit:-O
If your application is an ordinary application, it will be terminated when the user logs off, because Windows tears down the session. Windows sends a
WM_QUERYENDSESSION
message, followed by aWM_ENDSESSION
message, when the user logs off or shuts down the system. See the documentation for the exact semantics. If you're trying to handle user switches on Windows XP, see the KB article HOW TO: Write an Application That Supports Fast User Switching in Windows XP[^]. (edited for formatting) -
If your application is an ordinary application, it will be terminated when the user logs off, because Windows tears down the session. Windows sends a
WM_QUERYENDSESSION
message, followed by aWM_ENDSESSION
message, when the user logs off or shuts down the system. See the documentation for the exact semantics. If you're trying to handle user switches on Windows XP, see the KB article HOW TO: Write an Application That Supports Fast User Switching in Windows XP[^]. (edited for formatting)Thanks mike you solved my purpose:-O