Eryk Sun <eryk...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue22080> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com