C# Class Medusa.Common.SharedTool

Datei anzeigen Open project: fjz13/Medusa Class Usage Examples

Public Methods

Method Description
Connect ( string remotePath, string localPath, string username, string password ) : int
Disconnect ( string localpath ) : int
ReadSharedText ( FileInfo remotePath ) : string
TestNetWorkConnection ( ) : void

Private Methods

Method Description
IsDriveReady ( string serverName ) : bool
NetShareCheck ( [ ServerName, [ Device, long &Type ) : int
WNetAddConnection2A ( NETRESOURCE lpNetResource, string lpPassword, string lpUserName, int dwFlags ) : int
WNetCancelConnection2A ( string sharename, int dwFlags, int fForce ) : int

Method Details

Connect() public static method

public static Connect ( string remotePath, string localPath, string username, string password ) : int
remotePath string
localPath string
username string
password string
return int

Disconnect() public static method

public static Disconnect ( string localpath ) : int
localpath string
return int

ReadSharedText() public static method

public static ReadSharedText ( FileInfo remotePath ) : string
remotePath System.IO.FileInfo
return string

TestNetWorkConnection() public static method

public static TestNetWorkConnection ( ) : void
return void