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

# RegUnLoadKeyW(3w)

## NAME

**RegUnLoadKeyW** (ADVAPI32.@)

## SYNOPSIS

LSTATUS RegUnLoadKeyW\
  (\
   HKEY    *hkey*,\
   LPCWSTR *lpSubKey*\
  )

## DESCRIPTION

Unload a registry key and its subkeys from the registry.

## PARAMS

*hkey* **\[In\]**  Handle of open key.

*lpSubKey* **\[In\]**  Address of name of subkey to unload.

## RETURNS

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

**Failure:** nonzero error code from Winerror.h

## IMPLEMENTATION

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

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

Debug channel **"reg"**.
