SHDeleteEmptyKeyA(3w)

SHDeleteEmptyKeyA3w

Usage

DWORD SHDeleteEmptyKeyA
(
HKEY hKey,
LPCSTR lpszSubKey
)

Overview

Delete a registry key with no sub keys.

Params

hKey [In] Handle to registry key.

lpszSubKey [In] Name of sub key to delete.

Returns

Success: ERROR_SUCCESS. The key is deleted.

Failure: If the key is not empty, returns ERROR_KEY_HAS_CHILDREN. Otherwise returns an error code from RegOpenKeyExA(3w), RegQueryInfoKeyA(3w) or RegDeleteKeyA().

Implementation

Declared in "shlwapi.h".

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

Debug channel "shell".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.