---
name: "EnumMetaFile"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/EnumMetaFile"
---

# EnumMetaFile(3w)

## NAME

**EnumMetaFile** (GDI32.@)

## SYNOPSIS

BOOL EnumMetaFile\
  (\
   HDC        *hdc*,\
   HMETAFILE  *hmf*,\
   MFENUMPROC *lpEnumFunc*,\
   LPARAM     *lpData*\
  )

## DESCRIPTION

Loop through the metafile records in *hmf*, calling the user-specified function for each one, stopping when the user's function returns **FALSE** (which is considered to be failure) or when no records are left (which is considered to be success).

## RETURNS

**TRUE** on success, **FALSE** on failure.

## IMPLEMENTATION

Declared in **"wingdi.h"**.

Implemented in **"dlls/gdi32/metafile.c"**.

Debug channel **"metafile"**.
