|
Application Message Notification Mechanisms
TAPI 2.0 and above support three mechanisms for notifying applications of
changes in the status of calls, lines, and phones: a callback function, Win32
events, and completion ports. These are described in detail in the documentation for lineInitializeEx and phoneInitializeEx.
Prior to TAPI version 0x0002000, only one such mechanism existed: the callback
function. When the callback mechanism is used, the application's callback
function is invoked from within the application's thread (at the time the
application calls the GetMessage function), providing a normal, fully functional execution environment in
which all Win32 APIs can be safely invoked.
A LINE_REPLY or PHONE_REPLY (asynchronous completion) message sent to the
application carries the request ID and an error indication. Valid error indications
for this reply are identical to those that are returned synchronously for the
associated request, or zero for success. Only the application that issued the
request will receive the reply message, but when the request causes changes in
the state of the device or call, other interested applications may also receive
event-related messages.
TAPI guarantees that a reply message is made for every request that operates
asynchronously, unless the application shuts down TAPI (by calling lineShutdown or phoneShutdown) before the reply is received.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Unix Manual Pages
|