Microsoft KB Archive/83230

= Determining the Default EXETYPE Value in Microsoft LINK =

Article ID: 83230

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft LINK for MS-DOS
 * Microsoft LINK for OS/2

-



This article was previously published under Q83230



SUMMARY
Beginning with version 5.3, the Microsoft Segmented Executable Linker can create executable files for three different operating systems: MS-DOS, Microsoft Windows, and OS/2. LINK determines the executable file type (EXETYPE) unless it is specified explicitly in the module- definition (.DEF) file. The EXETYPE defaults to a different type depending on the host operating system, the presence of the .DEF file, and the presence of imported or exported symbols. The following chart summarizes the default EXETYPE values:  In previous versions of the Segmented Executable linker, OS/2 is the default EXETYPE when a .DEF file is present.
 * Host Operating | No .DEF File | .DEF File |Imports/Exports in Module|
 * System     |   Present    |  Present  |and No .DEF File Present |
 * MS-DOS    |     MS-DOS   |  Windows  |          MS-DOS         |
 * MS-DOS    |     MS-DOS   |  Windows  |          MS-DOS         |
 * OS/2     |     OS/2     |  Windows  |           OS/2          |
 * OS/2     |     OS/2     |  Windows  |           OS/2          |



MORE INFORMATION
EXETYPE [ ] statement specifies the target operating system with which an application is designed to run. The value can be one of the following values:   Descriptor           Meaning --- WINDOWS [ ] Microsoft Windows. Default EXETYPE value. The parameter specifies the minimum version of Windows needed to load the application or dynamic-link library (DLL). The syntax for is as follows:

[.[ ]]

where each is a decimal integer.

DOS                 Nonsegmented executable file. LINK assumes EXETYPE DOS for an overlaid MS-DOS program.

OS/2                OS/2 version 1.x segmented executable file.

UNKNOWN             Other applications.

Additional query words: kbinf 5.30 5.31 5.31.009 5.50 LinkIss

Keywords: kb16bitonly KB83230

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.