win32ts.WTSEnumerateSessions
(dict,...) = WTSEnumerateSessions(Server, Version , Reserved )
Lists sessions on a server
Parameters
Return Value
Returns a sequence of dictionaries representing WTS_SESSION_INFO structs, containing {SessionId:int, WinStationName:str, State:int}