Maybe the NetServerEnum Windows API function is what youre after?

>From MSDN: The NetServerEnum function lists all servers of the specified
type that are visible in a domain. For example, an application can call
NetServerEnum to list all domain controllers only or all SQL servers only.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/ntl
mapi2_1vl9.asp

(That page also has some C++ example code.)

HTH

Paul.


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Paul Needham
> Sent: Tuesday, 13 November 2001 3:35 p.m.
> To: Multiple recipients of list delphi
> Subject: [DUG]: Windows Domains
>
>
> Hi
>
> I am wanting to build the list of Windows NT/2000 domains in
> my application
> that can be accessed from a networked machine. Does anyone know an
> appropriate
> function or could point me in the right direction.
>
> Thanks
> Paul Needham
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to