System.IO.Ports.SerialPort.GetPortNames() returns unapplicable values

  • Thread starter Thread starter Johannes Bialek
  • Start date Start date
J

Johannes Bialek

Hi,

when I call "System.IO.Ports.SerialPort.GetPortNames()" on my Dell Axim x50v
(german WM5 upgrade installed) only ["COM3"] is returned. The other existing
ports ("COM1","COM2","COM5","COM9") do work when using them for the
constructor of SerialPort but are not returned.
How does the compact framework get the available ports?
I know there must be some location in the registry where the available ports
are listet, could anyone please tell me?

Thanks for your time,
Johannes
 
I would think it would enumerate through HKLM\Drivers\Active looking for
anything pointing to the serial driver.

-Chris
 
Johannes

Chris is right about Drivers/Active, but also look at Drivers/BuiltIn where
you can pick up the FriendlyName for each corresponding COM port found in
Active, if they have one.

I've got no idea why GetPortNames comes up short, I've never tried it.

Graham
 
Back
Top