The file format of an EXE file varies by operating system version.
An operating system cannot use an EXE file unless it is formatted for it. Note that some formats support multiple operating systems.
There are other EXE formats, including but not limited to W3 (a collection of LE files, only used in WIN386.EXE), W4 (a compressed collection of LE files, only used in VMM32.VXD), DL, MP, P2, P3 (last three used by Phar Lap extenders).14
".EXE File Extension". FileInfo - The File Extensions Database. Sharpened Productions. Retrieved 2019-08-16. https://fileinfo.com/extension/exe ↩
"PE Format". Windows App Development. Microsoft. 2019-08-25. https://learn.microsoft.com/en-us/windows/win32/debug/pe-format ↩
"OS/2 Operating System". operating system documentation project. 2004-04-03. Retrieved 2014-02-13. http://www.operating-system.org/betriebssystem/_english/bs-os2.htm ↩
"/STUB (MS-DOS Stub File Name)". C/C++ Building Reference (Visual Studio 2022 ed.). Microsoft. Retrieved 2014-01-10. https://learn.microsoft.com/en-us/cpp/build/reference/stub-ms-dos-stub-file-name ↩
Sedory, Daniel B. (2004-10-12). "DOS Stub Program". The Starman's Realm. Self-published. Retrieved 2014-01-10. http://thestarman.pcministry.com/asm/debug/DOSstub.htm ↩
Ellermann, Frank (2014-01-22). "dostub.exe". Purl.net. Retrieved 2014-01-24. http://purl.net/xyzzy/dos/dostub.htm ↩
"Using Registry Editor in Real Mode". Support. Microsoft. 2006-11-15. Archived from the original on 2014-01-15. Retrieved 2014-01-10. Windows 95 includes a Registry Editor program (Regedit.exe) that runs in both the real-mode MS-DOS environment and in the protected-mode Windows environment. When you need to modify the registry without starting Windows 95, use Registry Editor in real mode. Note that the switches listed in this article only work in real-mode. https://web.archive.org/web/20140115050101/http://support.microsoft.com/kb/131352 ↩
Pietrek, Matt (February 2002). "An In-Depth Look into the Win32 Portable Executable File Format". MSDN Magazine. Microsoft. /wiki/Matt_Pietrek ↩
Brown, Ralf (2000-07-16). "Int 21/AH=4Bh". Ralf Brown's Interrupt List. Archived from the original on 2015-05-19. Retrieved 2018-10-30. https://web.archive.org/web/20150519112524/http://www.ctyme.com/intr/rb-2939.htm#table1593 ↩