|
-
May 8th, 1999, 06:50 AM
#1
Win32 - LanManager-API
Hello,
is it possible, using the LanManager-API, to enumerate all domains in a network?
Thank you,
Thomas
-
May 10th, 1999, 03:07 AM
#2
Re: Win32 - LanManager-API
Probably...this response is based on theory, not actual testing. You could use the NetServerEnum() function with the SV_TYPE_DOMAIN_CTRL flag to return a list of all primary domain controllers, then query each one using NetGetDCName() to determine the domain name. I suspect that you may need Domain Admin privileges to execute either or both of these calls, but they should give you the information you need.
Cheers!
Humble Programmer
,,,^..^,,,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|