示例#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);
示例#2
0
 internal static extern Boolean DuplicateTokenEx(SafeTokenHandle ExistingToken, 
    TokenAccessLevels DesiredAccess, IntPtr TokenAttributes, 
    SecurityImpersonationLevel ImpersonationLevel, TokenType TokenType,
    [In, Out] ref SafeTokenHandle NewToken);
示例#3
0
 internal static extern Boolean SetThreadToken(IntPtr Thread, SafeTokenHandle Token);
示例#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);
示例#5
0
 internal static extern Boolean SetThreadToken(IntPtr Thread, SafeTokenHandle Token);
示例#6
0
 internal static extern Boolean DuplicateTokenEx(SafeTokenHandle ExistingToken,
                                                 TokenAccessLevels DesiredAccess, IntPtr TokenAttributes,
                                                 SecurityImpersonationLevel ImpersonationLevel, TokenType TokenType,
                                                 [In, Out] ref SafeTokenHandle NewToken);
示例#7
0
 internal static extern Boolean OpenThreadToken(IntPtr ThreadToken, TokenAccessLevels DesiredAccess,
                                                Boolean OpenAsSelf, [In, Out] ref SafeTokenHandle TokenHandle);
示例#8
0
 internal static extern Boolean OpenProcessToken(IntPtr ProcessToken,
                                                 TokenAccessLevels DesiredAccess, [In, Out] ref SafeTokenHandle TokenHandle);