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

# SHAnsiToUnicode(3w)

## NAME

**SHAnsiToUnicode** (SHLWAPI.215)

## SYNOPSIS

DWORD SHAnsiToUnicode\
  (\
   LPCSTR *lpSrcStr*,\
   LPWSTR *lpDstStr*,\
   int    *iLen*\
  )

## DESCRIPTION

Convert an Ascii string to Unicode.

## PARAMS

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

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

*iLen* **\[In\]**  Length of *lpDstStr*.

## RETURNS

The return value of the **[MultiByteToWideChar(3w)](/MultiByteToWideChar/3w.md)** function called on *lpSrcStr*.

## NOTES

This function simply calls SHAnsiToUnicodeCP with code page **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"**.
