A, WNetAddConnection2Afunction ulong WNetAddConnection2A (ref s_netresource lpNetResource, String lpPassword, String lpUserName, long dwFlags) library "mpr.dll" Alias for "WNetAddConnection2A" Description: VB declaration Declare Function WNetAddConnection2 Lib "mpr.dll" Alias "WNetAddConnection2A" (lpNetResource As NetResource, Byval LPPassword As String, ByVal LPUSERNAME AS STRING > 0 indicates that the failure parameter table parameter type and the description of LpNetResource sets the following fields in this structure, defines the network resources to be connected: DWTYPE, LPLOCALNAME (can vbnullstring), LPREMOTENAME, LPPROVIDER (set to vbnullstring means default provider). All other variables of this structure are ignored by LPpassword String, optional passwords. As for vbnullstring, it means the default password of the current user. Such as a empty string, no password lpusername string, the username used to connect. Such as vbnullstring, indicating using the current user dwflags long, set to zero; or specify constant connection_update_profile, indicating that a permanent connection is created