Information générale
Catégorie:
Fonctions Windows API
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement