Solved

WNetAddConnection2 API call

Posted on 2002-06-20
7
418 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 100 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 163
move a line in eclipse 3 109
matchUp  challenge 9 125
Authenticate using sesu from script 7 116
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 …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 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