I have an app that needs to know what serial ports are available. I
currently just open the registry key HKEY_LOCAL_MACHINE\hardware\devicemap
\serialcomm and get the port names. This has worked for years, but under
Vista it does not. I looked with regedit and the names are there but the
open key fails. I suspect it is some "enhanced" security feature...
As I said I have been using it for a long time because it worked, but
perhaps there is a better "recommended" way of doing this?
Does anybody know of another way?
|