SHRegSetUSValueA(3w)

SHRegSetUSValueA3w

Usage

LONG SHRegSetUSValueA
(
LPCSTR pszSubKey,
LPCSTR pszValue,
DWORD dwType,
LPVOID pvData,
DWORD cbData,
DWORD dwFlags
)

Overview

Set a user-specific registry value.

Params

pszSubKey [In] Name of key to set the value in.

pszValue [In] Name of value under pszSubKey to set the value in.

dwType [In] Type of the value.

pvData [In] Data to set as the value.

cbData [In] length of pvData.

dwFlags [In] SHREGSET_ flags from "shlwapi.h".

Returns

Success: ERROR_SUCCESS

Failure: An error code from SHRegOpenUSKeyA(3w) or SHRegWriteUSValueA(3w), or ERROR_INVALID_FUNCTION if pvData is NULL.

Notes

This function opens pszSubKey, sets the value, and then closes the key.

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.