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

# SHEnumKeyExA(3w)

## NAME

**SHEnumKeyExA** (SHLWAPI.@)

## SYNOPSIS

LONG SHEnumKeyExA\
  (\
   HKEY    *hKey*,\
   DWORD   *dwIndex*,\
   LPSTR   *lpszSubKey*,\
   LPDWORD *pwLen*\
  )

## DESCRIPTION

Enumerate sub keys in a registry key.

## PARAMS

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

*dwIndex* **\[In\]**  Index of key to enumerate.

*lpszSubKey* **\[Out\]**  Pointer updated with the subkey name.

*pwLen* **\[Out\]**  Pointer updated with the subkey length.

## RETURNS

**Success:** **ERROR\_SUCCESS**. *lpszSubKey* and *pwLen* are updated.

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

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
