Bluetooth Framework C++ Edition

◆ CreateComPort()

int CreateComPort ( const __int64  Address,
const GUID &  Service,
unsigned short &  Number 
)

Creates new virtual COM port.

Parameters
AddressRemote device address.
ServiceA service's UUID.
NumberIf function completed with success the Number parameter contains a just created virtual COM port number.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

A created vCOM is valid only while radio object is available.

The Service parameter can be Serial Port Profile or DialUp Networking Profile UUID.