Sets the preferred eDirectory tree name in the requester’s tables.
#include <nwnet.h>
or
#include <nwndscon.h>
N_EXTERN_LIBRARY (NWDSCCODE) NWSetPreferredDSTree (
nuint16 length,
pnuint8 treeName);
uses netwin32
Function NWSetPreferredDSTree
(length : nuint16;
treeName : pnuint8
) : NWCCODE;
(IN) Specifies the length of the tree name.
(IN) Points to the eDirectory tree name.
These are common return values; see NDS Return Values
for more information.
NWSetPreferredDSTree sets a tree name for future eDirectory functions. The tree name may also be set in net.cfg. The maximum name length is 32 characters. If the tree name is too long, INVALID_PARAMETER is returned.