|
![]() |
The DevSpecific method enables service providers to provide access to features not offered by other TAPI functions. The meaning of the extensions are device specific, and taking advantage of these extensions requires the application to be fully aware of them. If ThbTapiLine works in asynchronous mode, the OnDevSpecificReply and OnDevSpecificTimeout events are used to return the results of the device specific request. This operation is only available if the application has successfully negotiated a device-specific extension version. You are able to pass a memory block to the TSP using the Params and Size parameters. This memory block is given to the TSP and used to return results from the TSP also. The data is copied to an internal buffer of ThbTapiLine and returen at the OnDevSpecificReply event. Within this event, you are able to get the result of the device specific function call if you are working in asynchronous mode.
Declarationprocedure DevSpecific(Params: Pointer; Size: DWORD;
Address: ThbTapiAddress = nil; Call: ThbTapiCall = nil); Example
RemarksPlease refer to the section "lineDevSpecific" in TAPI's documentation for a more detailed information. This function works in an asynchronous manner. See the SyncMode property to read more about the handling of asynchronous functions. ErrorsUsing this function may cause an EhbTapiError exception . Possible errors are: LINEERR_INVALADDRESSID, LINEERR_OPERATIONUNAVAIL, LINEERR_INVALCALLHANDLE, LINEERR_OPERATIONFAILED, LINEERR_INVALLINEHANDLE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPOINTER, LINEERR_UNINITIALIZED, LINEERR_NOMEM See AlsoThbTapiLine.OnDevSpecificReply, ThbTapiLine.OnDevSpecificTimeout |