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

# SHStrDupA(3w)

## NAME

**SHStrDupA** (SHLWAPI.@)

## SYNOPSIS

HRESULT SHStrDupA\
  (\
   LPCSTR  *lpszStr*,\
   LPWSTR\* *lppszDest*\
  )

## DESCRIPTION

Return a Unicode copy of a string, in memory allocated by **[CoTaskMemAlloc(3w)](/CoTaskMemAlloc/3w.md)**.

## PARAMS

*lpszStr* **\[In\]**  String to copy.

*lppszDest* **\[Out\]**  Destination for the new string copy.

## RETURNS

**Success:** **S\_OK**. *lppszDest* contains the new string in Unicode format.

**Failure:** **E\_OUTOFMEMORY**, If any arguments are invalid or memory allocation fails.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

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

Debug channel **"shell"**.
