IMPORTANT: Returns a WindowsImpersonationContext and you have to either dispose this instance or call RevertImpersonation with it.
public static WindowsImpersonationContext ImpersonateUser(string username, string password, string domain);
password
domain