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

# RegLoadKeyW(3w)

## NAME

**RegLoadKeyW** (ADVAPI32.@)

## SYNOPSIS

LSTATUS RegLoadKeyW\
  (\
   HKEY    *hkey*,\
   LPCWSTR *subkey*,\
   LPCWSTR *filename*\
  )

## DESCRIPTION

Create a *subkey* under **HKEY\_USERS** or **HKEY\_LOCAL\_MACHINE** and store registration information from a specified file into that *subkey*.

## PARAMS

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

*subkey* **\[In\]**  Address of name of *subkey*.

*filename* **\[In\]**  Address of *filename* for registry information.

## 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"**.
