Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell function
Message
De
23/05/2002 02:15:29
 
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Titre:
Divers
Thread ID:
00659791
Message ID:
00660282
Vues:
17
Hi,

Thank for your advise.
Do you had any example on using this API, WNetAddConnection2()
as it seem to my need. Thank you

>>My application need to call the 'net use' command in MS Window 2000 to
>>map to my remote server. So, is there any way to
>>know whether I had successfully map to my remote
>>drive ? since shell function work asynchronously
>>and I can't use the return value to indicate whether
>>my mapping is successfully.
>
>You can use API functions WNetAddConnection() or WNetAddConnection2() instead of "net use". These functions returns NO_ERROR or error code when connection cannot be established.
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform