SHSetValueA(3w)

SHSetValueA3w

Usage

DWORD SHSetValueA
(
HKEY hKey,
LPCSTR lpszSubKey,
LPCSTR lpszValue,
DWORD dwType,
LPCVOID pvData,
DWORD cbData
)

Overview

Set a value in the registry.

Params

hKey [In] Handle to registry key.

lpszSubKey [In] Name of sub key under hKey.

lpszValue [In] Name of value to set.

dwType [In] Type of the value.

pvData [In] Data of the value.

cbData [In] Size of the value.

Returns

Success: ERROR_SUCCESS. The value is set with the data given.

Failure: An error code from RegCreateKeyExA(3w) or RegSetValueExA(3w).

Notes

If lpszSubKey does not exist, it is created before the value is set. If lpszSubKey is NULL or an empty string, then the value is added directly to hKey instead.

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.