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

# SHAnsiToUnicodeCP(3w)

## NAME

**SHAnsiToUnicodeCP** (SHLWAPI.216)

## SYNOPSIS

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

## DESCRIPTION

Convert an Ascii string to Unicode.

## PARAMS

*dwCp* **\[In\]**  Code page for the conversion.

*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*.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

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

Debug channel **"shell"**.
