I have inherited a large VB6 program that uses a lot of MSComm controls to manage a lot of special hardware devices. I need to attach some C code (via dlls) and I need it to interact with these ports. Is there any way to extract the handle of the open port from an MSComm, so that I could use it with Windows API calls?

It's ok if it's ugly, it just needs to work.