TwclBluetoothRadio.HalCreateComPort(Int64,TGUID,Word) Method

Creates new virtual COM port.

Namespace: wclBluetooth
protected
 function HalCreateComPort(const Address: Int64; const Service: TGUID;
 out Number: Word): Integer; virtual; abstract;

Parameters

Address
Type: Int64

Remote device address.

Service
Type: TGUID

A service's UUID.

Number
Type: Word

If function completed with success the Number parameter contains a just created virtual COM port number.

Return Value

Type: Integer

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

A derived class must override this method to provide information about supported Bluetooth driver (API).