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

# CloseMetaFile(3w)

## NAME

**CloseMetaFile** (GDI32.@)

## SYNOPSIS

HMETAFILE CloseMetaFile\
  (\
   HDC *hdc*\
  )

## DESCRIPTION

Stop recording graphics operations in metafile associated with *hdc* and retrieve metafile.

## PARAMS

*hdc* **\[In\]**  Metafile **DC** to close.

## RETURNS

Handle of newly created metafile on success, **NULL** on failure.

## IMPLEMENTATION

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

Implemented in **"dlls/gdi32/mfdrv/init.c"**.

Debug channel **"metafile"**.
