SeSinglePrivilegeCheck
Windows Driver Kit: Kernel-Mode Driver Architecture
SeSinglePrivilegeCheck

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

BOOLEAN 
  SeSinglePrivilegeCheck(
    LUID  PrivilegeValue,
    KPROCESSOR_MODE  PreviousMode
    );

Parameters

PrivilegeValue
Specifies the LUID value of the privilege being checked.
PreviousMode
Specifies the previous execution mode, one of UserMode or KernelMode.

Return Value

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

Comments

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

IRQL: PASSIVE_LEVEL

Headers: Declared in ntddk.h. Include ntddk.h.

See Also

RtlConvertLongToLuid, RtlConvertUlongToLuid, RtlEqualLuid, SeValidSecurityDescriptor, LUID


Send feedback on this topic
Built on November 19, 2009
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View