win32wnet.WNetAddConnection2
WNetAddConnection2(NetResource, Password, UserName, Flags)
Creates a connection to a network resource. The function can redirect
a local device to the network resource.
Parameters
NetResource : PyNETRESOURCE
Describes the network resource for the connection.Password=None : str
The password to use. Use None for default credentials.
UserName=None : str
The user name to connect as. Use None for default
credentials.
Flags=0 : int
Combination win32netcon.CONNECT_* flags
Comments
This function also accepts backwards-compatible, positional-only
arguments of (dwType, lpLocalName, lpRemoteName[, lpProviderName, Username, Password, flags])
Accepts keyword arguments.
Win32 API References
Search for WNetAddConnection2 at msdn, google or google groups.