Go to the source code of this file.
◆ GetProcessToken()
Definition at line 12 of file NtAdjustGroupsToken.c.
14{
17
20 {
21 skip(
"Failed to open the process' token (error code: %lu)!\n",
GetLastError());
23 }
24
26}
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
#define GetCurrentProcess()
DWORD WINAPI GetLastError(void)
Referenced by START_TEST().
◆ START_TEST()
Definition at line 28 of file NtAdjustGroupsToken.c.
29{
32
33
35
36
40 0,
44
45
49 0,
53
54
57
58
62 0,
66
67
71 0,
75
77}
static HANDLE GetProcessToken(_In_ DWORD Access)
#define ok_hex(expression, result)
#define STATUS_INVALID_HANDLE
_In_ ACCESS_MASK _In_ ULONG _Out_ PHANDLE TokenHandle
NTSTATUS NTAPI NtAdjustGroupsToken(_In_ HANDLE TokenHandle, _In_ BOOLEAN ResetToDefault, _In_ PTOKEN_GROUPS NewState, _In_ ULONG BufferLength, _Out_writes_bytes_to_opt_(BufferLength, *ReturnLength) PTOKEN_GROUPS PreviousState, _When_(PreviousState !=NULL, _Out_) PULONG ReturnLength)
Changes the list of groups by enabling or disabling them in an access token. Unlike NtAdjustPrivilege...
#define STATUS_ACCESS_DENIED
#define STATUS_INVALID_PARAMETER
#define TOKEN_ADJUST_GROUPS