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

# SHRegGetUSValueA(3w)

## NAME

**SHRegGetUSValueA** (SHLWAPI.@)

## SYNOPSIS

LONG SHRegGetUSValueA\
  (\
   LPCSTR  *pSubKey*,\
   LPCSTR  *pValue*,\
   LPDWORD *pwType*,\
   LPVOID  *pvData*,\
   LPDWORD *pcbData*,\
   BOOL    *flagIgnoreHKCU*,\
   LPVOID  *pDefaultData*,\
   DWORD   *wDefaultDataSize*\
  )

## PARAMS

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

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

*pwType* **\[Out\]**  Destination for the type of the value.

*pvData* **\[Out\]**  Destination for the value.

*pcbData* **\[In\]**  Destination for the length of the value \*.

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

*pDefaultData* **\[In\]**  Default value if it doesn't exist.

*wDefaultDataSize* **\[In\]**  Length of *pDefaultData*.

## DESCRIPTION

Get a user-specific registry 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 *pSubKey*, queries the value, and then closes the key.

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
