Undocumented functions of NTDLL

2OO1, 21 February


NtReplaceKey
NtReplaceKey

NTSYSAPI 
NTSTATUS
NTAPI

NtReplaceKey(
IN POBJECT_ATTRIBUTES NewHiveFileName, IN HANDLE KeyHandle, IN POBJECT_ATTRIBUTES BackupHiveFileName );



Function NtReplaceKey save specified hive key to file, and starts use this file instread of original hive file. Original hive file contents is replaced with contents of third hive file, specified below.





Example:

NewHiveFile -> OrginalHiveFile -> BackupHiveFile

Before call to NtReplaceKey system uses OriginalHiveFile.
After call, system use BackupHiveFile.



Documented by:
Tomasz Nowak



Requirements:
Library: ntdll.lib


See also:
NtLoadKey
NtLoadKey2
NtRestoreKey
NtSaveKey
NtUnloadKey