win32api.RegRestoreKey

RegRestoreKey(Key, File, Flags)

Restores a key and subkeys from a saved registry file

Parameters

Key : PyHKEY

Handle to registry key to be restored. Can also be one of win32con.HKEY_* values.

File : PyUnicode

File from which to restore registry data

Flags=0 : int

One of REG_FORCE_RESTORE,REG_NO_LAZY_FLUSH,REG_REFRESH_HIVE,REG_WHOLE_HIVE_VOLATILE (from winnt)

Comments

Implemented only as Unicode (RegRestoreKeyW). Accepts keyword arguments.

Requires SeBackupPrivilege and SeRestorePrivilege

Win32 API References

Search for RegRestoreKey at msdn, google or google groups.