Esempio n. 1
0
 private static extern Boolean AdjustTokenPrivileges(SafeTokenHandle TokenHandle,
     Boolean DisableAllPrivileges, [In] ref TOKEN_PRIVILEGE NewState, UInt32 BufferLength,
     [In, Out] ref TOKEN_PRIVILEGE PreviousState, [In, Out] ref uint ReturnLength);
Esempio n. 2
0
 internal static extern Boolean DuplicateTokenEx(SafeTokenHandle ExistingToken, 
    TokenAccessLevels DesiredAccess, IntPtr TokenAttributes, 
    SecurityImpersonationLevel ImpersonationLevel, TokenType TokenType,
    [In, Out] ref SafeTokenHandle NewToken);
Esempio n. 3
0
 internal static extern Boolean SetThreadToken(IntPtr Thread, SafeTokenHandle Token);
Esempio n. 4
0
 private static extern Boolean AdjustTokenPrivileges(SafeTokenHandle TokenHandle,
                                                     Boolean DisableAllPrivileges, [In] ref TOKEN_PRIVILEGE NewState, UInt32 BufferLength,
                                                     [In, Out] ref TOKEN_PRIVILEGE PreviousState, [In, Out] ref uint ReturnLength);
Esempio n. 5
0
 internal static extern Boolean SetThreadToken(IntPtr Thread, SafeTokenHandle Token);
Esempio n. 6
0
 internal static extern Boolean DuplicateTokenEx(SafeTokenHandle ExistingToken,
                                                 TokenAccessLevels DesiredAccess, IntPtr TokenAttributes,
                                                 SecurityImpersonationLevel ImpersonationLevel, TokenType TokenType,
                                                 [In, Out] ref SafeTokenHandle NewToken);
Esempio n. 7
0
 internal static extern Boolean OpenThreadToken(IntPtr ThreadToken, TokenAccessLevels DesiredAccess,
                                                Boolean OpenAsSelf, [In, Out] ref SafeTokenHandle TokenHandle);
Esempio n. 8
0
 internal static extern Boolean OpenProcessToken(IntPtr ProcessToken,
                                                 TokenAccessLevels DesiredAccess, [In, Out] ref SafeTokenHandle TokenHandle);