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

# CaptureAndConvertAnsiArg(3w)

## NAME

**CaptureAndConvertAnsiArg** (SETUPAPI.@)

## SYNOPSIS

DWORD CaptureAndConvertAnsiArg\
  (\
   LPCSTR  *pSrc*,\
   LPWSTR\* *pDst*\
  )

## DESCRIPTION

Captures an **ANSI** string and converts it to a **UNICODE** string.

## PARAMS

lpSrc **\[In\]**  **ANSI** string to be captured.

lpDst **\[Out\]**  Pointer to the captured **UNICODE** string.

## RETURNS

**Success:** **ERROR\_SUCCESS**

**Failure:** **ERROR\_INVALID\_PARAMETER**.

## NOTE

Call MyFree to release the captured **UNICODE** string.

## IMPLEMENTATION

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

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

Debug channel **"setupapi"**.
