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

# UnicodeToMultiByte(3w)

## NAME

**UnicodeToMultiByte** (SETUPAPI.@)

## SYNOPSIS

LPSTR UnicodeToMultiByte\
  (\
   LPCWSTR *lpUnicodeStr*,\
   UINT    *uCodePage*\
  )

## DESCRIPTION

Converts a Unicode string to a multi-byte string.

## PARAMS

*lpUnicodeStr* **\[In\]**  Unicode string to be converted.

*uCodePage* **\[In\]**  Code page.

## RETURNS

**Success:** pointer to the converted multi-byte string

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

## NOTE

Use MyFree to release the returned multi-byte string.

## IMPLEMENTATION

Declared in **"setupapi.h"**.

Implemented in **"dlls/setupapi/misc.c"**.

Debug channel **"setupapi"**.
