pywin32
pywin32 copied to clipboard
`win32trace` global namespace handling may be simplified
Taking this as a technical debt note:
win32trace has special handling for pre-win2k/XP when it comes to global namespace.
It seems the code can likely be simplified now that the minimal supported Windows version is Windows 7 (Windows 8 for Python 3.9+).
https://github.com/mhammond/pywin32/blob/e319b77d5f9b3ca231aa4ef40341966e711f5701/win32/src/win32trace.cpp#L43-L75
https://github.com/mhammond/pywin32/blob/e319b77d5f9b3ca231aa4ef40341966e711f5701/win32/src/win32trace.cpp#L590-L613
If the described Windows Vista (and above?) permission issue causes this special handling to still be valid, the comments can at least be updated.