RegSaveKey(key, filename, sa)
The RegSaveKey method saves the specified key, and all its subkeys to the specified
file.
Parameters
key : PyHKEY/int
An already open key, or any one of the following win32con
constants:
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERSfilename : string
The name of the file to save registry data to.
This file cannot already exist. If this filename includes an extension, it cannot be used on file allocation
table (FAT) file systems by the win32api::RegLoadKey, win32api::RegReplaceKey
, or win32api::RegRestoreKey methods.sa=None : PySECURITY_ATTRIBUTES
The security attributes of the created file.
Comments
If key represents a key on a remote computer, the path described by fileName is relative to the remote
computer.
The caller of this method must possess the SeBackupPrivilege security privilege.
Win32 API References
Search for RegSaveKey at msdn, google or google groups.