Python _winreg module

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.