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

# RegQueryMultipleValuesA(3w)

## NAME

**RegQueryMultipleValuesA** (ADVAPI32.@)

## SYNOPSIS

LSTATUS RegQueryMultipleValuesA\
  (\
   HKEY     *hkey*,\
   PVALENTA *val\_list*,\
   DWORD    *num\_vals*,\
   LPSTR    *lpValueBuf*,\
   LPDWORD  *ldwTotsize*\
  )

## DESCRIPTION

Retrieves the type and data for a list of value names associated with a key.

## PARAMS

hKey **\[In\]**  Handle to an open key.

*val\_list* **\[Out\]**  Array of **VALENT** structures that describes the entries.

*num\_vals* **\[In\]**  Number of elements in *val\_list*.

*lpValueBuf* **\[Out\]**  Pointer to a buffer that receives the data for each value.

*ldwTotsize* **\[In/Out\]**  Size of *lpValueBuf*.

## RETURNS

**Success:** **ERROR\_SUCCESS**. *ldwTotsize* contains num bytes copied.

**Failure:** nonzero error code from Winerror.h *ldwTotsize* contains num needed bytes.

## IMPLEMENTATION

Declared in **"winreg.h"**.

Implemented in **"dlls/advapi32/registry.c"**.

Debug channel **"reg"**.
