Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DeleteEnhMetaFile

DeleteEnhMetaFile function

The DeleteEnhMetaFile function deletes an enhanced-format metafile or an enhanced-format metafile handle.

Syntax


BOOL DeleteEnhMetaFile(
  _In_ HENHMETAFILE hemf
);

Parameters

hemf [in]

A handle to an enhanced metafile.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

If the hemf parameter identifies an enhanced metafile stored in memory, the DeleteEnhMetaFile function deletes the metafile. If hemf identifies a metafile stored on a disk, the function deletes the metafile handle but does not destroy the actual metafile. An application can retrieve the file by calling the GetEnhMetaFile function.

Examples

For an example, see Opening an Enhanced Metafile and Displaying Its Contents.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

Unicode and ANSI names

DeleteEnhMetaFileW (Unicode)

See also

Metafiles Overview
Metafile Functions
CopyEnhMetaFile
CreateEnhMetaFile
GetEnhMetaFile

 

 

Community Additions

ADD
Show:
© 2015 Microsoft