CreateMetaFile

Syntax

HANDLE CreateMetaFile(lpFilename)

This function creates a metafile device context.

Parameter Type/Description  
lpFilename LPSTR Points to a null-terminated character string that specifies the name of the metafile. If the lpFilename parameter is NULL, a device context for a memory metafile is returned.  

Return Value

The return value identifies a metafile device context if the function is successful. Otherwise, it is NULL.