Hello!
System has a device called a "standard modem connection for Bluetooth" (that is my phone paired to pc via bluetooth).
This modem is hanging on port COM4. But when i try to connect to him (MScomm1.CommPort = 4) does not lead to success.
I'm enumerate all the ports, but everywhere there is no connection.
But in HyperTerminal if i select "Standard modem connection on Bluetooth", then everything is fine, comes RING event...
How HyperTerminal determines which port is sitting on a "standard modem connection Bluetooth"?

One person suggested enumerate all devices such as modem using SetapApi and read property AttachTo allegedly HyperTerminal uses the property that is to be connected.

How can i connect to a Bluetooth device directly from vb code?