Desktop Functions: Smart Device Functions:
|
RtlAdjustPrivilege (ntdll)
C# Signature:
[DllImport("ntdll.dll", SetLastError = true)] VB Signature:
Declare Function RtlAdjustPrivilege Lib "ntdll.dll" (TODO) As TODO C++:NTSTATUS RtlAdjustPrivilege
( ) DESCRIPTION:Enables or disables a privilege from the calling thread or process. Params:Privilege In Privilege index to change. Enable In If TRUE, then enable the privilege otherwise disable. CurrentThread In If TRUE, then enable in calling thread, otherwise process. Enabled Out Whether privilege was previously enabled or disabled. Returns:User-Defined Types:None. Alternative Managed API:Do you know one? Please contribute it! Notes:SeAssignPrimaryTokenPrivilege = 2 SeUnsolicitedInputPrivilege = 5 SeTcbPrivilege = 7 SeProfileSingleProcessPrivilege = 13 SeIncreaseBasePriorityPrivilege = 14 SeCreatePagefilePrivilege = 15 SeCreatePermanentPrivilege = 16 SeBackupPrivilege = 17 SeRestorePrivilege = 18 SeShutdownPrivilege = 19 SeDebugPrivilege = 20 SeAuditPrivilege = 21 SeSystemEnvironmentPrivilege = 22 SeRemoteShutdownPrivilege = 24 SeUndockPrivilege = 25 SeSyncAgentPrivilege = 26 SeEnableDelegationPrivilege = 27 SeTrustedCredManAccessPrivilege = 31 SeRelabelPrivilege = 32 SeIncreaseWorkingSetPrivilege = 33 SeTimeZonePrivilege = 34 SeCreateSymbolicLinkPrivilege = 35 Tips & Tricks:Please add some! Sample Code:Please add some! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|