Use PB to call API automatic update (non-FTP mode) (two, API descriptions and definitions (1))

xiaoxiao2021-03-06  122

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

转载请注明原文地址:https://www.9cbs.com/read-99223.html

New Post(0)