Click or drag to resize

wclBluetoothRadioCreateComPort Method

Creates new virtual COM port.

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public int CreateComPort(
	long Address,
	Guid Service,
	out ushort Number
)

Parameters

Address  Int64
Remote device address.
Service  Guid
A service's UUID.
Number  UInt16
If function completed with success the Number parameter contains a just created virtual COM port number.

Return Value

Int32
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
Remarks

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

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

See Also