#ifndef _NTREGAPI_H
/**
* Saves the specified registry key to a file.
*
* @param KeyHandle Handle to the registry key.
* @param FileHandle Handle to the file where the key will be saved.
* @return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSaveKey(
_In_ HANDLE KeyHandle,
_In_ HANDLE FileHandle
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSaveKey(
_In_ HANDLE KeyHandle,
_In_ HANDLE FileHandle
);
View code on GitHub
HANDLE
to any file created with write access.
Before use FileHandle
in other registry function without closing it, call NtFlushKey
with KeyHandle
as param.
Privilege: SE_BACKUP_NAME