?
Solved

WNetAddConnection2 API call

Posted on 2002-06-20
7
Medium Priority
?
451 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
7 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 7096793
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
ID: 7096802
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
ID: 12036023
I'd say the Q is answered.
0
 

Author Comment

by:haider
ID: 12054068
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 300 total points
ID: 12055080
>>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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

649 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