Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force reconnection of a network mapped drive?
Message
De
21/10/2002 15:31:35
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00713586
Message ID:
00713633
Vues:
21
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform