Autor Beitrag
cherry
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

WinXP - Professional
RAD Studio 2009
BeitragVerfasst: Mi 10.10.07 08:20 
Hi, brauche für mein Programm eine Liste aller verfügbaren Domänen im LAN. Sowie beim anmelden eines Benutzers an Windows da hat man auch eine Liste aller Domänen. Wie krieg ich das?

Gruss cherry

_________________
AM I TOO SEXY?
Ist das nur mein Gefühl, oder ist die ganze Welt verrückt geworden!?
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Di 06.11.07 19:11 
Vielleicht könntest du alle IP's durchchecken, die mit deiner eigenen anfangen (die ersten drei Zahlen beschreiben irgendwie das lokale Netzwerk - nur das dritte ändert sich)
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 06.11.07 23:23 
Nicht ganz ...

Die Zahlen, die in der IP möglich sind, hängen von der Subnet-Mask ab.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 07.11.07 09:22 
Ich habe keine Ahnung, woher ich die angehängte Unit habe, die im Copyright angegebene Adresse gibts jedenfalls nicht mehr.

Ich hänge die Unit einfach mal an, damit kann man noch einiges mehr machen.

// Edit:
Ich habs gefunden, die Unit gibts bei Torry, inklusive Demo (gleich das erste Ergebnis "FindComp v.1.2"):
www.torry.net/pages.php?s=95
Deshalb habe ich den Anhang mal wieder gelöscht, den brauchts ja dann nicht.
AHT
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 207



BeitragVerfasst: Sa 10.11.07 14:40 
Ich kenne mich mit Netzwerkklamotten zwar nicht so aus (habe bislang nur mal User und Gruppen gelistet), aber vielleicht hilft dir
NetGetAnyDCName
und das
NetGetDisplayInformation
weiter.
Das was du suchst, dürfte aber auf jeden Fall hier msdn2.microsoft.com/...ibrary/aa370675.aspx stehen.

Gruß

AHT