For reference, this was the old API:
https://docs.microsoft.com/en-us/visualstudio/debugger/how-t...
This was well known, and many applications actually used that. Of course it was very ugly. I don't think it would have been a problem to also rename a given thread multiple times, but not sure.