RegDeleteValue

RegDeleteValue removes the specified value from the specified registry key.

Syntax

Copy
LONG RTAPI RegDeleteValue(
    [in]            HKEY       hKey,
    [in, optional]  LPCTSTR    lpValueName 
  );

Parameters

[in] hKey

Handle to an open registry key. The key must have been opened with the KEY_SET_VALUE access right.

[in, optional] lpValueName

Registry value to be removed.

Return Value

If the function succeeds, it returns ERROR_SUCCESS. If the function fails, it returns a non-zero error code.

Remarks

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

windows.h

wRTOS_rtss.lib

See Also: