RegDeleteKeyTransacted function advapi32

WIN32_ERROR RegDeleteKeyTransacted(
  1. HKEY hKey,
  2. PCWSTR lpSubKey,
  3. int samDesired,
  4. HANDLE hTransaction,
)

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

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

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegDeleteKeyTransacted(
  HKEY hKey,
  PCWSTR lpSubKey,
  int samDesired,
  HANDLE hTransaction,
) => .new(
  _RegDeleteKeyTransacted(
    hKey,
    lpSubKey,
    samDesired,
    NULL,
    hTransaction,
    nullptr,
  ),
);