win32api.RegSaveKeyEx

RegSaveKeyEx(Key, File, SecurityAttributes, Flags)

Extended version of RegSaveKey

Parameters

Key : PyHKEY

Handle to a registry key or one of HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER

File : PyUnicode

Name of file in which to save data. File must not already exist.

SecurityAttributes=None : PySECURITY_ATTRIBUTES

Specifies security for the file to be created

Flags=REG_LATEST_FORMAT : int

One of REG_STANDARD_FORMAT,REG_LATEST_FORMAT,REG_NO_COMPRESSION (from winnt.py)

Comments

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

SE_BACKUP_NAME privilege must be enabled.

Win32 API References

Search for RegSaveKeyEx at msdn, google or google groups.