#include <nwnet.h> see also #include <nwndscon.h>NWCCODE N_API NWGetPreferredConnName (nuint8 N_FAR
preferredName, nuint8 N_FAR
preferredType);
NWGetPreferredConnName will only work if VLMs are loaded; it will not work with NETX.
If both preferredType names are set by API calls or NET.CFG, the order is determined at VLM load time.
Defaults are Preferred Tree Name, then Preferred Server.
If a Preferred Tree Name is not specified, the Preferred Server will be returned and preferredType will be zero (Preferred Server). However, if a Preferred Tree Name is specified in NET.CFG, or if NWSetPreferredDSTree is called, preferredName will be the Preferred Tree Name and the server type will beNWNDS_CONNECTION (Preferred Tree Name). If BIND.VLM is loaded before NDS.VLM, the opposite is true.
Connection (Directory Support)