ThbTapiApplication.OnTapiMessage
 

This event is triggered each time the hbTapiApplication background instance hbTapiApplication receives a TAPI LINE_ or PHONE_ message.

This event is fired very often, due to you should use it with caution.

Availability

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

Declaration

procedure OnTapiMessage (Sender: TObject; MessageID, Device, CallbackInstance, Param1, Param2, Param3: DWORD) of Object;
property OnTapiMessage: ThbTapiDetailedMessageEvent;

Parameters

Sender
The hbTapiApplication instance.
Device
A handle to a line or phone device.
MessageID
A TAPI line or phone message.
CallbackInstance
Instance data passed back to the application. A ThbTapiLine or ThbTapiPhone object, depending on the MessageID.
Param1
A parameter for the message.
Param2
A parameter for the message.
Param3
A parameter for the message.

Remarks

Please refer to the sections "lineGetMessage", "phoneGetMessage", "LINEMESSAGE", "PHONEMESSAGE" in TAPI's documentation for a more detailed information.

See Also

ThbTapiLine.OnTapiMessage, ThbTapiPhone.OnTapiMessage, ThbTapiLine.CallbackInstance, ThbTapiPhone.CallbackInstance,