pywin32 icon indicating copy to clipboard operation
pywin32 copied to clipboard

`win32trace` global namespace handling may be simplified

Open Avasam opened this issue 2 months ago • 0 comments

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.

Avasam avatar Oct 18 '25 22:10 Avasam