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

# SHUnicodeToAnsi(3w)

## NAME

**SHUnicodeToAnsi** (SHLWAPI.217)

## SYNOPSIS

INT SHUnicodeToAnsi\
  (\
   LPCWSTR *lpSrcStr*,\
   LPSTR   *lpDstStr*,\
   INT     *iLen*\
  )

## DESCRIPTION

Convert a Unicode string to Ascii.

## PARAMS

*lpSrcStr* **\[In\]**  Source Unicode string to convert.

*lpDstStr* **\[Out\]**  Destination for converted Ascii string.

*iLen* **\[Out\]**  Length of *lpDstStr* in characters.

## RETURNS

See SHUnicodeToAnsiCP.

## NOTES

This function simply calls **[SHUnicodeToAnsiCP(3w)](/SHUnicodeToAnsiCP/3w.md)** with CodePage = **CP\_ACP**.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/shlwapi/string.c"**.

Debug channel **"shell"**.
