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

# DuplicateString(3w)

## NAME

**DuplicateString** (SETUPAPI.@)

## SYNOPSIS

LPWSTR DuplicateString\
  (\
   LPCWSTR *lpSrc*\
  )

## DESCRIPTION

Duplicates a unicode string.

## PARAMS

*lpSrc* **\[In\]**  pointer to the unicode string that will be duplicated.

## RETURNS

**Success:** pointer to the duplicated unicode string

**Failure:** **NULL**.

## NOTES

Call **[MyFree(3w)](/MyFree/3w.md)** to release the duplicated string.

## IMPLEMENTATION

Declared in **"setupapi.h"**.

Implemented in **"dlls/setupapi/misc.c"**.

Debug channel **"setupapi"**.
