ThbTapiPhone.Active
Unit: hbTapi
 

This property activates and deactivates the telephony phone device. In TAPI the lineOpen/lineClose functions are called. The privleges defined in the ThbTapiPhone.Privileges properties are used when opening (activating) the device.

Example

TapiPhone1.DeviceName := 'Find+Phone TSP v2.0';
if TapiPhone1.Available the
try
  TapiPhone1.Active := True;
except
  on E:EhbTapiError do
    MessageDlg('Error opening phone device: ' + E.Message, mtError, [mbOk],0);
end;

Availability

Design-Time: Read, Write / Run-Time: Read, Write

Declaration

property Active: Boolean;

Errors

Using this property may cause an EhbTapiError exception. Possible errors are:

PHONEERR_ALLOCATED, PHONEERR_NODRIVER, PHONEERR_BADDEVICEID, PHONEERR_NOMEM, PHONEERR_INCOMPATIBLEAPIVERSION, PHONEERR_OPERATIONFAILED, PHONEERR_INCOMPATIBLEEXTVERSION, PHONEERR_OPERATIONUNAVAIL, PHONEERR_INVALAPPHANDLE, PHONEERR_RESOURCEUNAVAIL, PHONEERR_INVALPOINTER, PHONEERR_UNINITIALIZED, PHONEERR_INVALPRIVILEGE, PHONEERR_REINIT, PHONEERR_INUSE, PHONEERR_NODEVICE, PHONEERR_INIFILECORRUPT.

See Also

ThbTapiPhone.Privileges