#ifndef _NTPSAPI_H
#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;
View code on GitHub
This structure defines a request to change the primary token of the process.
NtSetInformationProcess
with ProcessAccessToken
(9)A handle to a primary token to use. The handle must grant TOKEN_ASSIGN_PRIMARY
access.
This field is currently unused.