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

# SHRegGetBoolUSValueA(3w)

## NAME

**SHRegGetBoolUSValueA** (SHLWAPI.@)

## SYNOPSIS

BOOL SHRegGetBoolUSValueA\
  (\
   LPCSTR *pszSubKey*,\
   LPCSTR *pszValue*,\
   BOOL   *fIgnoreHKCU*,\
   BOOL   *fDefault*\
  )

## PARAMS

*pszSubKey* **\[In\]**  Key name to open.

*pszValue* **\[In\]**  Value name to open.

*fIgnoreHKCU* **\[In\]**  **TRUE**=Don't check **HKEY\_CURRENT\_USER**.

*fDefault* **\[In\]**  Default value to use if *pszValue* is not present.

## DESCRIPTION

Get a user-specific registry boolean value.

## RETURNS

**Success:** **ERROR\_SUCCESS**

**Failure:** An error code from **[SHRegOpenUSKeyA(3w)](/SHRegOpenUSKeyA/3w.md)** or **[SHRegQueryUSValueA(3w)](/SHRegQueryUSValueA/3w.md)**.

## NOTES

This function opens *pszSubKey*, queries the value, and then closes the key.

Boolean values are one of the following:

**TRUE:** **YES**,TRUE,non-zero

**FALSE:** **NO**,FALSE,0

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
