Following list compiled by extraction from Platform SDK section on "Terminal Services API Structures".
Comments inline are primarily derived from the SDK documentation.
Public Type WTS_CLIENT_NAME TNAME As String * 10 End Type Public Type WTS_CLIENT_INFO CINFO As String * 20 End Type Public Type WTS_CLIENT_DISPLAY HorizontalResolution As Long ' horizontal dimensions, in pixels VerticalResolution As Long ' vertical dimensions, in pixels ColorDepth As Long ' see Color Constants above (AKA) End Type Public Type WTS_CLIENT_ADDRESS ADDRESSFAMILY As Long ' Address family. This member can be AF_INET, AF_IPX, AF_NETBIOS, or AF_UNSPEC ADDRESS(20) As Byte ' Client network address End Type Public Type WTS_PROCESS_INFO SessionID As Long ' session id ProcessId As Long ' process id pProcessName As String ' name of process pUserSid As Variant ' user's SID End Type Public Type WTS_SESSION_INFO SessionID As Long pWinStationName As Long state As WTS_CONNECTSTATE_CLASS End Type Public Type WTS_SESSION_QUERY SessionID As Long pWinStationName As Long senum As WTS_INFO_CLASS ' Need to add Info for this class End Type