LINK Help (linkx.hlp) (Table of Contents; 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.
EXETYPE Statement
                                             Up Contents Index Back
─────EXETYPE Statement──────────────────────────────────────────────────────
 
     Syntax:  EXETYPE [OS2 | WINDOWS [version] | UNKNOWN]
 
     This statement specifies under which operating system the
     application or DLL is to run. This statement is optional and
     provides an additional degree of protection against the program
     being run under an incorrect operating system.
 
     EXETYPE is followed by a descriptor of the operating system. The
     default without a descriptor or EXETYPE is OS2:
 
     OS2       OS/2 applications and DLLs
 
     WINDOWS   Windows applications and DLLs
 
     UNKNOWN   Other applications
 
     EXETYPE sets bits in the header which identify the operating
     system. Operating-system loaders can check these bits.
 
     Windows Programming
 
     The WINDOWS descriptor takes an optional version number. Windows
     reads this number to determine the earliest version of Windows
     allowed to load the application or DLL. For example, if 3.0 is
     specified, the resulting application or DLL can run under Windows
     versions 3.0 and later. If <version> is not specified, the default
     is 3.0. The syntax for <version> is
 
     number[.[number]]
 
     where each <number> is a decimal integer.
 
     In Windows programming, use the EXETYPE WINDOWS statement with a
     PROTMODE statement to specify an application or DLL that runs only
     under protected-mode Windows.
     See: PROTMODE Statement
                                    -♦-