RegDeleteKeyEx function advapi32

WIN32_ERROR RegDeleteKeyEx(
  1. HKEY hKey,
  2. PCWSTR lpSubKey,
  3. int samDesired
)

Deletes a subkey and its values from the specified platform-specific view of the registry.

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

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegDeleteKeyEx(HKEY hKey, PCWSTR lpSubKey, int samDesired) =>
    .new(_RegDeleteKeyEx(hKey, lpSubKey, samDesired, NULL));