SeSinglePrivilegeCheck routine

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

Syntax


BOOLEAN SeSinglePrivilegeCheck(
  _In_  LUID PrivilegeValue,
  _In_  KPROCESSOR_MODE PreviousMode
);

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.

Requirements

Version

Available in Windows 2000 and later versions of Windows.

Header

Ntddk.h (include Ntddk.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

DDI compliance rules

PowerIrpDDis, HwStorPortProhibitedDDIs

See also

RtlConvertLongToLuid
RtlConvertUlongToLuid
RtlEqualLuid
SeValidSecurityDescriptor
LUID

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft