Locates a connection to a specific server.
#include <nwnet.h>
or
#include <nwdsconn.h>
N_EXTERN_LIBRARY (NWDSCCODE) NWDSOpenConnToNDSServer (
NWDSContextHandle context,
pnstr8 serverName,
pNWCONN_HANDLE connHandle);
uses netwin32
Function NWDSOpenConnToNDSServer
(context : NWDSContextHandle;
serverName : pnstr8;
Var connHandle : NWCONN_HANDLE
) : NWDSCCODE;
(IN) Specifies the NDS context for the request or NULL for the preferred tree.
(IN) Points to the server to receive the request.
(OUT) Points to the connection handle.
|
0x0000 0000 |
SUCCESSFUL |
|
nonzero value |
Nonzero values indicate errors. See |
NWDSOpenConnToNDSServer allows you to locate a connection to a specific server. The form of the name depends upon the settings in the context handle. If the default values have not been modified, this is a partial dot name relative to the current NDS context. For more information, see Section 1.1, Context Handles.
The serverName is resolved using eDirectory and a connection is returned.When finished with the connection, the application must close the connection using NWCCCloseConn.