For more information, please refer to: https://docs.python.org/2/library/_winreg.html
First, the function of common functions introduced
Openkey ()-Open a key
Closekey () – Close a key
Import= WG. Openkey (WG. Hkey_current_user,r"software\microsoft\windows\currentversion\explorer") WG. Closekey (key_test)
CreateKey () – Create a key
DeleteKey () – Delete a key
Import= WG. Openkey (WG. Hkey_current_user,r"software\microsoft\windows\currentversion\explorer") WG. Closekey (KEY_TEST) WG. CreateKey (key_test,'sub_hester') WG. Closekey (key_test)
DeleteValue () – Delete the value inside a key (value)
EnumKey () – Index a subkey inside a key that is already open
Enumvalue () – Index the value in the open key
Flushkey () – Writeback all key properties changed to registry
Loadkey () – Read-in key information from the specified file
Openkey () – Open a key
Openkeyex ()
QueryValue () – Retrieves the path of a key in the registry
QueryValueEx () – Retrieves the path of a key in the registry
Queryinfokey () – Returns information about the key
Savekey () – Save key to file
SetValue () – Set a key
SetValueEx () – Set a value
Connectregistry () – The registry that links to other machines
Python _winreg module