NWGetCPUInfo

Gets CPU and hardware configuration information about the server.

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  NWGetCPUInfo  ( 
     NWCONN_HANDLE            conn,  
     nuint32                  CPUNum,  
     pnstr8                   CPUName,  
     pnstr8                   numCoprocessor,  
     pnstr8                   bus,  
     NWFSE_CPU_INFO  N_FAR   *fseCPUInfo);
  

Delphi Syntax

  uses calwin32 
   
  Function NWGetCPUInfo 
    (conn : NWCONN_HANDLE; 
     CPUNum : nuint32; 
     CPUName : pnstr8; 
     numCoprocessor : pnstr8; 
     bus : pnstr8; 
     Var fseCPUInfo : NWFSE_CPU_INFO 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
CPUNum
(IN) Specifies the CPU number. Pass one for NetWare 5.x and 6.x and zero for NetWare 4.0.
CPUName
(OUT) Points to the ASCII string of the CPU type. This string space must be allocated by the application.
numCoprocessor
(OUT) Points to the ASCII string of whether or not a coprocessor is present. This string space must be allocated by the application.
bus
(OUT) Points to the ASCII string of the bus type. This string space must be allocated by the application.
fseCPUInfo
(OUT) Points to NWFSE_CPU_INFO.

Return Values

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

0x0000

SUCCESSFUL

0x89FE

DIRECTORY_LOCKED

0x89FF

Failure or Invalid CPU Number

Remarks

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

Console operator rights are NOT necessary to call NWGetCPUInfo.

NCP Calls