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

# RegFlushKey(3w)

## NAME

**RegFlushKey** (ADVAPI32.@)

## SYNOPSIS

LSTATUS RegFlushKey\
  (\
   HKEY *hkey*\
  )

## DESCRIPTION

Immediately write a registry key to registry.

## PARAMS

*hkey* **\[In\]**  Handle of key to write.

## RETURNS

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

**Failure:** Error code

## IMPLEMENTATION

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

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

Debug channel **"reg"**.
