Solved

WNetAddConnection2 API call

Posted on 2002-06-20
7
410 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:haider
  • 4
7 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
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")
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
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")
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
I'd say the Q is answered.
0
 

Author Comment

by:haider
Comment Utility
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.
0
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
Comment Utility
>>Both provided links are dead

That's why I always add the page title, so everyone with internet access can easily find them on MSDN, e.g.:

http://msdn.microsoft.com/library/en-us/wnet/wnet/enumerating_network_resources.asp

BTW, you can always avoid links going 404 by responding earlier than in TWO YEARS.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to create frequencies of a variable from SAS dataset? 10 115
iSeries FTP Exit Program 8 113
deburging in oracle form 12 76
Not needed 13 53
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now