Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force reconnection of a network mapped drive?
Message
From
21/10/2002 15:31:35
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00713586
Message ID:
00713633
Views:
19
José-

>This API function queries the mapped drive and supposedly tests the connection. I'm not sure it will force it, but you can give it a try

> DECLARE Long WNetGetConnection in WIN32API;

Thanks for your reply. I expect it doesn't force. Since I want to show a list of available drives, I can't specify the particular mapping.

However, your answer pointed me to the section of the Platform SDK I needed to look in, and it appears that WNetOpenEnum might do it for me, since it appears to return a value for connectable resources.

OTOH, it's probably just going to be easier to loop through all the possible drive letters and do a DIRECTORY(). I was just avoiding what seems to be an inelegant solution.
Previous
Reply
Map
View

Click here to load this message in the networking platform