**winreg**
- Windows registry access provides functions that expose the Windows registry API to Python. Windows registry is a collection of databases that stores the information and settings of software programs, hardware devices, user preferences, and operating-system configurations.
winreg
uses a handle object as the registry handle to ensure that the handles are closed correctly, even in cases where the programmer might forget to close them.
The handle object wraps a windows HKEY object and automatically closes it when the object is destroyed. It also supports comparison semantics, so two handle objects will compare true if both of them point to the same Windows underlying handle value.
Registry reflection is a process that copies registry keys and values between two registry views to keep them synchronized.
DisableReflectionKey
disables registry reflection for 32-bit processes running on a 64-bit operating system.
The function raises a
NotImplementedError
if executed on a 32-bit machine.
winreg.DisableReflectionKey(key)
key
is an already opened key or one of the predefined HKEY_* constants.
HKEY constants correspond to various registry entries such as environment variable settings, the physical state of the computer, user preferences, network connections, etc.This method raises an auditing event of the function. An audit event is raised when an OS system-level change is made to be reported to the system audit logger that runs as part of the kernel.