RtlAdjustPrivilege
C# Signature:
[DllImport("ntdll.dll", SetLastError = true)]
public static extern IntPtr RtlAdjustPrivilege(int Privilege, bool bEnablePrivilege,
bool IsThreadPrivilege, out bool PreviousValue);with Privilege enum
[DllImport("ntdll.dll", SetLastError = true)]
public static extern IntPtr RtlAdjustPrivilege(Privilege privilege, bool bEnablePrivilege,
bool IsThreadPrivilege, out bool PreviousValue);VB Signature:
<DllImport("ntdll.dll")>
Public Shared Function RtlAdjustPrivilege(ByVal Privilege As Integer, ByVal bEnablePrivilege As Boolean, ByVal IsThreadPrivilege As Boolean, <Out> ByRef PreviousValue As Boolean) As UInteger
End FunctionC/C++:
(
ULONG Privilege,
BOOLEAN Enable,
BOOLEAN CurrentThread,
PBOOLEAN EnabledC# Privilege enum : (added by Lufzys)
Última actualización