IADsADSystemInfo::GetTrees method (iads.h)

The IADsADSystemInfo::GetTrees method retrieves the DNS names of all the directory trees in the local computer's forest.

Syntax

HRESULT GetTrees(
  [out] VARIANT *pvTrees
);

Parameters

[out] pvTrees

A Variant array of strings that contains the names of the directory trees within the forest.

Return value

This method supports the standard HRESULT return values. For more information, see ADSI Error Codes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See also

ADSI Error Codes

IADsADSystemInfo