Solved

Getting a list of availible NT Domains for C++ Program

Posted on 1998-07-24
4
175 Views
Last Modified: 2013-11-20
I am currently writing a program to check the status of NT servers. At the Moment I can only check the status of server in my own doamin by using NetServerEnum. Is there any way to get list of currently availible Domains (Trusted & UnTrusted) as seen in NT's Browse list.
0
Comment
Question by:marckil
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
trestan earned 150 total points
ID: 1319705
Try to use WNetOpenEnum to start, WNetEnumResource to continue and WNetCloseEnum to end an enumeration of all resources on the network. Also I would like to provide you the following address for more information.
http://www.mvps.org/win32/network/ 
0
 

Author Comment

by:marckil
ID: 1319706
Thanks, the information was spot on. But now I'am getting a error message the second time I call WNetEnumResource = 259. Have you ever since this before..
0
 
LVL 8

Expert Comment

by:trestan
ID: 1319707
Just see your message. What's the error?
0
 

Author Comment

by:marckil
ID: 1319708
It's Ok I found the problem
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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

19 Experts available now in Live!

Get 1:1 Help Now