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

# SetMetaFileBits16(3w)

## NAME

**SetMetaFileBits16** (GDI.160)

## SYNOPSIS

HMETAFILE16 SetMetaFileBits16\
  (\
   HGLOBAL16 *hMem*\
  )

## DESCRIPTION

Trade in a metafile memory handle for a handle to a metafile object. The memory region should hold a proper metafile, otherwise problems will occur when it is used. Validity of the memory is not checked. The function is essentially just the identity function.

## PARAMS

*hMem* **\[In\]**  handle to a memory region holding a metafile.

## RETURNS

Handle to a metafile on success, **NULL** on failure.**.**

## IMPLEMENTATION

Declared in **"wine/wingdi16.h"**.

Implemented in **"dlls/gdi.exe16/metafile.c"**.

Debug channel **"metafile"**.
