haider
asked on
WNetAddConnection2 API call
We can use WNetAddConnection2 API call to connect with share folder. Is there any call to check whether we are already connected to share folder??? Actually when both computers have same user name and password then we don't need to connect with share folder using this API call as we are already connected.
PLZ help me.
PLZ help me.
You can use 'WNetEnumResource()' - see the sample at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/networks_77sj.asp ("Enumerating Network Resources")
BTW; there is also another sample available: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm/htm/winnet_10.asp ("Determining Available Network Resources")
I'd say the Q is answered.
ASKER
Both provided links are dead, I am getting Page Cannot Be Found on both links. How can I accept it as an answer.
hAIDER aLI.
hAIDER aLI.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.