Skip to content

Latest commit

 

History

History
147 lines (96 loc) · 4.21 KB

nf-shlwapi-shregsetvalue.md

File metadata and controls

147 lines (96 loc) · 4.21 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shlwapi.SHRegSetValue
SHRegSetValue function (shlwapi.h)
Not supported. (SHRegSetValue)
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_PERFORMANCE_DATA
HKEY_USERS
SHRegSetValue
SHRegSetValue function [Windows Shell]
_shell_SHRegSetValue
shell.SHRegSetValue
shlwapi/SHRegSetValue
shell\SHRegSetValue.htm
shell
64accb02-0d1f-47bf-bc3c-2db7688764f1
12/05/2018
HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_PERFORMANCE_DATA, HKEY_USERS, SHRegSetValue, SHRegSetValue function [Windows Shell], _shell_SHRegSetValue, shell.SHRegSetValue, shlwapi/SHRegSetValue
shlwapi.h
Shlwapi.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Shlwapi.dll
Windows
19H1
SHRegSetValue
shlwapi/SHRegSetValue
c++
APIRef
kbSyntax
DllExport
Shlwapi.dll
SHRegSetValue

SHRegSetValue function

-description

Not supported.

Sets a registry value.

Use RegSetValue in its place.

-parameters

-param hkey [in]

Type: HKEY

A handle to the currently open key, or any of the following predefined values.

HKEY_CLASSES_ROOT

HKEY_CURRENT_CONFIG

HKEY_CURRENT_USER

HKEY_LOCAL_MACHINE

HKEY_PERFORMANCE_DATA

HKEY_USERS

-param pszSubKey [in]

Type: LPCWSTR

A pointer to a null-terminated string that specifies the relative path from hkey to the subkey from which to retrieve the value. This parameter can be NULL or an empty string, in which case the data is retrieved from the hkey location.

-param pszValue [in]

Type: LPCWSTR

A pointer to a null-terminated string that contains the name of the value. This parameter can be NULL or an empty string, in which case the data is retrieved from the Default value.

-param srrfFlags [in]

Type: SRRF

One or more of the SRRF flags that restricts the data to be set. At least one type restriction (SRRF_RT) value must be specified.

-param dwType [in]

Type: DWORD

The DWORD that indicates the type of data stored in the value to be set. When using default values, the input dwType is the type of the default value. For possible values, see Registry Data Types. If the SRRF_NOEXPAND flag is not set, REG_EXPAND_SZ types are automatically expanded and returned as REG_SZ. If type information is not required, this parameter can be NULL.

-param pvData [in]

Type: LPCVOID

A pointer to a buffer that contains the value's data. This parameter can be NULL if the data is not needed.

-param cbData [in]

Type: DWORD

The size of the source data buffer pvData, in bytes. This value can be NULL only if pvData is NULL.

-returns

Type: LONG

Returns ERROR_SUCCESS if successful, or a nonzero error code defined in Winerror.h otherwise. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to retrieve a generic description of the error.

-see-also

RegSetKeyValue