2.2.2.8 PLSMSESSIONINFORMATION

PLSMSESSIONINFORMATION is a pointer to a LSMSESSIONINFORMATION structure containing information about a session running on a terminal server.

 typedef struct _LSMSessionInformation {
   [string] WCHAR* pszUserName;
   [string] WCHAR* pszDomain;
   [string] WCHAR* pszTerminalName;
   LONG SessionState;
   BOOL DesktopLocked;
   hyper ConnectTime;
   hyper DisconnectTime;
   hyper LogonTime;
 } LSMSESSIONINFORMATION,
  *PLSMSESSIONINFORMATION;

pszUserName: The name of the user logged on to the session.

pszDomain: The domain to which the currently logged-on user belongs.

pszTerminalName: The name of the terminal associated with the specific session.

SessionState: The state of the session, as described in section 3.3.4.1.8.

DesktopLocked: Set to TRUE if the session is currently locked; FALSE otherwise.

ConnectTime: The time of the most recent connection to the session.

Time is measured as the number of 100-nanosecond intervals since January 1, 1601 (UTC).

DisconnectTime: The time of the most recent disconnection from the session.

Time is measured as the number of 100-nanosecond intervals since January 1, 1601 (UTC).

LogonTime: The time of the most recent logon to the session.

Time is measured as the number of 100-nanosecond intervals since January 1, 1601 (UTC).