Home  >> Developers Forum  >> Can't find a way to find BlueSoliel's virtual com ports using Windows Setup API

xray

Add new friend

Join Date:2016/1/29

Location:

Posts:1

Posted at 2016-01-29 09:15:37
[ Can't find a way to find BlueSoliel's virtual com ports using Windows Setup API ]

In the Device Manager in "Ports", I have a number of COM and the virtual COM ports are listed correctly.  I have noticed that the BlueSoleil virtual COM ports are not listed when I query via the Windows Setup API.

Class "Ports" {4d36e978-e325-11ce-bfc1-08002be10318} and GUID_DEVINTERFACE_COMPORT {86E0D1E0-8089-11D0-9CE4-08003E301F73} will list the usual com port but not the virtual com ports.

I shall list the property values from the device properties as shown in the Device Manager.  the 1st value is a normal com port and the 2nd value is a virtual com port.

    Device class:  same ("ports")
    Device class guid:  same ({4d36e978-e325-11ce-bfc1-08002be10318})
    Device description:  Communications Port, Bluetooth Serial port
    Service:  Serial, BTCOM

It works with the Microsoft Bluetooth stack but not BlueSoleil.  Any idea why it's not being listed when queried by code using the Windows Setup API?

Clock

Add new friend

Join Date:2012/11/8

Location: United States of America

Posts:1

Posted at 2016-02-09 01:20:57

I think setupapi is undocumented or unsupported API according to MS.  There are at least 3 different methods of getting all the com ports on the PC.


1.  System.IO.Ports.SerialPort.GetPortNames()

2.  WMI - Select * from WIN32_SerialPort

3.  Registry - HKLM - HARDWARE\DEVICEMAP\SERIALCOMM


For getting all serial ports, I'm using the registry.


For determining if the port is a Blue Soleil port, I loop through all ports from the registry, and use WMI to get the Device Manufacturer of each port.  If the manufacturer is IVT, I treat it as a Blue Soleil serial port.


poonam

Add new friend

Join Date:2020/2/14

Location: India

Posts:0

ligape

Add new friend

Join Date:2022/4/19

Location: United States of America

Posts:7

Posted at 2022-04-19 21:03:31

sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex   sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex  sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex 

sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex  sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex 

sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex  sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex 

sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex  sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex 

sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex  sex sex sex sex sex sex sex sex sex sex sex sex sex sex sex












 

NOTE:
1.The reply should be more than 20 characters.
2.Image Size: less than 1MB, max pixel: 300 * 300.