Need DOS ZM executable sample

StewartBW 1,720 Reputation points
2025-06-08T22:01:53.75+00:00

Hi

List of file signatures on Wikipedia shows: DOS ZM executable and its descendants (rare) magic number: 5A 4D

I searched a lot on my old Dos apps but didn't find one, anyone can share a ZM exe sample?

Thanks.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,929 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,191 Reputation points
    2025-06-09T07:28:02.0966667+00:00

    I don't think ZM really exists even if it is noticed on some sites

    In winnt.h, there is :

    #ifndef _MAC
    #include "pshpack4.h"                   // 4 byte packing is the default
    #define IMAGE_DOS_SIGNATURE                 0x5A4D      // MZ
    #define IMAGE_OS2_SIGNATURE                 0x454E      // NE
    #define IMAGE_OS2_SIGNATURE_LE              0x454C      // LE
    #define IMAGE_VXD_SIGNATURE                 0x454C      // LE
    #define IMAGE_NT_SIGNATURE                  0x00004550  // PE00
    #include "pshpack2.h"                   // 16 bit headers are 2 byte packed
    #else
    #include "pshpack1.h"
    #define IMAGE_DOS_SIGNATURE                 0x4D5A      // MZ
    #define IMAGE_OS2_SIGNATURE                 0x4E45      // NE
    #define IMAGE_OS2_SIGNATURE_LE              0x4C45      // LE
    #define IMAGE_NT_SIGNATURE                  0x50450000  // PE00
    #endif
    

    (and Windows Forms tag is wrong...)

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.