DeleteMetaFile

Syntax

BOOL DeleteMetaFile(hMF)

This function deletes access to a metafile by freeing the system resources associated with that metafile. It does not destroy the metafile itself, but it invalidates the metafile handle, hMF. Access to the metafile can be reestablished by retrieving a new handle by using the GetMetaFile function.

Parameter Type/Description  

hMF HANDLE Identifies the metafile to be deleted.  

Return Value

The return value specifies whether the metafile handle is invalidated. It is nonzero if the metafile's system resources are deleted. It is zero if the hMF parameter is not a valid handle.