Solved

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

Posted on 1998-07-24
4
196 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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
Include multiple hostnames in this command? 3 55
Macro to save highlighted rows as a separate file 5 45
Replacement selected text 2 63
zeroFront challenge 7 114
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: 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.

821 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