---
name: "SHRegGetValueA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/SHRegGetValueA"
---

# SHRegGetValueA(3w)

## NAME

**SHRegGetValueA** (SHLWAPI.@)

## SYNOPSIS

DWORD SHRegGetValueA\
  (\
   HKEY    *hKey*,\
   LPCSTR  *lpszSubKey*,\
   LPCSTR  *lpszValue*,\
   DWORD   *srrfFlags*,\
   LPDWORD *pwType*,\
   LPVOID  *pvData*,\
   LPDWORD *pcbData*\
  )

## DESCRIPTION

Get a value from the registry.

## PARAMS

*hKey* **\[In\]**  Handle to registry key.

*lpszSubKey* **\[In\]**  Name of sub key containing value to get.

*lpszValue* **\[In\]**  Name of value to get.

srrf **\[In\]**  Flags for restricting returned data.

*pwType* **\[Out\]**  Pointer to the values type.

*pvData* **\[Out\]**  Pointer to the values data.

*pcbData* **\[Out\]**  Pointer to the values size.

## RETURNS

**Success:** **ERROR\_SUCCESS**. Output parameters contain the details read.

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

## IMPLEMENTATION

Not defined in a Wine header. The function is either undocumented, or missing from Wine.

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

Debug channel **"shell"**.
