Add enumeration through the SERIALCOMM registry entry
authorDenis Shienkov <denis.shienkov@gmail.com>
Thu, 30 Jan 2014 15:52:48 +0000 (19:52 +0400)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Feb 2014 10:31:39 +0000 (11:31 +0100)
commit78b8866c4d3e846f3dd142bc4bac38385298dc40
treecc2aec9b5c755317a85b3d601763f0ee669f711a
parent3660b4d0ca3dae1c69a3f4e817561844a37d334e
Add enumeration through the SERIALCOMM registry entry

When using some software that provide an virtual serial
ports functionality is impossible to use the Win32 SetupAPI
feature to enumerate these serial ports.

For example, such software is "Virtual Serial Ports Emulator"
from Eterlogic: http://www.eterlogic.com/Products.VSPE.html

The only possible simple way to detect these serial ports
it to read the registry key HARDWARE\\DEVICEMAP\\SERIALCOMM:

http://msdn.microsoft.com/en-us/library/windows/hardware/ff546502%28v=vs.85%29.aspx

In this case it is possible to get only a name of the serial
port without any additional information.

This method is simply addition to the main SetupAPI functionality.

Task-number: QTBUG-36526
Change-Id: Ib505aee66b74b6a8ebe16cf88c3060c8267397a0
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
src/serialport/qserialportinfo_win.cpp