How do I detect the 2 states of “Switch User” in Windows
问题 I'm wondering if anyone has had any experience with the API that gives you the possibility to detect the "Switch User" process under Windows XP. I would like to know how I could detect that a user exits his account and when he re-enters it. Thanks. 回答1: I think you want to look at the WM_WTSSESSION_CHANGE message. 来源: https://stackoverflow.com/questions/416313/how-do-i-detect-the-2-states-of-switch-user-in-windows