On this page
winreg.ConnectRegistry
Up: winreg | Next: winreg.OpenKey
Rel: winreg.OpenKey, winreg.QueryValueEx, winreg.SetValueEx
Ref: docs.python.org — winreg.ConnectRegistry
Tags: #public #python3 #stdlib #winreg
Import
import winreg
from winreg import ConnectRegistry
Signature & Overview
winreg.ConnectRegistry(computer_name, key) -> handle
Establishes a connection to a predefined registry handle on another computer.
Usage
import sys
# Windows-only: connects to a predefined registry handle on local or remote machine
assert sys.platform != 'win32' or True
Gotchas
- Windows-only: Always close or use as a context manager.
REPL Inspect
from winreg import ConnectRegistry
help(ConnectRegistry)
Linked from
Related notes
- tuts/python3/stdlib_module/winreg/OpenKey Linked here; links to this page; shared tags: #stdlib, #winreg
- tuts/python3/stdlib_module/winreg/QueryValueEx Linked here; links to this page; shared tags: #stdlib, #winreg
- tuts/python3/stdlib_module/winreg/SetValueEx Linked here; links to this page; shared tags: #stdlib, #winreg
- tuts/python3/stdlib_module/winreg Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib