NWQueryAccountingInstalled

Determines whether accounting is installed and/or enabled on a NetWare server

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

Syntax

   #include <nwacct.h> 
   or 
   #include <nwcalls.h> 
    
   NWCCODE N_API NWQueryAccountingInstalled  ( 
      NWCONN_HANDLE   conn,  
      pnuint8         installed); 
   
   

Pascal Syntax

   uses calwin32 
    
   Function NWQueryAccountingInstalled 
      (conn : NWCONN_HANDLE; 
      installed : pnuint8 
   ) : NWCCODE; 
   
   

Parameters

conn
(IN) Specifies the NetWare server connection handle.
installed
(OUT) Points to the installed value. It returns 1 if accounting is installed on the NetWare server; otherwise, installed returns 0.

Return Values

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

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x8811

INVALID_SHELL_CAL

0x8836

INVALID_PARAMETER

0x890A

NLM_INVALID_CONNECTION

Remarks

Under NETX, if an invalid connection handle is passed to conn, NWQueryAccountingInstalled will return 0x0000. NETX will pick a default connection handle if the connection handle cannot be resolved.

When accounting is enabled, the NetWare server object has the property ACCOUNT_SERVERS.

NCP Calls