Thomas Zilch
May 8th, 1999, 06:50 AM
Hello,
is it possible, using the LanManager-API, to enumerate all domains in a network?
Thank you,
Thomas
is it possible, using the LanManager-API, to enumerate all domains in a network?
Thank you,
Thomas
|
Click to See Complete Forum and Search --> : Win32 - LanManager-API Thomas Zilch May 8th, 1999, 06:50 AM Hello, is it possible, using the LanManager-API, to enumerate all domains in a network? Thank you, Thomas May 10th, 1999, 03:07 AM 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 ,,,^..^,,, codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |