Returns the addresses of the server where an object is located.
#include <nwnet.h> or #include <nwdsmisc.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSGetObjectHostServerAddress ( NWDSContextHandle context, pnstr8 objectName, pnstr8 serverName, pBuf_T netAddresses);
uses netwin32 Function NWDSGetObjectHostServerAddress (context : NWDSContextHandle; objectName : pnstr8; serverName : pnstr8; netAddresses : pBuf_T ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Points to the name of an eDirectory object.
(OUT) Points to the name of the server where an object is located.
(OUT) Points to a buffer containing the network addresses of the associated server.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
NWDSGetObjectHostServerAddress works only for objects having "Host Server" as an attribute (such as Volume objects). Servers can have more than one address, such as an IPX and an IP address. The netAddresses parameter receives these addresses.
For information on retrieving the addresses from the buffer, see Finding the Host Server of an Object.