[issue22080] Add windows_helper module helper

Eryk Sun report at bugs.python.org
Wed Feb 24 12:11:36 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

I rewrote windows_helper.py with cleaner ctypes code, better error handling, the correct implementation of restoring the previous privilege state, and without leaking the handle for the process token. It's kind of limited as a "Windows helper" module. It's just handling privileges, at least for now. This helper was intended to help with testing bpo-21518 (add winreg.UnLoadKey), another contribution from Claudiu.

----------
versions: +Python 3.10, Python 3.9 -Python 3.5, Python 3.6
Added file: https://bugs.python.org/file49832/windows_helper.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue22080>
_______________________________________


More information about the Python-bugs-list mailing list