An application can store a metafile in system memory or in a disk file.
To store the metafile in memory, an application calls CreateMetafile and
passes NULL as the function parameter.
There are two ways of storing a metafile in a disk file:
When the application calls CreateMetaFile to open a metafile, it passes a filename as the function parameter; the metafile will then be recorded in a disk file.
After the application has created a metafile in memory, it calls the CopyMetaFile function. This function accepts the handle of a memory metafile and the filename of the disk file which is to save the metafile.
The GetMetaFile function opens a metafile stored in a disk file and makes it available for replay or modification. This function accepts the filename of a metafile stored on disk and returns a metafile handle.