Windows API reference
RegRestoreKeyW
Replaces a registry key with the contents of a hive file.
- Library
- Advapi32.dll
- Category
- Registry, Persistence
- Suspicion
- high
Detection summary
RegRestoreKeyW maps to Microsoft-Windows-Kernel-Registry; these events record the OS effect, not the API call.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Kernel-Registry
- Notes: Microsoft-Windows-Kernel-Registry records registry operations at high volume when enabled.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Every Windows application and installer.
Related APIs
- RegSaveKeyW — Advapi32.dll