TwclBluetoothRadio.Terminate Method

Terminates the discovering of remote Bluetooth enabled devices.

Namespace: wclBluetooth
public
 function Terminate: Integer;

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.

On legacy Windows (Windows XP, Vista, 7, 8 and 8.1) platforms with Microsoft Bluetooth drivers the Terminate method does not terminate discovering but simple indicates that the discovering result should be ignored and keeps discovering thread runs in background. If you call the Close method right after Terminate call and the discovering has not been completed yet you may get delay with the Close method return because it has to wait for the discovering thread completion.