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

# RegEnumKeyW(3w)

## NAME

**RegEnumKeyW** (ADVAPI32.@)

## SYNOPSIS

LSTATUS RegEnumKeyW\
  (\
   HKEY   *hkey*,\
   DWORD  *index*,\
   LPWSTR *name*,\
   DWORD  *name\_len*\
  )

## DESCRIPTION

Enumerates subkeys of the specified open reg key.

## PARAMS

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

dwIndex **\[In\]**  Index of the subkey of hKey to retrieve.

lpName **\[Out\]**  Name of the subkey.

cchName **\[In\]**  Size of lpName in **TCHARS**.

## RETURNS

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

**Failure:** system error code. If there are no more subkeys available, the function returns **ERROR\_NO\_MORE\_ITEMS**.

## IMPLEMENTATION

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

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

Debug channel **"reg"**.
