C# Class ExtremeMirror.PinvokeWindowsNetworking

Show file Open project: nefarius/TrueMount-3

Public Methods

Method 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

Method 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 method

public static connectToRemote ( string remoteUNC, string username, string password ) : string
remoteUNC string
username string
password string
return string

connectToRemote() public static method

public static connectToRemote ( string remoteUNC, string username, string password, bool promptUser ) : string
remoteUNC string
username string
password string
promptUser bool
return string

disconnectRemote() public static method

public static disconnectRemote ( string remoteUNC ) : string
remoteUNC string
return string