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)
#include <nlm\nit\nwenvrn.h>
int CheckNetWareVersion (
WORD majorVersion,
WORD minorVersion,
WORD revisionNumber,
WORD minimumSFTlevel,
WORD minimumTTSlevel);
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.
#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);
}