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

# RtlWriteRegistryValue(3w)

## NAME

**RtlWriteRegistryValue** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlWriteRegistryValue\
  (\
   ULONG  *RelativeTo*,\
   PCWSTR *path*,\
   PCWSTR *name*,\
   ULONG  *type*,\
   PVOID  *data*,\
   ULONG  *length*\
  )

## DESCRIPTION

Sets the registry value with provided *data*.

## PARAMS

*RelativeTo* **\[In\]**  Registry *path* that *path* parameter refers to.

*path* **\[In\]**  Path to the key (or handle **-** see RTL\_GetKeyHandle).

*name* **\[In\]**  Name of the registry value to set.

*type* **\[In\]**  Type of the registry key to set.

*data* **\[In\]**  Pointer to the user *data* to be set.

*length* **\[In\]**  Length of the user *data* pointed by *data*.

## RETURNS

**STATUS\_SUCCESS** if the specified key is successfully set, or an **NTSTATUS** error code.

## IMPLEMENTATION

Declared in **"winternl.h"**.

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

Debug channel **"reg"**.
