2OO1, 9 February
NtPrivilegeCheck
NtPrivilegeCheck
NTSYSAPI
NTSTATUS
NTAPI
NtPrivilegeCheck(
IN HANDLE TokenHandle,
IN PPRIVILEGE_SET RequiredPrivileges,
IN PBOOLEAN Result );
Function NtPrivilegeCheck is used to check state of
any privileges in Token Object. It's also descripted in
Microsoft SDK as PrivilegeCheck.
- TokenHandle HANDLE to Token
Object opened with TOKEN_QUERY access.
- RequiredPrivileges Pointer to PRIVILEGE_SET structure contains
definitions of privileges to check.
- Result Result of call - pointer to
BOOLEAN value containing TRUE is all asked privileges
are enabled.
- Documented by:
- Tomasz Nowak
Requirements:
- Library: ntdll.lib
See also:
-
NtAdjustPrivilegesToken
- NtCreateToken
-
NtOpenProcessToken
-
NtOpenThreadToken
- PRIVILEGE_SET