The very best way to determine the list of COM ports is to use GetDefaultCommConfig(). If you can get info, it exists, that's it.

There are more advanced solutions, these require functions in SETUPAPI.DLL such as SetupDiEnumDeviceInfo() and is not for the faint of heart. With this interface you can get all the information shown in the Device Manager applet including drivers and physical location.

Don't dig in the registry, this is not recommended, especially when documented interfaces exist.

Simon Brown, HB9DRV

----- Original Message ----- From: "G4ILO" <[EMAIL PROTECTED]>

The Windows K3 Utility, like many Windows programs that obtain the
machine's
inventory of serial ports, enumerates the registry values under
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM.

Yep, that's the way I did it, too. That registry key does not exist under
wine, and attempts to manually create it result in an error message.

_______________________________________________
Elecraft mailing list
Post to: [email protected]
You must be a subscriber to post to the list.
Subscriber Info (Addr. Change, sub, unsub etc.):
http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/subscribers.htm
Elecraft web page: http://www.elecraft.com

Reply via email to