Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell function
Message
From
23/05/2002 02:15:29
 
General information
Forum:
Visual Basic
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00659791
Message ID:
00660282
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform