Retrieves a monitored connection reference.
#include <nwnet.h> or #include <nwdsconn.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSGetMonitoredConnRef ( NWDSContextHandle context, pnuint32 connRef);
uses netwin32 Function NWDSGetMonitoredConnRef (context : NWDSContextHandle; Var connRef : nuint32 ) : NWDSCCODE;
(IN) Specifies the NDS context for the request or NULL for the preferred tree.
(OUT) Points to the connection reference.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
A monitored connection reference is set only if NWDSLogin has been called. For multiple tree support, the tree name specified in the context handle is used to specify which monitored connection reference to retrieve.
If the tree name is not set in the context, the preferred tree will be used. For requesters that do not support multiple trees, if the tree name is specified (a NULL string is not returned to the eDirectory libraries) and if the tree name is different from the preferred tree, an error will be returned.
To make use of the connection reference, a connection handle must be opened using the connection reference.