The structure of the metafile header is quite simple:
struct {
WORD mtType;
WORD mtHeaderSize;
WORD mtVersion;
DWORD tSize;
WORD mtNoObjects;
DWORD tMaxRecord;
WORD mtNoParameters;
}
Descriptions of these fields are detailed below:
Field |
Description |
mtType |
Tells whether the metafile is in memory or recorded in a disk file. If the metafile is in memory, the field value is one (1); if the metafile is in a disk file the field value is two (2). |
mtHeaderSize |
Gives the size in words of the metafile header |
mtVersion |
Defines the Windows version number. For example, the version number for Windows 3.0 is given as 0x300. |
mtSize |
Specifies the file size in words. |
mtNoObjects |
Defines the maximum number of objects in the metafile. |
mtMaxRecord |
Specifies in words the size of the metafile’s largest record. |
mtNoParameters |
Not used at present. |