Пример #1
0
 private static extern bool LogonUser(String lpszUsername, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, out SafeTokenHandle phToken);
 private static extern int DuplicateToken(SafeTokenHandle hToken,
     int impersonationLevel,
     out SafeTokenHandle hNewToken);