Need Base addresses of COM- and LPT-Ports

I know the name of the port by api call enum ports, but I dont get the
base address.
Now I need a function which give me the base address of the named port
I know that it is listed somewhere in the registry but for every
computer on another
place and I cant find it automatically.
Where Win95 or NT notes the complete route to the address?
Early reply is needed, many thanks in advance

  vcard.vcf
< 1K Download