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

# SHRegGetIntW(3w)

## NAME

**SHRegGetIntW** (SHLWAPI.280)

## SYNOPSIS

int SHRegGetIntW\
  (\
   HKEY    *hKey*,\
   LPCWSTR *lpszValue*,\
   int     *iDefault*\
  )

## DESCRIPTION

Read an integer value from the registry, falling back to a default.

## PARAMS

*hKey* **\[In\]**  Registry key to read from.

*lpszValue* **\[In\]**  Value name to read.

*iDefault* **\[In\]**  Default value to return.

## RETURNS

The value contained in the given registry value if present, otherwise *iDefault*.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

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

Debug channel **"shell"**.
