SharpCifs.Smb.SmbSession.Logon C# (CSharp) Method

Logon() public static method

public static Logon ( UniAddress dc, int port, NtlmPasswordAuthentication auth ) : void
dc UniAddress
port int
auth NtlmPasswordAuthentication
return void
		public static void Logon(UniAddress dc, int port, NtlmPasswordAuthentication auth
			)
		{
			SmbTree tree = SmbTransport.GetSmbTransport(dc, port).GetSmbSession(auth).GetSmbTree
				(LogonShare, null);
			if (LogonShare == null)
			{
				tree.TreeConnect(null, null);
			}
			else
			{
				Trans2FindFirst2 req = new Trans2FindFirst2("\\", "*", SmbFile.AttrDirectory);
				Trans2FindFirst2Response resp = new Trans2FindFirst2Response();
				tree.Send(req, resp);
			}
		}

Same methods

SmbSession::Logon ( UniAddress dc, NtlmPasswordAuthentication auth ) : void