I'm trying to get some insight in the GWAdmin API. I wanted to start
with a list of all Domains in our system. We've around 70 Domains (each
of them in a seperate non-accesible eDir Tree) and some Non-GroupWise
domains. Below is a snipped of my code in Delphi:

<snip>
vSystem:=CreateOleObject('NovellGroupWareAdmin');
vSystem.Connect(DomainPath);
vSystem.NWLogin:=TRUE; // asks for Login, when FALSE program fails
WriteLn('GroupWise System Name: ',vSystem.Name);

vDomains:=vSystem.Domains;
vDomainsIterator:=vDomains.CreateIterator;
vDomain:=vDomainsIterator.Next;
While True do begin // quick'n dirty
WriteLn(vDomain.Name);
vDomain:=vDomainsIterator.Next; // excpetion at first 'real' domain
end;
<snip>

The first few (non-groupwise) domains are listed, but when the first
'real' domain is encountered (at the vDomainsIterator instruction),
Delphi responds with the error: 'Project xxx raised exception class
EOleException with message 'eDirectory Tree could not be set'.

Is there any other way to get a list of all domains? I'm only reading
the Domain properties and that's stored in each gwdomain.db. Did I
overlook anything?

Thanks,

Michel