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
I believe you'll need to use P/Invoke to retrieve this information.
The relevant APIs are documented in this MSDN page.