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

# SHGetValueGoodBootA(3w)

## NAME

**SHGetValueGoodBootA** (SHLWAPI.205)

## SYNOPSIS

DWORD SHGetValueGoodBootA\
  (\
   HKEY    *hkey*,\
   LPCSTR  *pSubKey*,\
   LPCSTR  *pValue*,\
   LPDWORD *pwType*,\
   LPVOID  *pvData*,\
   LPDWORD *pbData*\
  )

## DESCRIPTION

Get a value from the registry.

## PARAMS

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

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

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

*pwType* **\[Out\]**  Destination for the values type.

*pvData* **\[Out\]**  Destination for the values data.

*pbData* **\[Out\]**  Destination for 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)**, or **ERROR\_INVALID\_FUNCTION** in the machine is in safe mode.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

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

Debug channel **"shell"**.
