views:

114

answers:

1

Hi there,

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.

+2  A: 

I think you want to look at the WM_WTSSESSION_CHANGE message.

Zach Hirsch