WINSTATIONUSERTOKEN - NtDoc

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

/**
 * The WINSTATIONUSERTOKEN structure retrieves the user's token for the session.
 *
 * \remarks Caller requires WINSTATION_ALL_ACCESS permission.
 * \sa https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tsts/07f9831c-6331-43e5-ba27-d3d58772eb4c
 */
typedef struct _WINSTATIONUSERTOKEN
{
    HANDLE ProcessId;   // Specifies the Process ID.
    HANDLE ThreadId;    // Specifies the calling thread.
    HANDLE UserToken;   // Returns the user token that is currently logged on to the session.
} WINSTATIONUSERTOKEN, *PWINSTATIONUSERTOKEN;

#endif

View code on GitHub

NtDoc

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