?
Solved

WNetAddConnection2 API call

Posted on 2002-06-20
7
Medium Priority
?
434 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

752 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