public static string ValidateCredentials(string server, NetworkCredential credentials) { string fullUserName = Win32Utils.GetFullUserName(credentials); return(Win32Utils.ValidateCredentials(server, fullUserName, credentials.Password)); }
public static void NetCancelConnection(string server) { Win32Utils.WNetCancelConnection2(Win32Utils.GetWNetServerString(server), 0, true); }