Esempio n. 1
0
 public int UseConnection(IntPtr hwndOwner, WindowsNetworkFileShare.NetResource netResource, string password, string username, int flags, string lpAccessName, string lpBufferSize, string lpResult)
 {
     _networkpath = netResource.RemoteName;
     _username    = username;
     _password    = password;
     if (_shouldConnect)
     {
         return(0);
     }
     else
     {
         // throw "bad device" error
         return(1200);
     }
 }
Esempio n. 2
0
 public int AddConnection(WindowsNetworkFileShare.NetResource netResource, string password, string username, int flags)
 {
     throw new NotImplementedException();
 }