コード例 #1
0
        public static string ValidateCredentials(string server, NetworkCredential credentials)
        {
            string fullUserName = Win32Utils.GetFullUserName(credentials);

            return(Win32Utils.ValidateCredentials(server, fullUserName, credentials.Password));
        }
コード例 #2
0
 public static void NetCancelConnection(string server)
 {
     Win32Utils.WNetCancelConnection2(Win32Utils.GetWNetServerString(server), 0, true);
 }