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:
Starting a dialog box for connecting to network resources (mapping network drive)
WNetConnectionDialog
..msdn    Add comment     W32 Constants      Translate this page
The WNetConnectionDialog function starts a general browsing dialog box for connecting to network resources. The function requires a handle to the owner window for the dialog box.
Code examples:
Starting a dialog box for connecting to network resources (mapping network drive)
Declaration:
DWORD WNetConnectionDialog(
  HWND hwnd,     // handle to window owning dialog box
  DWORD dwType   // resource type
);
FoxPro declaration:
DECLARE INTEGER WNetConnectionDialog IN mpr;
    INTEGER hwnd,;
    INTEGER dwType
Parameters:
hwnd
[in] Specifies a handle to the owner window for the dialog box.

dwType
[in] Specifies the resource type to allow connections to.
Return value:
If the function succeeds, the return value is NO_ERROR (0). If the user cancels the dialog box, the function returns 1.
Usage:
#DEFINE RESOURCETYPE_DISK 1

= WNetConnectionDialog(_screen.hWnd, RESOURCETYPE_DISK)
My comment:


Not much of input parameters this function accepts: nor a drive letter neither a network path.

See also: WNetDisconnectDialog, WNetConnectionDialog1
Word Index links for the WNetConnectionDialog :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-06-06 08:12:38
Modified: 2009-01-30 12:46:06
Visited in last 7 days: 9
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.225.47.94)
7 sec.Function: 'CryptCreateHash'
Function group: 'Cryptography Reference'
15 sec.Function: 'CeSetFilePointer'
21 sec.Function: 'CloseEventLog'
28 sec.Function: 'ExpandEnvironmentStrings'
36 sec.Function: 'SCardListInterfaces'
43 sec.Function: 'getservbyport'
51 sec.
Function group: 'Authentication'
57 sec.Function: 'GetThreadDesktop'
1.07 min.Function: 'IsIconic'
1.2 min.Function: 'CryptEncrypt'
Google
Advertise here!