Skip to content

Latest commit

 

History

History
133 lines (84 loc) · 3.45 KB

nf-shlwapi-shdeletevaluew.md

File metadata and controls

133 lines (84 loc) · 3.45 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.SHDeleteValueW
SHDeleteValueW function (shlwapi.h)
Deletes a named value from the specified registry key. (Unicode)
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_PERFORMANCE_DATA
HKEY_USERS
SHDeleteValue
SHDeleteValue function [Windows Shell]
SHDeleteValueW
_win32_SHDeleteValue
shell.SHDeleteValue
shlwapi/SHDeleteValue
shlwapi/SHDeleteValueW
shell\SHDeleteValue.htm
shell
54f3459b-486c-4907-84b1-39b1f8abb12d
12/05/2018
HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_PERFORMANCE_DATA, HKEY_USERS, SHDeleteValue, SHDeleteValue function [Windows Shell], SHDeleteValueA, SHDeleteValueW, _win32_SHDeleteValue, shell.SHDeleteValue, shlwapi/SHDeleteValue, shlwapi/SHDeleteValueA, shlwapi/SHDeleteValueW
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
SHDeleteValueW (Unicode) and SHDeleteValueA (ANSI)
Shlwapi.lib
Shlwapi.dll (version 4.71 or later)
Windows
19H1
SHDeleteValueW
shlwapi/SHDeleteValueW
c++
APIRef
kbSyntax
DllExport
Shlwapi.dll
API-MS-Win-DownLevel-shlwapi-l2-1-0.dll
ShCore.dll
API-MS-Win-DownLevel-shlwapi-l2-1-1.dll
API-MS-Win-ShCore-Registry-l1-1-0.dll
API-MS-Win-ShCore-Registry-l1-1-1.dll
SHDeleteValue
SHDeleteValueA
SHDeleteValueW

SHDeleteValueW function

-description

Deletes a named value from the specified registry key.

-parameters

-param hkey

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

Type: LPCTSTR

The address of a null-terminated string specifying the name of the subkey for which to change the value.

-param pszValue

Type: LPCTSTR

The address of the value to be deleted.

- hkey.HKEY_CLASSES_ROOT
- hkey.HKEY_CURRENT_CONFIG
- hkey.HKEY_CURRENT_USER
- hkey.HKEY_LOCAL_MACHINE
- hkey.HKEY_PERFORMANCE_DATA
- hkey.HKEY_USERS

-returns

Type: LSTATUS

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.

-remarks

Note

The shlwapi.h header defines SHDeleteValue as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.