Undocumented functions of NTDLL

2OO1, 9 February


NtAdjustPrivilegesToken
NtAdjustPrivilegesToken

NTSYSAPI 
NTSTATUS
NTAPI

NtAdjustPrivilegesToken(
IN HANDLE TokenHandle, IN BOOLEAN DisableAllPrivileges, IN PTOKEN_PRIVILEGES TokenPrivileges, IN ULONG PreviousPrivilegesLength, OUT PTOKEN_PRIVILEGES PreviousPrivileges OPTIONAL, OUT PULONG RequiredLength OPTIONAL );



Function NtAdjustPrivilegesToken is used to modify state of avaiable token's privileges, and it's descripted also in Microsoft SDK help as AdjustTokenPrivileges.



Requirements:
Library: ntdll.lib


See also:
NtAdjustGroupsToken
NtCreateToken
NtOpenProcessToken
NtOpenThreadToken
NtPrivilegeCheck
NtQueryInformationToken
TOKEN_PRIVILEGES