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

# SHSetIniStringW(3w)

## NAME

**SHSetIniStringW** (SHLWAPI.295)

## SYNOPSIS

BOOL SHSetIniStringW\
  (\
   LPCWSTR *appName*,\
   LPCWSTR *keyName*,\
   LPCWSTR *str*,\
   LPCWSTR *filename*\
  )

## DESCRIPTION

Set a key value in an **INI** file. See WritePrivateProfileString for more information.

## PARAMS

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

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

*str* **\[Out\]**  The value of the key.

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

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## 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"**.
