CheckNetWareVersion

Verifies compatibility between an application and the version of NetWare® running on the server (For cross-platform functionality, see Developing NLMs with Cross-Platform Functions ( NDK: NLM Development Concepts, Tools, and Functions) and call NWCCGetConnInfo)

Local Servers:nonblocking
Remote Servers:blocking
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:Server-Based Server Environment

Syntax

  #include <nlm\nit\nwenvrn.h>  
   
  int CheckNetWareVersion (  
     WORD   majorVersion,  
     WORD   minorVersion,  
     WORD   revisionNumber,  
     WORD   minimumSFTlevel,  
     WORD   minimumTTSlevel); 
  

Parameters

majorVersion
(IN) Specifies the minimum major version number that is compatible.
minorVersion
(IN) Specifies the minimum minor version number that is compatible.
revisionNumber
(IN) Specifies the minimum revision number that is compatible.
minimumSFTlevel
(IN) Specifies the minimum System Fault Tolerant™ ( SFT™) level that is compatible.
minimumTTSlevel
(IN) Specifies the minimum Transaction Tracking System™ ( TTS™) level that is compatible.

Return Values

Decimal

Hex

Constant

0

(0x00)

COMPATIBLE

1

(0x01)

VERSION_NUMBER_TOO_LOW

2

(0x02)

SFT_LEVEL_TOO_LOW

The version number is compatible, but the SFT level is too low.

3

(0x03)

TTS_LEVEL_TOO_LOW

The version number is compatible, but the TTS level is too low.

Remarks

Versions of NetWare are identified by major version number, minor version number, and (if applicable) revision number. The revision number is displayed as a letter (0=a, 1=b, and so on) to the user. For example, if a version number were 2.10a, 2 would be the major version number, 10 would be the minor version number, and 0 would be the revision number.

CheckNetWareVersion Example

  #include <stdio.h>  
  #include <nlm\nit\nwenvrn.h>  
   
  main()  
  {  
     int    i;  
     WORD   mv, msv, mr, msft, mtts;  
      printf("min verSion, min subversion, min rev, min SFT, min TTS\n");  
     scanf ("%d, %d, %d, %d, %d", &mv, &msv, &mr, &msft, &mtts);  
     i = CheckNetWareVersion (mv, msv, mr, msft, mtts);  
     printf ("return is %d\n",i);  
  }