PROCESS_ACCESS_TOKEN - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPSAPI_H
// Process information structures
#if (PHNT_MODE != PHNT_MODE_KERNEL)

typedef struct _PROCESS_ACCESS_TOKEN
{
    HANDLE Token; // needs TOKEN_ASSIGN_PRIMARY access
    HANDLE Thread; // handle to initial/only thread; needs THREAD_QUERY_INFORMATION access
} PROCESS_ACCESS_TOKEN, *PPROCESS_ACCESS_TOKEN;

#endif
#endif

View code on GitHub

This structure defines a request to change the primary token of the process.

Applicable to

Members

Token

A handle to a primary token to use. The handle must grant TOKEN_ASSIGN_PRIMARY access.

Thread

This field is currently unused.