Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Map Network Drive dialog box
Message
 
To
05/03/1999 07:27:40
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00194378
Message ID:
00194384
Views:
24
>Hi, All!
>
>How can I show the user 'Map Network Drive' dialog box, like in Windows Explorer? Is there an API for this?
>
>TIA, Uri.

Hi Uri,

Here's what you need:
#DEFINE RESOURCE_DRIVES    1
#DEFINE NO_ERROR           0    && No error occurred.
#DEFINE ERROR_CANCELLED 1223    && The user cancelled 
DECLARE INTEGER WNetConnectionDialog IN Win32API;
  INTEGER hwnd, INTEGER fdwResourceType
lnerr = WNetConnectionDialog(0, RESOURCE_DRIVES)
IF NOT INLIST(lnerr, NO_ERROR, ERROR_CANCELLED)
  * An error occurred
ENDIF
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform