win32net.NetSessionGetInfo
dict = NetSessionGetInfo(level, server
, client
, username
)
Returns information for a network session from specified client
Parameters
level : int
Level of information requested, currently accepts 0, 1, 2, 10, and 502server : string/PyUnicode
The name of the server on which to operate, None or blank assumes local
machineclient : string/PyUnicode
Name of client computerusername : string/PyUnicode
User that established sessionReturn Value
Returns a dictionary representing a SESSION_INFO_* struct, depending on level specified