RegDeleteValue function advapi32

WIN32_ERROR RegDeleteValue(
  1. HKEY hKey,
  2. PCWSTR? lpValueName
)

Removes a named value from the specified registry key.

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

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegDeleteValue(HKEY hKey, PCWSTR? lpValueName) =>
    WIN32_ERROR(_RegDeleteValue(hKey, lpValueName ?? nullptr));