NWEnumNetAddresses
Enumerates all the network addresses used by the specified NetWare server.
#include <nwfse.h> or #include <nwcalls.h> NWCCODE NWEnumNetAddresses ( NWCONN_HANDLE conn, pnuint32 searchNumber SERVER_AND_VCONSOLE_INFO N_FAR *serverTimeAndVConsoleInfo, pnuint16 reserved, NW_GUID N_FAR *fseServerGUID, nuint32 itemsInArray, pnuint32 itemsReturned, NWFSE_NETWORK_ADDRESS N_FAR *fseNetworkAddresses);
uses calwin32 Type NW_GUID = Array[0..15] of nuint8; Function NWEnumNetAddresses( conn : NWCONN_HANDLE; Var searchNumber : nuint32; Var serverTimeAndVConsoleInfo : SERVER_AND_VCONSOLE_INFO; reserved : pnuint16; Var fseServerGUID : NW_GUID; itemsInArray : nuint32; Var itemsReturned : nuint32; Var fseNetworkAddresses: NWFSE_NETWORK_ADDRESS ) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
You need to allocate enough space for the address in the address field of NWFSE_NETWORK_ADDRESS, or NWE_BUFFER_OVERFLOW will be returned.
Upon return, the addressSize field in NWFSE_NETWORK_ADDRESS will contain the size needed to read the address. To call NWEnumNetAddresses iteratively and avoid the NWE_BUFFER_OVERFLOW error, reset the addressSize field to the maximum buffer size.