Find active user under Fast User Switching

Can anyone tell me the best way for a service to find the current active user under fast user switching. The method should work under W2K as well as XP so WTSQueryUserToken is no good. I'm developing with c#.NET 2.0.

Answer this question

Find active user under Fast User Switching

  • TJM_VIP

    Ooops, you're right. Nevertheless, I would still like to know the best way of doing this under XP. Also, even if W2K doesn't have fast user switching, it still has a logged-on user and I need to know how a service would find this. Unfortunately, of course, now that you've replied to my post, everyone else sees that it has been replied to and doesn't bother looking at it.
  • jam281

    Fast User Switching was introduced in Windows XP, wasn't it So what do you mean it should work under Windows 2000



  • Find active user under Fast User Switching