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

# SetMetaFileBitsEx(3w)

## NAME

**SetMetaFileBitsEx** (GDI32.@)

## SYNOPSIS

HMETAFILE SetMetaFileBitsEx\
  (\
   UINT        *size*,\
   const BYTE\* *lpData*\
  )

## DESCRIPTION

Create a metafile from raw data. No checking of the data is performed. Use **[GetMetaFileBitsEx(3w)](/GetMetaFileBitsEx/3w.md)** to get raw data from a metafile.

## PARAMS

*size* **\[In\]**  *size* of metafile, in bytes.

*lpData* **\[In\]**  pointer to metafile data.

## RETURNS

**Success:** Handle to metafile.

**Failure:** **NULL**.

## IMPLEMENTATION

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

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

Debug channel **"metafile"**.
