Using Win32 functions in Visual FoxPro Image Gallery
Windows Networking
..msdn
NetGetJoinInformation
NetJoinDomain
NetUnjoinDomain
WNetAddConnection
WNetAddConnection2
WNetCancelConnection2
WNetCloseEnum
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetEnumResource
WNetGetConnection
WNetGetLastError
WNetGetNetworkInformation
WNetGetProviderName
WNetGetUniversalName
WNetGetUser
WNetOpenEnum
Code examples:
Mapping and disconnecting network drives
WNetAddConnection2
..msdn    Add comment     W32 Constants      Translate this page
The WNetAddConnection2 function makes a connection to a network resource. The function can redirect a local device to the network resource.
Code examples:
Mapping and disconnecting network drives
Declaration:
DWORD WNetAddConnection2(
  LPNETRESOURCE lpNetResource,
  LPCTSTR lpPassword,
  LPCTSTR lpUsername,
  DWORD dwFlags
);
FoxPro declaration:
DECLARE INTEGER WNetAddConnection2 IN mpr;
    STRING @ lpNetResource,;
    STRING   lpPassword,;
    STRING   lpUsername,;
    INTEGER  dwFlags

Parameters:
lpNetResource
[in] Pointer to a NETRESOURCE structure that specifies details of the proposed connection.

lpPassword
[in] Pointer to a constant null-terminated string that specifies a password to be used in making the network connection. Must be NULL for Windows Me/98/95.

lpUsername
[in] Pointer to a constant null-terminated string that specifies a user name for making the connection. Must be NULL for Windows Me/98/95.

dwFlags
[in] Connection options. The following values are currently defined.
Return value:
If the function succeeds, the return value is NO_ERROR (0).
Word Index links for the WNetAddConnection2 :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-02-18 19:28:15
Modified: 2003-02-18 19:31:29
Visited in last 7 days: 36
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
19 sec.Function: 'CertCloseStore'
39 sec.Function: 'DrawAnimatedRects'
56 sec.Function: 'SQLTables'
1.27 min.Function: 'waveInAddBuffer'
1.57 min.Function: 'MQDeleteQueue'
1.92 min.Function: 'GetRgnBox'
2.23 min.
Function group: 'Service'
2.63 min.Function: 'GdipGetDC'
3 min.Function: 'NetSessionEnum'
3.42 min.Function: 'CreateSymbolicLink'
Google
Advertise here!