Solved

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

Posted on 1998-07-24
4
209 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
[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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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