NWGetServerInfo(3nw)


NWGetServerInfo -- returns address and number of hops to server

Synopsis

   #include <nwfse.h> 
   or 
   #include <nwcalls.h> 
   

NWCCODE N_API NWGetServerInfo (NWCONN_HANDLE conn, nuint32 serverType, pnstr8 serverName, NWFSE_SERVER_INFO N_FAR * fseServerInfo);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare server connection handle.

serverType
(IN) Specifies the type of server to search for, such as a file server (0x0400).

serverName
(IN) Points to the name of the server for which to search.

fseServerInfo
(OUT) Points to NWFSE_SERVER_INFO getting server information.

Return values

0x0000
SUCCESSFUL

0x8801
Invalid Server Name or Server Type

0x897E
NCP_BOUNDARY_CHECK_FAILED

0x89C6
NO_CONSOLE_PRIVILEGES

0x89FB
INVALID_PARAMETERS

Notices

To call NWGetServerInfo, you must have console operator rights to the 4.x server indicated by conn. serverType can indicate either a 3.x or 4.x server.

Services

File Server Environment

NCP calls

0x2222 123 54
Get Server Information

References

NWGetServerSourcesInfo(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.