RegDeleteKey function advapi32

WIN32_ERROR RegDeleteKey(
  1. HKEY hKey,
  2. PCWSTR lpSubKey
)

Deletes a subkey and its values.

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

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegDeleteKey(HKEY hKey, PCWSTR lpSubKey) =>
    WIN32_ERROR(_RegDeleteKey(hKey, lpSubKey));