Don wrote:
On Dec 15, 2:07 pm, "Don" <don...@gmail.comwrote:
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACHIN\\EHARDWARE\\DEVICEMAP\\SERIALCOM M, but all that tells
me is which ones actually exist. Is there a way to get the names of
the devices, such as those shown in the Device Manager under "Ports"?
"For example, C++ code design, syntax, style, rules, bugs, etc."
I thought that my question was on topic, basically asking if there was
a c++ call to access a particular system parameter. If I was mistaken,
my apologies.
The key to understanding why that sort of question is off-topic is to
remember that C++ can be used to program a whole range of devices, much
wider than just desktop PCs. Any question that doesn't apply to all
platforms that C++ could be programmed for is probably off-topic. Your
question mentioned registrey keys and the Device Manager. These are
Windows concepts. Any solution that involves registrey keys and the
Device Manager will, by definition, be specific to Windows, which
automatically makes it off-topic.
Windows PCs, computers running Unix and Macs are all likely to have
various ports (serial, USB for example). Hypothetically, one could
imagine a C++ call available on all three platforms that allows you to
enumerate and use the available ports. Such a call would not be Windows
specific only but would be specific to the three platforms I mentioned,
so still off-topic.
HTH
Gavin Deane