Click or drag to resize

DriveConnection Constructor (String, String, String, Boolean)

Creates a temporary connection to a network resource. The function can redirect a local device to a network resource, using a user name and password.

Namespace:  Alphaleonis.Win32.Network
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public DriveConnection(
	string remoteName,
	string userName,
	string password,
	bool prompt
)

Parameters

remoteName
Type: SystemString
The network resource to connect to. The string can be up to MAX_PATH characters in length.
userName
Type: SystemString
The user name for making the connection. If userName is , the function uses the default user name. (The user context for the process provides the default user name)
password
Type: SystemString
The password to be used for making the network connection. If password is , the function uses the current default password associated with the user specified by userName.
prompt
Type: SystemBoolean
always pops-up an authentication dialog box.
See Also