RegReplaceKey function advapi32
Replaces the file backing a registry key and all its subkeys with another file, so that when the system is next started, the key and subkeys will have the values stored in the new file.
LSTATUS RegReplaceKeyW(
HKEY hKey,
LPCWSTR lpSubKey,
LPCWSTR lpNewFile,
LPCWSTR lpOldFile);
Implementation
int RegReplaceKey(int hKey, Pointer<Utf16> lpSubKey, Pointer<Utf16> lpNewFile,
Pointer<Utf16> lpOldFile) =>
_RegReplaceKey(hKey, lpSubKey, lpNewFile, lpOldFile);