Пример #1
0
 public static extern int DuplicateToken(SafeUserToken hToken,
                                         int impersonationLevel,
                                         ref SafeUserToken hNewToken);
Пример #2
0
 public static extern int LogonUserA(String lpszUserName,
                                     String lpszDomain,
                                     String lpszPassword,
                                     int dwLogonType,
                                     int dwLogonProvider,
                                     ref SafeUserToken phToken);