This statement specifies under which operating system the application (or dynamic-link library) is to run. This statement is optional and provides an additional degree of protection against the program being run in an incorrect operating system.
The EXETYPE keyword can be followed by a descriptor of the operating system:
OS2
The effect of EXETYPE is to set bits in the header that identify operating-system type. Operating-system loaders can check these bits.