CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    2

    Win32 - LanManager-API

    Hello,
    is it possible, using the LanManager-API, to enumerate all domains in a network?



    Thank you,
    Thomas

  2. #2
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured