I'm having this issue right now. I was troubleshooting a completely different issue, so I uninstalled and reinstalled com0com. Now none of my previously working ports are working and I have the same Code 52 as stated above. My computer did update some things also recently, but windows won't let me revert.
I am building a python application (Windows) that needs to call com0com as a subprocess to setup virtual com port pairs that will then be used by the application. The com0com installation I have comes with setupc.exe, but I'm having trouble sending commands to it with python or calling it form any command line/terminal. The first issue is that Window's UAC requires the user to manually allow the program to run because it is an "unknown publisher". I've tried setting the permissions of setupc.exe...