Solved

WNetAddConnection2 API call

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

20 Experts available now in Live!

Get 1:1 Help Now