public static extern int DuplicateToken(SafeUserToken hToken, int impersonationLevel, ref SafeUserToken hNewToken);
public static extern int LogonUserA(String lpszUserName, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, ref SafeUserToken phToken);