C# Class ExtremeMirror.PinvokeWindowsNetworking

Afficher le fichier Open project: nefarius/TrueMount-3

Méthodes publiques

Méthode Description
connectToRemote ( string remoteUNC, string username, string password ) : string
connectToRemote ( string remoteUNC, string username, string password, bool promptUser ) : string
disconnectRemote ( string remoteUNC ) : string

Private Methods

Méthode Description
WNetCancelConnection2 ( string lpName, int dwFlags, bool fForce ) : int
WNetUseConnection ( IntPtr hwndOwner, NETRESOURCE lpNetResource, string lpPassword, string lpUserID, int dwFlags, string lpAccessName, string lpBufferSize, string lpResult ) : int
getErrorForNumber ( int errNum ) : string

Method Details

connectToRemote() public static méthode

public static connectToRemote ( string remoteUNC, string username, string password ) : string
remoteUNC string
username string
password string
Résultat string

connectToRemote() public static méthode

public static connectToRemote ( string remoteUNC, string username, string password, bool promptUser ) : string
remoteUNC string
username string
password string
promptUser bool
Résultat string

disconnectRemote() public static méthode

public static disconnectRemote ( string remoteUNC ) : string
remoteUNC string
Résultat string