Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 2.55 KB

nf-ntddk-sesingleprivilegecheck.md

File metadata and controls

89 lines (60 loc) · 2.55 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntddk.SeSinglePrivilegeCheck
SeSinglePrivilegeCheck function (ntddk.h)
The SeSinglePrivilegeCheck routine checks for the passed privilege value in the context of the current thread.
kernel\sesingleprivilegecheck.htm
kernel
04/30/2018
SeSinglePrivilegeCheck function
SeSinglePrivilegeCheck, SeSinglePrivilegeCheck routine [Kernel-Mode Driver Architecture], k110_ee767278-7c5f-4dcd-b328-e9219b453a84.xml, kernel.sesingleprivilegecheck, ntddk/SeSinglePrivilegeCheck
ntddk.h
Ntddk.h
Universal
Available in Windows 2000 and later versions of Windows.
PowerIrpDDis, HwStorPortProhibitedDDIs
NtosKrnl.lib
NtosKrnl.exe
PASSIVE_LEVEL
Windows
SeSinglePrivilegeCheck
ntddk/SeSinglePrivilegeCheck
APIRef
kbSyntax
DllExport
NtosKrnl.exe
SeSinglePrivilegeCheck

SeSinglePrivilegeCheck function

-description

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

-parameters

-param PrivilegeValue [in]

Specifies the LUID value of the privilege being checked.

-param PreviousMode [in]

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

-returns

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