• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

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

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
marckil
Asked:
marckil
  • 2
  • 2
1 Solution
 
trestanCommented:
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
 
marckilAuthor Commented:
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
 
trestanCommented:
Just see your message. What's the error?
0
 
marckilAuthor Commented:
It's Ok I found the problem
0

Featured Post

Industry Leaders: 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!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now