// ntddk.h
BOOLEAN SeSinglePrivilegeCheck(
[in] LUID PrivilegeValue,
[in] KPROCESSOR_MODE PreviousMode
);
View the official Windows Driver Kit DDI reference
No description available.
The SeSinglePrivilegeCheck routine checks for the passed privilege value in the context of the current thread.
PrivilegeValue
[in]Specifies the LUID value of the privilege being checked.
PreviousMode
[in]Specifies the previous execution mode, one of UserMode or KernelMode.
SeSinglePrivilegeCheck returns TRUE if the current subject has the required privilege.
If PreviousMode is KernelMode, the privilege check always succeeds. Otherwise, this routine uses the token of the user-mode thread to determine whether the current (user-mode) thread has been granted the given privilege.