#include <nwdsconn.h>N_EXTERN_LIBRARY (NWDSCCODE) NWDSScanForAvailableTrees (NWDSContextHandle context, NWCONN_HANDLE connHandle, pnstr scanFilter, pnuint32 scanIndex, pnstr treeName);
NWDSScanForAvailableTrees uses the connection specified in connHandle to scan for NDS tree objects (object type 0x7802) using the bindery of the server (the dynamic bindery is used for NetWare 4 server). NWScanBindery is used to search for these objects. (See NetWare Client SDK documentation for NWScanBindery to get more information about return codes.)
The scanFilter value allows wildcard matching to be specified for the scan operation. The scanIndex value should be initially set to -1 and must not be altered by the user after the first call.
Unlike other NDS functions, there is no need to call NWDSCloseIteration to discontinue calling NWDSScanForAvailableTrees once the search is begun.
The context parameter is used to determine the character type for the tree name (that is, local code page or Unicode).
Connection (Directory Support)