NWGetNetWareProductVersion

Returns the NetWare product version.

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 <nwserver.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE N_API  NWGetNetWareProductVersion  ( 
     NWCONN_HANDLE                     conn,  
     NETWARE_PRODUCT_VERSION  N_FAR   *version);
  

Delphi Syntax

  uses calwin32 
   
  Function NWGetNetWareProductVersion 
    (conn : NWCONN_HANDLE; 
     Var version : NETWARE_PRODUCT_VERSION 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
version
(OUT) Points to the NETWARE_PRODUCT_VERSION structure, which contains the NetWare product version information.

Return Values

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

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x8836

INVALID_PARAMETER

0x890A

NLM_INVALID_CONNECTION

0x8996

SERVER_OUT_OF_MEMORY

Remarks

Console operator rights and an authenticated connection are NOT necessary to call NWGetNetWareProductVersion; you only need an attachment.

NWGetNetWareProductVersion supports all versions of NetWare servers, and is run on all supported platforms. Prior to NetWare 5.1, the version returned will be the OS version or the server version; however, starting with NetWare 5.1 these might not be the same because the OS does not always change with the release of a new product version of NetWare.

If you use the version command on the server console, the Novell NetWare version returned is equivalent to the product version (NetWare 5.1 and greater) or the OS version (prior to NetWare 5.1) returned from the NWGetNetWareProductVersion call. The Server Version returned from the version command on the server console is equivalent to the server version returned from the NWGetFileServerVersionInfo call or the OS version returned from the NWGetOSVersionInfo call. The server version and the OS version are the same.

NCP Calls