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

# StrRetToStrA(3w)

## NAME

**StrRetToStrA** (SHLWAPI.@)

## SYNOPSIS

HRESULT StrRetToStrA\
  (\
   LPSTRRET          *lpStrRet*,\
   const ITEMIDLIST\* *pidl*,\
   LPSTR\*            *ppszName*\
  )

## DESCRIPTION

Converts a **STRRET** to a normal string.

## PARAMS

*lpStrRet* **\[Out\]**  **STRRET** to convert.

*pidl* **\[In\]**  **ITEMIDLIST** for *lpStrRet-\>uType* == **STRRET\_OFFSET**.

*ppszName* **\[Out\]**  Destination for converted string.

## RETURNS

**Success:** **S\_OK**. *ppszName* contains the new string, allocated with **[CoTaskMemAlloc(3w)](/CoTaskMemAlloc/3w.md)**.

**Failure:** **E\_FAIL**, if any parameters are invalid.

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
