NWGetUserInfo

Gets NetWare user information about a given logged-in server connection.

Local Servers:blocking
Remote Servers:blocking
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Server Environment

Syntax

  #include <nwfse.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE N_API  NWGetUserInfo  ( 
     NWCONN_HANDLE             conn,  
     nuint32                   connNum,  
     pnstr8                    userName,  
     NWFSE_USER_INFO  N_FAR   *fseUserInfo);
  

Delphi Syntax

  uses calwin32 
   
  Function NWGetUserInfo 
    (conn : NWCONN_HANDLE; 
     connNum : nuint32; 
     userName : pnstr8; 
     Var fseUserInfo : NWFSE_USER_INFO 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
connNum
(IN) Specifies the connection number of logged-in user.
userName
(OUT) Points to the user name (size of MAX_DN_BYTES).
fseServerSetCmdsInfo
(OUT) Points to NWFSE_USER_INFO getting user information.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

0x897E

NCP_BOUNDARY_CHECK_FAILED

0x89FF

Failure or Invalid Connection Number

Remarks

To call NWGetUserInfo, you must have console operator rights.

NCP Calls

See Also

NWCCGetAllConnInfo, NWGetActiveConnListByType, NWGetConnectionInformation