RegDeleteKeyValue function advapi32

WIN32_ERROR RegDeleteKeyValue(
  1. HKEY hKey,
  2. PCWSTR? lpSubKey,
  3. PCWSTR? lpValueName
)

Removes the specified value from the specified registry key and subkey.

To learn more, see learn.microsoft.com/windows/win32/api/winreg/nf-winreg-regdeletekeyvaluew.

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegDeleteKeyValue(
  HKEY hKey,
  PCWSTR? lpSubKey,
  PCWSTR? lpValueName,
) =>
    .new(_RegDeleteKeyValue(hKey, lpSubKey ?? nullptr, lpValueName ?? nullptr));