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, 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 |
|
|
|
|
|
The SeSinglePrivilegeCheck routine checks for the passed privilege value in the context of the current thread.
Specifies the LUID value of the privilege being checked.
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.