WINSTATIONINFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _WINSTA_H

/**
 * The WINSTATIONINFORMATION structure retrieves the state, connect time, last input time, and so on, for a session.
 *
 * \sa https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tsts/c2566d8b-7016-440b-b7e0-0d07c3b2418f
 */
typedef struct _WINSTATIONINFORMATION
{
    WINSTATIONSTATECLASS ConnectState;      // The current connect state of the session.
    WINSTATIONNAME WinStationName;          // The name of the session.
    ULONG LogonId;                          // The session identifier of the session.
    LARGE_INTEGER ConnectTime;              // The time of the most recent connection to the session.
    LARGE_INTEGER DisconnectTime;           // The time of the most recent disconnection from the session.
    LARGE_INTEGER LastInputTime;            // The time the session last received input.
    LARGE_INTEGER LogonTime;                // The time of the logon to the session.
    PROTOCOLSTATUS Status;                  // The status of the protocol.
    WCHAR Domain[DOMAIN_LENGTH + 1];        // The user's domain name.
    WCHAR UserName[USERNAME_LENGTH + 1];    // The user's user name.
    LARGE_INTEGER CurrentTime;              // The current time in the session.
} WINSTATIONINFORMATION, *PWINSTATIONINFORMATION;

#endif

View code on GitHub

NtDoc

This type is documented in the [MS-TSTS] specification.