Returns values of static system variables.
#define INCL_DOSMISC
#include <os2.h>
ULONG     iStart;  /*  Ordinal of the first system variable to return. */
ULONG     iLast;   /*  Ordinal of the last system variable to return. */
PVOID     pBuf;    /*  Address of the data buffer where the system returns the variable values. */
ULONG     cbBuf;   /*  Length, in bytes, of the data buffer. */
APIRET    ulrc;    /*  Return Code. */
ulrc = DosQuerySysInfo(iStart, iLast, pBuf,
         cbBuf);