NWGetFileServerInformation
Returns several items, including NetWare server name, NetWare versions, maximum and peak connections, number of licensed connections currently in use, maximum volumes supported, and SFT and TTS level of support.
#include <nwserver.h> or #include <nwcalls.h> NWCCODE N_API NWGetFileServerInformation ( NWCONN_HANDLE conn, pnstr8 serverName, pnuint8 majorVer, pnuint8 minVer, pnuint8 rev, pnuint16 maxConns, pnuint16 maxConnsUsed, pnuint16 connsInUse, pnuint16 numVolumes, pnuint8 SFTLevel, pnuint8 TTSLevel);
uses calwin32 Function NWGetFileServerInformation (conn : NWCONN_HANDLE; serverName : pnstr8; majorVer : pnuint8; minVer : pnuint8; rev : pnuint8; maxConns : pnuint16; maxConnsUsed : pnuint16; connsInUse : pnuint16; numVolumes : pnuint16; SFTLevel : pnuint8; TTSLevel : pnuint8 ) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
NWGetFileServerInformation will only return the number of licensed connections in use. For NetWare 3.x, all connections are considered licensed. For NetWare 4.x, many connections do not require a server license and will not be returned in connsInUse.
Under NETX, if an invalid connection handle is passed to conn, NWGetFileServerInformation will return 0x0000. NETX will pick a default connection handle if the connection handle cannot be resolved.
The buffer allocated to receive NetWare server name should be at least 48 bytes long.
Substitute NULL for a parameter if a return is not desired. However, all parameter positions must be filled. Any client can call NWGetFileServerInformation without logging in to the specified NetWare server.