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
Comments
This function also accepts backwards-compatible, positional-only arguments of (dwType, lpLocalName, lpRemoteName[, lpProviderName, Username, Password, flags])Accepts keyword arguments.
Win32 API References