CloseMetaFile

Syntax

HANDLE CloseMetaFile(hDC)

This function closes the metafile device context and creates a metafile handle that can be used to play the metafile by using the PlayMetaFile function.

Parameter Type/Description  

hDC HANDLE Identifies the metafile device context to be closed.  

Return Value

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