SeSinglePrivilegeCheck - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

BOOLEAN SeSinglePrivilegeCheck(
  [in] LUID            PrivilegeValue,
  [in] KPROCESSOR_MODE PreviousMode
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-sesingleprivilegecheck)

SeSinglePrivilegeCheck function

Description

The SeSinglePrivilegeCheck routine checks for the passed privilege value in the context of the current thread.

Parameters

PrivilegeValue [in]

Specifies the LUID value of the privilege being checked.

PreviousMode [in]

Specifies the previous execution mode, one of UserMode or KernelMode.

Return value

SeSinglePrivilegeCheck returns TRUE if the current subject has the required privilege.

Remarks

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.

See also

LUID

RtlConvertLongToLuid

RtlConvertUlongToLuid

RtlEqualLuid

SeValidSecurityDescriptor