Consultor Eletrônico



Kbase 17116: How the Values for OPSYS and WINDOW-SYSTEM are Obtained
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
How the Values for OPSYS and WINDOW-SYSTEM are Obtained

The OPSYS function identifies the operating system being used. We
determine this by using conditionally compiled code (when the progress
executable is being built). The routine determines the current OS and
returns a unique string for each OS. This routine does not query an
OS function at runtime to determine the current OS, it simply uses
conditional code to return the OS info. The one twist of this is for
the 32 bit Windows product. For that product, the user can set OPSYS
in the Startup section of the Registry/.INI file. If this is set, the
routine returns this string and not the default value of WIN32.

The WINDOW-SYSTEM attribute identifies the windowing system being
used. Once again Progress is using conditionally compiled code to
determine if the windowing system is OSF/MOTIF, TTY, or MS-WINDOWS.
In version 8.2A, this attribute was modified to return MS-WINDOWS when
Progress is running on NT 3.51 and MS-WIN95 when Progress is running
on Windows 95 or NT 4.0. We determine this by looking to see if the
taskbar window is available. If the taskbar is available the routine
returns MS-WIN95. In addition, the user can set WINDOWSYSTEM in the
Startup section of the Registry/.INI file. If this is set,
WINDOW-SYSTEM returns the string provided by the user and not the
default.

Progress Software Technical Support Note # 17116