GetServerConfigurationInfo
Returns the engine type and loader type of the server.
#include <nwenvrn.h>
int GetServerConfigurationInfo (
int *serverType,
int *loaderType);
You can pass a NULL pointer in either parameter. When a NULL pointer is passed in, a value will not be returned for the specified parameter.
serverType receives one of the following values defined in NWENVRN.H:
loaderType receives one of the following values defined in NWENVRN.H:
#include <stdio.h>
#include <nwenvrn.h>
void main()
{
int serverType, loaderType;
if (!GetServerConfigurationInfo(&serverType, &loaderType))
{
if (loaderType == LOADER_TYPE_OS2)
printf("This NLM is running on NetWare for OS/2.\n\n");
else if (loaderType == LOADER_TYPE_DOS)
{
if (serverType == TYPE_IO_ENGINE)
printf("This NLM is running on NetWare SFTIII"
" in an IO Engine.\n\n");
else if (serverType == TYPE_OS_ENGINE)
printf("This NLM is running on NetWare SFTIII"
" in an MS Engine.\n\n");
else if (serverType == TYPE_NORMAL_SERVER)
printf("This NLM is running on a dedicated"
" NetWare server with a DOS loader.\n\n");
}
}
}