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

# SHGetIniStringW(3w)

## NAME

**SHGetIniStringW** (SHLWAPI.294)

## SYNOPSIS

DWORD SHGetIniStringW\
  (\
   LPCWSTR *appName*,\
   LPCWSTR *keyName*,\
   LPWSTR  *out*,\
   DWORD   *outLen*,\
   LPCWSTR *filename*\
  )

## DESCRIPTION

Retrieve a key value from an **INI** file. See GetPrivateProfileString for more information.

## PARAMS

*appName* **\[In\]**  The section in the **INI** file that contains the key.

*keyName* **\[In\]**  The key to be retrieved.

*out* **\[Out\]**  The buffer into which the key's value will be copied.

*outLen* **\[In\]**  The length of the \`out' buffer.

*filename* **\[In\]**  The location of the **INI** file.

## RETURNS

Length of string copied into \`out'.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

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

Debug channel **"shell"**.
