RegDeleteTree function advapi32

WIN32_ERROR RegDeleteTree(
  1. HKEY hKey,
  2. PCWSTR? lpSubKey
)

Deletes the subkeys and values of the specified key recursively.

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

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegDeleteTree(HKEY hKey, PCWSTR? lpSubKey) =>
    WIN32_ERROR(_RegDeleteTree(hKey, lpSubKey ?? nullptr));