How to get a list of Windows sessions?

前端 未结 5 1996
栀梦
栀梦 2021-01-02 15:03

I am trying to find a way to get a list of Windows sessions? I need the same information as the one displayed in the Task Manager on the User tab. I need to know if the user

5条回答
  •  感情败类
    2021-01-02 15:12

    I believe you'll need to use P/Invoke to retrieve this information.

    The relevant APIs are documented in this MSDN page.

提交回复
热议问题