get_metafile_header


unsigned get_metafile_header(handle metafile,
                             unsigned size,
                             meta_header* buffer)

This function obtains the header record of a metafile.

Parameters

handle metafile

The handle of the metafile.

unsigned size

The size of the buffer pointed to by the next parameter.

meta_header* buffer

A pointer to a buffer to hold the header record. If null is specified, the required buffer size is returned.

Return

unsigned

Zero The call failed.
Other The required buffer size or the number of bytes transferred to the given buffer.

Notes

The header record is always the first record in the metafile.