CopyMetaFile

Syntax

HANDLE CopyMetaFile(hSrcMetaFile,lpFilename)

This function copies the source metafile to the file pointed to by the lpFilename parameter and returns a handle to the new metafile. If lpFilename is NULL, the source is copied to a memory metafile.

Parameter Type/Description  

hSrcMetaFile HANDLE Identifies the source metafile.  
lpFilename LPSTR Points to a null-terminated character string that specifies the file that is to receive the metafile.  

Return Value

The return value identifies the new metafile.