Metafile Records

After the metafile header comes a series of metafile records that are used to build up an image on a device. Metafile records usually consist of the following:

                                                      struct {

                                                      DWORD     rdSize;

                                                      WORD        rdFunction;

                                                      WORD        rdParm[];


Descriptions of these fields are detailed below:




Specifies the record size in words.


Defines the GDI function number.


An array of words containing parameters in the reverse order in which they are passed to the function.

Some metafile records have structures in the parameter field. They are called function-specific records, and are defined under the File Formats section of Volume 2 of the Microsoft Windows Programming Reference.