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

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
 
G

Guest

I would think it would enumerate through HKLM\Drivers\Active looking for
anything pointing to the serial driver.

-Chris
 
G

Graham McKechnie

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top