Solved

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

Posted on 1998-07-24
4
164 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
Comment Utility
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
Comment Utility
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
Comment Utility
Just see your message. What's the error?
0
 

Author Comment

by:marckil
Comment Utility
It's Ok I found the problem
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

11 Experts available now in Live!

Get 1:1 Help Now