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