This function is included for compatibility purposes only, and its use is not recommended. It is recommended that DosQuerySysInfo (see the Control Program Programming Reference) be used to return the version, the revision level, and the environment of PM.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */ #include <os2.h> HAB hab; /* Anchor-block handle. */ ULONG fSysInf; /* System information within which the application is operating. */ fSysInf = WinQueryVersion(hab);