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

# TranslateInfStringW(3w)

## NAME

**TranslateInfStringW** (ADVPACK.@)

## SYNOPSIS

HRESULT TranslateInfStringW\
  (\
   LPCWSTR *pszInfFilename*,\
   LPCWSTR *pszInstallSection*,\
   LPCWSTR *pszTranslateSection*,\
   LPCWSTR *pszTranslateKey*,\
   LPWSTR  *pszBuffer*,\
   DWORD   *dwBufferSize*,\
   PDWORD  *pdwRequiredSize*,\
   PVOID   *pvReserved*\
  )

## DESCRIPTION

Translates the value of a specified key in an inf file into the current locale by expanding string macros.

## PARAMS

*pszInfFilename* **\[In\]**  Filename of the inf file.

*pszInstallSection* **\[In\]**  **.**

*pszTranslateSection* **\[In\]**  Inf section where the key exists.

*pszTranslateKey* **\[In\]**  Key to translate.

*pszBuffer* **\[Out\]**  Contains the translated string on exit.

*dwBufferSize* **\[In\]**  Size on input of *pszBuffer*.

*pdwRequiredSize* **\[Out\]**  Length of the translated key.

*pvReserved* **\[In\]**  Reserved, must be **NULL**.

## RETURNS

**Success:** **S\_OK**.

**Failure:** An hresult error code.

## IMPLEMENTATION

Declared in **"advpub.h"**.

Implemented in **"dlls/advpack/advpack.c"**.

Debug channel **"advpack"**.
