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

# MsiLoadStringW(3w)

## NAME

**MsiLoadStringW** (MSI.@)

## SYNOPSIS

LANGID MsiLoadStringW\
  (\
   MSIHANDLE *handle*,\
   UINT      *id*,\
   LPWSTR    *lpBuffer*,\
   int       *nBufferMax*,\
   LANGID    *lang*\
  )

## DESCRIPTION

Loads a string from **MSI**'s string resources.

## PARAMS

*handle* **\[In\]**  only **-1** is handled currently.

*id* **\[In\]**  Id of the string to be loaded.

*lpBuffer* **\[Out\]**  buffer for the string to be written to.

*nBufferMax* **\[In\]**  maximum size of the buffer in characters.

*lang* **\[In\]**  the preferred language for the string.

## RETURNS

If successful, this function returns the language Id of the string loaded If the function fails, the function returns zero.

## NOTES

The type of the first parameter is unknown. LoadString's prototype suggests that it might be a module *handle*. I have made it an **MSI** *handle* for starters, as **-1** is an invalid **MSI** *handle*, but not an invalid module *handle*. Maybe strings can be stored in an **MSI** database somehow.

## IMPLEMENTATION

Declared in **"msipriv.h"**.

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

Debug channel **"msi"**.
