Example #1
0
        public static void ConnectServer(string serverUrl, string localMappingDrive, string userName, string password)
        {
            int status = SambaShareServerHelper.Connect(serverUrl, localMappingDrive, userName, password);

            if (status != (int)ERROR_ID.ERROR_SUCCESS)
            {
                throw new Exception("Can not connect to the share server.");
            }
        }
Example #2
0
 public static void DisconnectServer(string localMappingDrive)
 {
     SambaShareServerHelper.Disconnect(localMappingDrive);
 }