cobol1.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CBL_GET_OS_INFO Details (↑ O/S Info Routines)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Parameters on Entry:
 
     None.
 
  Parameters on Exit:
 
     p-os-type                 0 = OS/2
                               1 = DOS
                               2 = DOS + XM
                               4 = FLEXOS
                               5 = MS-Windows
                             128 = UNIX
                             129 = XENIX
 
     p-os-version            Use is specific to the operating system.
                             May include information such as chip type
                             and the operating system version number.
                             For DOS and OS/2, the third and fourth
                             bytes contain the minor and major release
                             operating system version number
                             respectively.
 
     p-DBCS-support          Bit 0 = 0 if DBCS validation unsupported
                                   = 1 if DBCS validation supported
 
                             Bit 1 = 0 if PIC N data type unsupported
                                   = 1 if PIC N data type supported
 
     p-char-coding           0 = ASCII
                             1 = Shift-JIS
                             2 = EUC
 
     p-country-id            Country Code (0 = Country-Id unknown
                             or unsupported)
 
     p-code-page             Code Page (0 = Code Page unknown
                             or unsupported)
 
     p-process-type          0 = Process is running in a full screen
                                 session
                             1 = Process is running in a compatibilty box
                             2 = Process is running in a graphical
                                 character screen emulation window
                             3 = Process is running as a true graphical
                                 application
                             4 = Process is detached
                             5 = Process is non-interactive (no screen
                                 or keyboard I/O) and detached
                                    -♦-