RegSaveKeyEx function advapi32

WIN32_ERROR RegSaveKeyEx(
  1. HKEY hKey,
  2. PCWSTR lpFile,
  3. Pointer<SECURITY_ATTRIBUTES>? lpSecurityAttributes,
  4. REG_SAVE_FORMAT flags,
)

Saves the specified key and all of its subkeys and values to a registry file, in the specified format.

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

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegSaveKeyEx(
  HKEY hKey,
  PCWSTR lpFile,
  Pointer<SECURITY_ATTRIBUTES>? lpSecurityAttributes,
  REG_SAVE_FORMAT flags,
) => .new(_RegSaveKeyEx(hKey, lpFile, lpSecurityAttributes ?? nullptr, flags));