Tapi.par
上传用户:smiteryang
上传日期:2015-03-11
资源大小:87k
文件大小:220k
源码类别:

TAPI编程

开发平台:

Delphi

  1. {******************************************************************}
  2. {                                                                  }
  3. {       Borland Delphi Runtime Library                             }
  4. {       Telephony API interface unit                               }
  5. {                                                                  }
  6. { Portions created by Microsoft are                                }
  7. { Copyright (C) 1995-1999 Microsoft Corporation.                   }
  8. { All Rights Reserved.                                             }
  9. {                                                                  }
  10. { The original file is: tapi.h, released  March 1999.              }
  11. { The original Pascal code is: Tapi.pas, released 28 Dec 1999.     }
  12. { The initial developer of the Pascal code is Marcel van Brakel    }
  13. { (brakelm@bart.nl).                                               }
  14. {     }
  15. { Portions created by Marcel van Brakel are    }
  16. { Copyright (C) 1999-2000 Marcel van Brakel.       }
  17. {                                                                  }
  18. { Contributor(s): Alan C. Moore (ACMDOC@aol.com)                   }
  19. {                 Rudy Velthuis (rvelthuis@gmx.de)                 }
  20. {                                                                  }
  21. { Obtained through:                                                }
  22. { Joint Endeavour of Delphi Innovators (Project JEDI)              }
  23. {                                                                  }
  24. { You may retrieve the latest version of this file at the Project  }
  25. { JEDI home page, located at http://delphi-jedi.org                }
  26. {                                                                  }
  27. { The contents of this file are used with permission, subject to   }
  28. { the Mozilla Public License Version 1.1 (the "License"); you may  }
  29. { not use this file except in compliance with the License. You may }
  30. { obtain a copy of the License at                                  }
  31. { http://www.mozilla.org/NPL/NPL-1_1Final.html                     }
  32. {                                                                  }
  33. { Software distributed under the License is distributed on an      }
  34. { "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or   }
  35. { implied. See the License for the specific language governing     }
  36. { rights and limitations under the License.                        }
  37. {                                                                  }
  38. {******************************************************************}
  39. unit Tapi;
  40. {$WEAKPACKAGEUNIT}
  41. interface
  42. {$HPPEMIT '//  -- TAPI VERSION INFO -- TAPI VERSION INFO --'}
  43. {$HPPEMIT '//  -- TAPI VERSION INFO -- TAPI VERSION INFO --'}
  44. {$HPPEMIT '//  -- TAPI VERSION INFO -- TAPI VERSION INFO --'}
  45. {$HPPEMIT '//'}
  46. {$HPPEMIT '// To build  a TAPI 1.4 application put a define as below in your'}
  47. {$HPPEMIT '// source file before you include TAPI.H:'}
  48. {$HPPEMIT '//'}
  49. {$HPPEMIT '// #define TAPI_CURRENT_VERSION 0x00010004'}
  50. {$HPPEMIT '//'}
  51. {$HPPEMIT '//'}
  52. {$HPPEMIT '#ifndef TAPI_CURRENT_VERSION'}
  53. {$HPPEMIT '#define TAPI_CURRENT_VERSION 0x00020002'}
  54. {$HPPEMIT '#endif'}
  55. {$HPPEMIT '#include <windows.h>'}
  56. {$HPPEMIT '#pragma pack(1)'}
  57. uses
  58.   Windows, Messages;
  59. // The  Telephony  API  is jointly copyrighted by Intel and Microsoft.  You are
  60. // granted  a royalty free worldwide, unlimited license to make copies, and use
  61. // the   API/SPI  for  making  applications/drivers  that  interface  with  the
  62. // specification provided that this paragraph and the Intel/Microsoft copyright
  63. // statement is maintained as is in the text and source code files.
  64. //
  65. // Copyright 1995-97 Microsoft, all rights reserved.
  66. // Portions copyright 1992, 1993 Intel/Microsoft, all rights reserved.
  67. {$INCLUDE TAPI.INC}
  68. {$IFNDEF _WIN64}
  69. type
  70.   DWORD_PTR = DWORD;
  71. {$ENDIF}
  72. // TAPI type definitions
  73. type
  74.   PHCALL = ^HCALL;
  75.   HCALL = DWORD;
  76.   {$EXTERNALSYM HCALL}
  77. {$IFDEF TAPI30}
  78.   PHCALLHUB = ^HCALLHUB;
  79.   HCALLHUB = DWORD;
  80.   {$EXTERNALSYM HCALLHUB}
  81. {$ENDIF}
  82.   PHLINE = ^HLINE;
  83.   HLINE = DWORD;
  84.   {$EXTERNALSYM HLINE}
  85.   PHPHONE = ^HPHONE;
  86.   HPHONE = DWORD;
  87.   {$EXTERNALSYM HPHONE}
  88.   PHLINEAPP = ^HLINEAPP;
  89.   HLINEAPP = DWORD;
  90.   {$EXTERNALSYM HLINEAPP}
  91.   PHPHONEAPP = ^HPHONEAPP;
  92.   HPHONEAPP = DWORD;
  93.   {$EXTERNALSYM HPHONEAPP}
  94. {$IFDEF TAPI20}
  95.   PHAGENTSESSION = ^HAGENTSESSION;                              // TAPI v2.2
  96.   HAGENTSESSION = DWORD;                                        // TAPI v2.2
  97.   {$EXTERNALSYM HAGENTSESSION}
  98.   PHAGENT = ^HAGENT;                                            // TAPI v2.2
  99.   HAGENT = DWORD;                                               // TAPI v2.2
  100.   {$EXTERNALSYM HAGENT}
  101. {$ENDIF}
  102. {$IFDEF TAPI30}
  103.   PHPRIVATECHANNEL = ^HPRIVATECHANNEL;                          // TAPI v3.0
  104.   HPRIVATECHANNEL = DWORD;                                      // TAPI v3.0
  105.   {$EXTERNALSYM HPRIVATECHANNEL}
  106. {$ENDIF}
  107.   LPHICON = ^HICON;
  108.   {$EXTERNALSYM LPHICON}
  109.   PHICON = LPHICON;
  110.   
  111.   TLineCallback = procedure(hDevice, dwMessage: DWORD; dwInstance, dwParam1,
  112.     dwParam2, dwParam3: DWORD_PTR) stdcall;
  113.   LINECALLBACK = TLineCallback;
  114.   {$EXTERNALSYM LINECALLBACK}
  115.   TPhoneCallback = procedure(hDevice, dwMessage: DWORD; dwInstance, dwParam1,
  116.     dwParam2, dwParam3: DWORD_PTR) stdcall;
  117.   PHONECALLBACK = TPhoneCallback;
  118.   {$EXTERNALSYM PHONECALLBACK}
  119. // Messages for Phones and Lines
  120. const
  121.   LINE_ADDRESSSTATE                       = 0;
  122.   {$EXTERNALSYM LINE_ADDRESSSTATE}
  123.   LINE_CALLINFO                           = 1;
  124.   {$EXTERNALSYM LINE_CALLINFO}
  125.   LINE_CALLSTATE                          = 2;
  126.   {$EXTERNALSYM LINE_CALLSTATE}
  127.   LINE_CLOSE                              = 3;
  128.   {$EXTERNALSYM LINE_CLOSE}
  129.   LINE_DEVSPECIFIC                        = 4;
  130.   {$EXTERNALSYM LINE_DEVSPECIFIC}
  131.   LINE_DEVSPECIFICFEATURE                 = 5;
  132.   {$EXTERNALSYM LINE_DEVSPECIFICFEATURE}
  133.   LINE_GATHERDIGITS                       = 6;
  134.   {$EXTERNALSYM LINE_GATHERDIGITS}
  135.   LINE_GENERATE                           = 7;
  136.   {$EXTERNALSYM LINE_GENERATE}
  137.   LINE_LINEDEVSTATE                       = 8;
  138.   {$EXTERNALSYM LINE_LINEDEVSTATE}
  139.   LINE_MONITORDIGITS                      = 9;
  140.   {$EXTERNALSYM LINE_MONITORDIGITS}
  141.   LINE_MONITORMEDIA                       = 10;
  142.   {$EXTERNALSYM LINE_MONITORMEDIA}
  143.   LINE_MONITORTONE                        = 11;
  144.   {$EXTERNALSYM LINE_MONITORTONE}
  145.   LINE_REPLY                              = 12;
  146.   {$EXTERNALSYM LINE_REPLY}
  147.   LINE_REQUEST                            = 13;
  148.   {$EXTERNALSYM LINE_REQUEST}
  149.   PHONE_BUTTON                            = 14;
  150.   {$EXTERNALSYM PHONE_BUTTON}
  151.   PHONE_CLOSE                             = 15;
  152.   {$EXTERNALSYM PHONE_CLOSE}
  153.   PHONE_DEVSPECIFIC                       = 16;
  154.   {$EXTERNALSYM PHONE_DEVSPECIFIC}
  155.   PHONE_REPLY                             = 17;
  156.   {$EXTERNALSYM PHONE_REPLY}
  157.   PHONE_STATE                             = 18;
  158.   {$EXTERNALSYM PHONE_STATE}
  159.   LINE_CREATE                             = 19;            // TAPI v1.4
  160.   {$EXTERNALSYM LINE_CREATE}
  161.   PHONE_CREATE                            = 20;            // TAPI v1.4
  162.   {$EXTERNALSYM PHONE_CREATE}
  163. {$IFDEF TAPI20}
  164.   LINE_AGENTSPECIFIC                      = 21;            // TAPI v2.0
  165.   {$EXTERNALSYM LINE_AGENTSPECIFIC}
  166.   LINE_AGENTSTATUS                        = 22;            // TAPI v2.0
  167.   {$EXTERNALSYM LINE_AGENTSTATUS}
  168.   LINE_APPNEWCALL                         = 23;            // TAPI v2.0
  169.   {$EXTERNALSYM LINE_APPNEWCALL}
  170.   LINE_PROXYREQUEST                       = 24;            // TAPI v2.0
  171.   {$EXTERNALSYM LINE_PROXYREQUEST}
  172.   LINE_REMOVE                             = 25;            // TAPI v2.0
  173.   {$EXTERNALSYM LINE_REMOVE}
  174.   PHONE_REMOVE                            = 26;            // TAPI v2.0
  175.   {$EXTERNALSYM PHONE_REMOVE}
  176. {$ENDIF}
  177. {$IFDEF TAPI22}
  178.   LINE_AGENTSESSIONSTATUS                 = 27;             // TAPI v2.2
  179.   {$EXTERNALSYM LINE_AGENTSESSIONSTATUS}
  180.   LINE_QUEUESTATUS                        = 28;             // TAPI v2.2
  181.   {$EXTERNALSYM LINE_QUEUESTATUS}
  182.   LINE_AGENTSTATUSEX                      = 29;             // TAPI v2.2
  183.   {$EXTERNALSYM LINE_AGENTSTATUSEX}
  184.   LINE_GROUPSTATUS                        = 30;             // TAPI v2.2
  185.   {$EXTERNALSYM LINE_GROUPSTATUS}
  186.   LINE_PROXYSTATUS                        = 31;             // TAPI v2.2
  187.   {$EXTERNALSYM LINE_PROXYSTATUS}
  188. {$ENDIF}
  189. {$IFDEF TAPI30}
  190.   LINE_APPNEWCALLHUB                      = 32;             // TAPI v3.0
  191.   {$EXTERNALSYM LINE_APPNEWCALLHUB}
  192.   LINE_CALLHUBCLOSE                       = 33;             // TAPI v3.0
  193.   {$EXTERNALSYM LINE_CALLHUBCLOSE}
  194.   LINE_DEVSPECIFICEX                      = 34;             // TAPI v3.0
  195.   {$EXTERNALSYM LINE_DEVSPECIFICEX}
  196. {$ENDIF}
  197.   INITIALIZE_NEGOTIATION                  = DWORD($FFFFFFFF);
  198.   {$EXTERNALSYM INITIALIZE_NEGOTIATION}
  199.   LINEADDRCAPFLAGS_FWDNUMRINGS            = $00000001;
  200.   {$EXTERNALSYM LINEADDRCAPFLAGS_FWDNUMRINGS}
  201.   LINEADDRCAPFLAGS_PICKUPGROUPID          = $00000002;
  202.   {$EXTERNALSYM LINEADDRCAPFLAGS_PICKUPGROUPID}
  203.   LINEADDRCAPFLAGS_SECURE                 = $00000004;
  204.   {$EXTERNALSYM LINEADDRCAPFLAGS_SECURE}
  205.   LINEADDRCAPFLAGS_BLOCKIDDEFAULT         = $00000008;
  206.   {$EXTERNALSYM LINEADDRCAPFLAGS_BLOCKIDDEFAULT}
  207.   LINEADDRCAPFLAGS_BLOCKIDOVERRIDE        = $00000010;
  208.   {$EXTERNALSYM LINEADDRCAPFLAGS_BLOCKIDOVERRIDE}
  209.   LINEADDRCAPFLAGS_DIALED                 = $00000020;
  210.   {$EXTERNALSYM LINEADDRCAPFLAGS_DIALED}
  211.   LINEADDRCAPFLAGS_ORIGOFFHOOK            = $00000040;
  212.   {$EXTERNALSYM LINEADDRCAPFLAGS_ORIGOFFHOOK}
  213.   LINEADDRCAPFLAGS_DESTOFFHOOK            = $00000080;
  214.   {$EXTERNALSYM LINEADDRCAPFLAGS_DESTOFFHOOK}
  215.   LINEADDRCAPFLAGS_FWDCONSULT             = $00000100;
  216.   {$EXTERNALSYM LINEADDRCAPFLAGS_FWDCONSULT}
  217.   LINEADDRCAPFLAGS_SETUPCONFNULL          = $00000200;
  218.   {$EXTERNALSYM LINEADDRCAPFLAGS_SETUPCONFNULL}
  219.   LINEADDRCAPFLAGS_AUTORECONNECT          = $00000400;
  220.   {$EXTERNALSYM LINEADDRCAPFLAGS_AUTORECONNECT}
  221.   LINEADDRCAPFLAGS_COMPLETIONID           = $00000800;
  222.   {$EXTERNALSYM LINEADDRCAPFLAGS_COMPLETIONID}
  223.   LINEADDRCAPFLAGS_TRANSFERHELD           = $00001000;
  224.   {$EXTERNALSYM LINEADDRCAPFLAGS_TRANSFERHELD}
  225.   LINEADDRCAPFLAGS_TRANSFERMAKE           = $00002000;
  226.   {$EXTERNALSYM LINEADDRCAPFLAGS_TRANSFERMAKE}
  227.   LINEADDRCAPFLAGS_CONFERENCEHELD         = $00004000;
  228.   {$EXTERNALSYM LINEADDRCAPFLAGS_CONFERENCEHELD}
  229.   LINEADDRCAPFLAGS_CONFERENCEMAKE         = $00008000;
  230.   {$EXTERNALSYM LINEADDRCAPFLAGS_CONFERENCEMAKE}
  231.   LINEADDRCAPFLAGS_PARTIALDIAL            = $00010000;
  232.   {$EXTERNALSYM LINEADDRCAPFLAGS_PARTIALDIAL}
  233.   LINEADDRCAPFLAGS_FWDSTATUSVALID         = $00020000;
  234.   {$EXTERNALSYM LINEADDRCAPFLAGS_FWDSTATUSVALID}
  235.   LINEADDRCAPFLAGS_FWDINTEXTADDR          = $00040000;
  236.   {$EXTERNALSYM LINEADDRCAPFLAGS_FWDINTEXTADDR}
  237.   LINEADDRCAPFLAGS_FWDBUSYNAADDR          = $00080000;
  238.   {$EXTERNALSYM LINEADDRCAPFLAGS_FWDBUSYNAADDR}
  239.   LINEADDRCAPFLAGS_ACCEPTTOALERT          = $00100000;
  240.   {$EXTERNALSYM LINEADDRCAPFLAGS_ACCEPTTOALERT}
  241.   LINEADDRCAPFLAGS_CONFDROP               = $00200000;
  242.   {$EXTERNALSYM LINEADDRCAPFLAGS_CONFDROP}
  243.   LINEADDRCAPFLAGS_PICKUPCALLWAIT         = $00400000;
  244.   {$EXTERNALSYM LINEADDRCAPFLAGS_PICKUPCALLWAIT}
  245. {$IFDEF TAPI20}
  246.   LINEADDRCAPFLAGS_PREDICTIVEDIALER       = $00800000;     // TAPI v2.0
  247.   {$EXTERNALSYM LINEADDRCAPFLAGS_PREDICTIVEDIALER}
  248.   LINEADDRCAPFLAGS_QUEUE                  = $01000000;     // TAPI v2.0
  249.   {$EXTERNALSYM LINEADDRCAPFLAGS_QUEUE}
  250.   LINEADDRCAPFLAGS_ROUTEPOINT             = $02000000;     // TAPI v2.0
  251.   {$EXTERNALSYM LINEADDRCAPFLAGS_ROUTEPOINT}
  252.   LINEADDRCAPFLAGS_HOLDMAKESNEW           = $04000000;     // TAPI v2.0
  253.   {$EXTERNALSYM LINEADDRCAPFLAGS_HOLDMAKESNEW}
  254.   LINEADDRCAPFLAGS_NOINTERNALCALLS        = $08000000;     // TAPI v2.0
  255.   {$EXTERNALSYM LINEADDRCAPFLAGS_NOINTERNALCALLS}
  256.   LINEADDRCAPFLAGS_NOEXTERNALCALLS        = $10000000;     // TAPI v2.0
  257.   {$EXTERNALSYM LINEADDRCAPFLAGS_NOEXTERNALCALLS}
  258.   LINEADDRCAPFLAGS_SETCALLINGID           = $20000000;     // TAPI v2.0
  259.   {$EXTERNALSYM LINEADDRCAPFLAGS_SETCALLINGID}
  260. {$ENDIF}
  261. {$IFDEF TAPI22}
  262.   LINEADDRCAPFLAGS_ACDGROUP               = $40000000;     // TAPI v2.2
  263.   {$EXTERNALSYM LINEADDRCAPFLAGS_ACDGROUP}
  264. {$ENDIF}
  265. {$IFDEF TAPI30}
  266.   LINEADDRCAPFLAGS_NOPSTNADDRESSTRANSLATION = DWORD($80000000); // TAPI v3.0
  267.   {$EXTERNALSYM LINEADDRCAPFLAGS_NOPSTNADDRESSTRANSLATION}
  268. {$ENDIF}
  269.   LINEADDRESSMODE_ADDRESSID               = $00000001;
  270.   {$EXTERNALSYM LINEADDRESSMODE_ADDRESSID}
  271.   LINEADDRESSMODE_DIALABLEADDR            = $00000002;
  272.   {$EXTERNALSYM LINEADDRESSMODE_DIALABLEADDR}
  273.   LINEADDRESSSHARING_PRIVATE              = $00000001;
  274.   {$EXTERNALSYM LINEADDRESSSHARING_PRIVATE}
  275.   LINEADDRESSSHARING_BRIDGEDEXCL          = $00000002;
  276.   {$EXTERNALSYM LINEADDRESSSHARING_BRIDGEDEXCL}
  277.   LINEADDRESSSHARING_BRIDGEDNEW           = $00000004;
  278.   {$EXTERNALSYM LINEADDRESSSHARING_BRIDGEDNEW}
  279.   LINEADDRESSSHARING_BRIDGEDSHARED        = $00000008;
  280.   {$EXTERNALSYM LINEADDRESSSHARING_BRIDGEDSHARED}
  281.   LINEADDRESSSHARING_MONITORED            = $00000010;
  282.   {$EXTERNALSYM LINEADDRESSSHARING_MONITORED}
  283.   LINEADDRESSSTATE_OTHER                  = $00000001;
  284.   {$EXTERNALSYM LINEADDRESSSTATE_OTHER}
  285.   LINEADDRESSSTATE_DEVSPECIFIC            = $00000002;
  286.   {$EXTERNALSYM LINEADDRESSSTATE_DEVSPECIFIC}
  287.   LINEADDRESSSTATE_INUSEZERO              = $00000004;
  288.   {$EXTERNALSYM LINEADDRESSSTATE_INUSEZERO}
  289.   LINEADDRESSSTATE_INUSEONE               = $00000008;
  290.   {$EXTERNALSYM LINEADDRESSSTATE_INUSEONE}
  291.   LINEADDRESSSTATE_INUSEMANY              = $00000010;
  292.   {$EXTERNALSYM LINEADDRESSSTATE_INUSEMANY}
  293.   LINEADDRESSSTATE_NUMCALLS               = $00000020;
  294.   {$EXTERNALSYM LINEADDRESSSTATE_NUMCALLS}
  295.   LINEADDRESSSTATE_FORWARD                = $00000040;
  296.   {$EXTERNALSYM LINEADDRESSSTATE_FORWARD}
  297.   LINEADDRESSSTATE_TERMINALS              = $00000080;
  298.   {$EXTERNALSYM LINEADDRESSSTATE_TERMINALS}
  299.   LINEADDRESSSTATE_CAPSCHANGE             = $00000100;     // TAPI v1.4
  300.   {$EXTERNALSYM LINEADDRESSSTATE_CAPSCHANGE}
  301. {$IFDEF TAPI30}
  302.   LINEADDRESSTYPE_PHONENUMBER             = $00000001;
  303.   LINEADDRESSTYPE_SDP                     = $00000002;
  304.   LINEADDRESSTYPE_EMAILNAME               = $00000004;
  305.   LINEADDRESSTYPE_DOMAINNAME              = $00000008;
  306.   LINEADDRESSTYPE_IPADDRESS               = $00000010;
  307. {$ENDIF}
  308.   LINEADDRFEATURE_FORWARD                 = $00000001;
  309.   {$EXTERNALSYM LINEADDRFEATURE_FORWARD}
  310.   LINEADDRFEATURE_MAKECALL                = $00000002;
  311.   {$EXTERNALSYM LINEADDRFEATURE_MAKECALL}
  312.   LINEADDRFEATURE_PICKUP                  = $00000004;
  313.   {$EXTERNALSYM LINEADDRFEATURE_PICKUP}
  314.   LINEADDRFEATURE_SETMEDIACONTROL         = $00000008;
  315.   {$EXTERNALSYM LINEADDRFEATURE_SETMEDIACONTROL}
  316.   LINEADDRFEATURE_SETTERMINAL             = $00000010;
  317.   {$EXTERNALSYM LINEADDRFEATURE_SETTERMINAL}
  318.   LINEADDRFEATURE_SETUPCONF               = $00000020;
  319.   {$EXTERNALSYM LINEADDRFEATURE_SETUPCONF}
  320.   LINEADDRFEATURE_UNCOMPLETECALL          = $00000040;
  321.   {$EXTERNALSYM LINEADDRFEATURE_UNCOMPLETECALL}
  322.   LINEADDRFEATURE_UNPARK                  = $00000080;
  323.   {$EXTERNALSYM LINEADDRFEATURE_UNPARK}
  324. {$IFDEF TAPI20}
  325.   LINEADDRFEATURE_PICKUPHELD              = $00000100;     // TAPI v2.0
  326.   {$EXTERNALSYM LINEADDRFEATURE_PICKUPHELD}
  327.   LINEADDRFEATURE_PICKUPGROUP             = $00000200;     // TAPI v2.0
  328.   {$EXTERNALSYM LINEADDRFEATURE_PICKUPGROUP}
  329.   LINEADDRFEATURE_PICKUPDIRECT            = $00000400;     // TAPI v2.0
  330.   {$EXTERNALSYM LINEADDRFEATURE_PICKUPDIRECT}
  331.   LINEADDRFEATURE_PICKUPWAITING           = $00000800;     // TAPI v2.0
  332.   {$EXTERNALSYM LINEADDRFEATURE_PICKUPWAITING}
  333.   LINEADDRFEATURE_FORWARDFWD              = $00001000;     // TAPI v2.0
  334.   {$EXTERNALSYM LINEADDRFEATURE_FORWARDFWD}
  335.   LINEADDRFEATURE_FORWARDDND              = $00002000;     // TAPI v2.0
  336.   {$EXTERNALSYM LINEADDRFEATURE_FORWARDDND}
  337. {$ENDIF}
  338. {$IFDEF TAPI20}
  339.   LINEAGENTFEATURE_SETAGENTGROUP          = $00000001;     // TAPI v2.0
  340.   {$EXTERNALSYM LINEAGENTFEATURE_SETAGENTGROUP}
  341.   LINEAGENTFEATURE_SETAGENTSTATE          = $00000002;     // TAPI v2.0
  342.   {$EXTERNALSYM LINEAGENTFEATURE_SETAGENTSTATE}
  343.   LINEAGENTFEATURE_SETAGENTACTIVITY       = $00000004;     // TAPI v2.0
  344.   {$EXTERNALSYM LINEAGENTFEATURE_SETAGENTACTIVITY}
  345.   LINEAGENTFEATURE_AGENTSPECIFIC          = $00000008;     // TAPI v2.0
  346.   {$EXTERNALSYM LINEAGENTFEATURE_AGENTSPECIFIC}
  347.   LINEAGENTFEATURE_GETAGENTACTIVITYLIST   = $00000010;     // TAPI v2.0
  348.   {$EXTERNALSYM LINEAGENTFEATURE_GETAGENTACTIVITYLIST}
  349.   LINEAGENTFEATURE_GETAGENTGROUP          = $00000020;     // TAPI v2.0
  350.   {$EXTERNALSYM LINEAGENTFEATURE_GETAGENTGROUP}
  351.   LINEAGENTSTATE_LOGGEDOFF                = $00000001;     // TAPI v2.0
  352.   {$EXTERNALSYM LINEAGENTSTATE_LOGGEDOFF}
  353.   LINEAGENTSTATE_NOTREADY                 = $00000002;     // TAPI v2.0
  354.   {$EXTERNALSYM LINEAGENTSTATE_NOTREADY}
  355.   LINEAGENTSTATE_READY                    = $00000004;     // TAPI v2.0
  356.   {$EXTERNALSYM LINEAGENTSTATE_READY}
  357.   LINEAGENTSTATE_BUSYACD                  = $00000008;     // TAPI v2.0
  358.   {$EXTERNALSYM LINEAGENTSTATE_BUSYACD}
  359.   LINEAGENTSTATE_BUSYINCOMING             = $00000010;     // TAPI v2.0
  360.   {$EXTERNALSYM LINEAGENTSTATE_BUSYINCOMING}
  361.   LINEAGENTSTATE_BUSYOUTBOUND             = $00000020;     // TAPI v2.0
  362.   {$EXTERNALSYM LINEAGENTSTATE_BUSYOUTBOUND}
  363.   LINEAGENTSTATE_BUSYOTHER                = $00000040;     // TAPI v2.0
  364.   {$EXTERNALSYM LINEAGENTSTATE_BUSYOTHER}
  365.   LINEAGENTSTATE_WORKINGAFTERCALL         = $00000080;     // TAPI v2.0
  366.   {$EXTERNALSYM LINEAGENTSTATE_WORKINGAFTERCALL}
  367.   LINEAGENTSTATE_UNKNOWN                  = $00000100;     // TAPI v2.0
  368.   {$EXTERNALSYM LINEAGENTSTATE_UNKNOWN}
  369.   LINEAGENTSTATE_UNAVAIL                  = $00000200;     // TAPI v2.0
  370.   {$EXTERNALSYM LINEAGENTSTATE_UNAVAIL}
  371.   LINEAGENTSTATUS_GROUP                   = $00000001;     // TAPI v2.0
  372.   {$EXTERNALSYM LINEAGENTSTATUS_GROUP}
  373.   LINEAGENTSTATUS_STATE                   = $00000002;     // TAPI v2.0
  374.   {$EXTERNALSYM LINEAGENTSTATUS_STATE}
  375.   LINEAGENTSTATUS_NEXTSTATE               = $00000004;     // TAPI v2.0
  376.   {$EXTERNALSYM LINEAGENTSTATUS_NEXTSTATE}
  377.   LINEAGENTSTATUS_ACTIVITY                = $00000008;     // TAPI v2.0
  378.   {$EXTERNALSYM LINEAGENTSTATUS_ACTIVITY}
  379.   LINEAGENTSTATUS_ACTIVITYLIST            = $00000010;     // TAPI v2.0
  380.   {$EXTERNALSYM LINEAGENTSTATUS_ACTIVITYLIST}
  381.   LINEAGENTSTATUS_GROUPLIST               = $00000020;     // TAPI v2.0
  382.   {$EXTERNALSYM LINEAGENTSTATUS_GROUPLIST}
  383.   LINEAGENTSTATUS_CAPSCHANGE              = $00000040;     // TAPI v2.0
  384.   {$EXTERNALSYM LINEAGENTSTATUS_CAPSCHANGE}
  385.   LINEAGENTSTATUS_VALIDSTATES             = $00000080;     // TAPI v2.0
  386.   {$EXTERNALSYM LINEAGENTSTATUS_VALIDSTATES}
  387.   LINEAGENTSTATUS_VALIDNEXTSTATES         = $00000100;     // TAPI v2.0
  388.   {$EXTERNALSYM LINEAGENTSTATUS_VALIDNEXTSTATES}
  389. {$ENDIF}
  390. {$IFDEF TAPI22}
  391.   LINEAGENTSTATEEX_NOTREADY               = $00000001;     // TAPI v2.2
  392.   {$EXTERNALSYM LINEAGENTSTATEEX_NOTREADY}
  393.   LINEAGENTSTATEEX_READY                  = $00000002;     // TAPI v2.2
  394.   {$EXTERNALSYM LINEAGENTSTATEEX_READY}
  395.   LINEAGENTSTATEEX_BUSYACD                = $00000004;     // TAPI v2.2
  396.   {$EXTERNALSYM LINEAGENTSTATEEX_BUSYACD}
  397.   LINEAGENTSTATEEX_BUSYINCOMING           = $00000008;     // TAPI v2.2
  398.   {$EXTERNALSYM LINEAGENTSTATEEX_BUSYINCOMING}
  399.   LINEAGENTSTATEEX_BUSYOUTGOING           = $00000010;     // TAPI v2.2
  400.   {$EXTERNALSYM LINEAGENTSTATEEX_BUSYOUTGOING}
  401.   LINEAGENTSTATEEX_UNKNOWN                = $00000020;     // TAPI v2.2
  402.   {$EXTERNALSYM LINEAGENTSTATEEX_UNKNOWN}
  403.   LINEAGENTSTATEEX_RELEASED               = $00000040;     // TAPI v2.2
  404.   {$EXTERNALSYM LINEAGENTSTATEEX_RELEASED}
  405.   LINEAGENTSTATUSEX_NEWAGENT              = $00000001;     // TAPI v2.2
  406.   {$EXTERNALSYM LINEAGENTSTATUSEX_NEWAGENT}
  407.   LINEAGENTSTATUSEX_STATE                 = $00000002;     // TAPI v2.2
  408.   {$EXTERNALSYM LINEAGENTSTATUSEX_STATE}
  409.   LINEAGENTSTATUSEX_UPDATEINFO            = $00000004;     // TAPI v2.2
  410.   {$EXTERNALSYM LINEAGENTSTATUSEX_UPDATEINFO}
  411. //LINEAGENTSTATUSEX_DESTROYED             = $00000004;     // TAPI v2.2
  412. //{$EXTERNALSYM LINEAGENTSTATUSEX_DESTROYED}
  413.   LINEAGENTSESSIONSTATE_NOTREADY          = $00000001;     // TAPI v2.2
  414.   {$EXTERNALSYM LINEAGENTSESSIONSTATE_NOTREADY}
  415.   LINEAGENTSESSIONSTATE_READY             = $00000002;     // TAPI v2.2
  416.   {$EXTERNALSYM LINEAGENTSESSIONSTATE_READY}
  417.   LINEAGENTSESSIONSTATE_BUSYONCALL        = $00000004;     // TAPI v2.2
  418.   {$EXTERNALSYM LINEAGENTSESSIONSTATE_BUSYONCALL}
  419.   LINEAGENTSESSIONSTATE_BUSYWRAPUP        = $00000008;     // TAPI v2.2
  420.   {$EXTERNALSYM LINEAGENTSESSIONSTATE_BUSYWRAPUP}
  421.   LINEAGENTSESSIONSTATE_ENDED             = $00000010;     // TAPI v2.2
  422.   {$EXTERNALSYM LINEAGENTSESSIONSTATE_ENDED}
  423.   LINEAGENTSESSIONSTATE_RELEASED          = $00000020;     // TAPI v2.2
  424.   {$EXTERNALSYM LINEAGENTSESSIONSTATE_RELEASED}
  425.   LINEAGENTSESSIONSTATUS_NEWSESSION       = $00000001;     // TAPI v2.2
  426.   {$EXTERNALSYM LINEAGENTSESSIONSTATUS_NEWSESSION}
  427.   LINEAGENTSESSIONSTATUS_STATE            = $00000002;     // TAPI v2.2
  428.   {$EXTERNALSYM LINEAGENTSESSIONSTATUS_STATE}
  429.   LINEAGENTSESSIONSTATUS_UPDATEINFO       = $00000004;     // TAPI v2.2
  430.   {$EXTERNALSYM LINEAGENTSESSIONSTATUS_UPDATEINFO}
  431. //LINEAGENTSESSIONSTATUS_DESTROYED        = $00000008;     // TAPI v2.2
  432. //{$EXTERNALSYM LINEAGENTSESSIONSTATUS_DESTROYED}
  433.   LINEQUEUESTATUS_UPDATEINFO              = $00000001;     // TAPI v2.2
  434.   {$EXTERNALSYM LINEQUEUESTATUS_UPDATEINFO}
  435.   LINEQUEUESTATUS_NEWQUEUE                = $00000002;     // TAPI v2.2
  436.   {$EXTERNALSYM LINEQUEUESTATUS_NEWQUEUE}
  437.   LINEQUEUESTATUS_QUEUEREMOVED            = $00000004;     // TAPI v2.2
  438.   {$EXTERNALSYM LINEQUEUESTATUS_QUEUEREMOVED}
  439.   LINEGROUPSTATUS_NEWGROUP                = $00000001;     // TAPI v2.2
  440.   LINEGROUPSTATUS_GROUPREMOVED            = $00000002;     // TAPI v2.2
  441.   LINEPROXYSTATUS_OPEN                    = $00000001;     // TAPI v2.2
  442.   LINEPROXYSTATUS_CLOSE                   = $00000002;     // TAPI v2.2
  443.   LINEPROXYSTATUS_ALLOPENFORACD           = $00000004;     // TAPI v2.2
  444. {$ENDIF}
  445.   LINEANSWERMODE_NONE                     = $00000001;
  446.   {$EXTERNALSYM LINEANSWERMODE_NONE}
  447.   LINEANSWERMODE_DROP                     = $00000002;
  448.   {$EXTERNALSYM LINEANSWERMODE_DROP}
  449.   LINEANSWERMODE_HOLD                     = $00000004;
  450.   {$EXTERNALSYM LINEANSWERMODE_HOLD}
  451.   LINEBEARERMODE_VOICE                    = $00000001;
  452.   {$EXTERNALSYM LINEBEARERMODE_VOICE}
  453.   LINEBEARERMODE_SPEECH                   = $00000002;
  454.   {$EXTERNALSYM LINEBEARERMODE_SPEECH}
  455.   LINEBEARERMODE_MULTIUSE                 = $00000004;
  456.   {$EXTERNALSYM LINEBEARERMODE_MULTIUSE}
  457.   LINEBEARERMODE_DATA                     = $00000008;
  458.   {$EXTERNALSYM LINEBEARERMODE_DATA}
  459.   LINEBEARERMODE_ALTSPEECHDATA            = $00000010;
  460.   {$EXTERNALSYM LINEBEARERMODE_ALTSPEECHDATA}
  461.   LINEBEARERMODE_NONCALLSIGNALING         = $00000020;
  462.   {$EXTERNALSYM LINEBEARERMODE_NONCALLSIGNALING}
  463.   LINEBEARERMODE_PASSTHROUGH              = $00000040;     // TAPI v1.4
  464.   {$EXTERNALSYM LINEBEARERMODE_PASSTHROUGH}
  465. {$IFDEF TAPI20}
  466.   LINEBEARERMODE_RESTRICTEDDATA           = $00000080;     // TAPI v2.0
  467.   {$EXTERNALSYM LINEBEARERMODE_RESTRICTEDDATA}
  468. {$ENDIF}
  469.   LINEBUSYMODE_STATION                    = $00000001;
  470.   {$EXTERNALSYM LINEBUSYMODE_STATION}
  471.   LINEBUSYMODE_TRUNK                      = $00000002;
  472.   {$EXTERNALSYM LINEBUSYMODE_TRUNK}
  473.   LINEBUSYMODE_UNKNOWN                    = $00000004;
  474.   {$EXTERNALSYM LINEBUSYMODE_UNKNOWN}
  475.   LINEBUSYMODE_UNAVAIL                    = $00000008;
  476.   {$EXTERNALSYM LINEBUSYMODE_UNAVAIL}
  477.   LINECALLCOMPLCOND_BUSY                  = $00000001;
  478.   {$EXTERNALSYM LINECALLCOMPLCOND_BUSY}
  479.   LINECALLCOMPLCOND_NOANSWER              = $00000002;
  480.   {$EXTERNALSYM LINECALLCOMPLCOND_NOANSWER}
  481.   LINECALLCOMPLMODE_CAMPON                = $00000001;
  482.   {$EXTERNALSYM LINECALLCOMPLMODE_CAMPON}
  483.   LINECALLCOMPLMODE_CALLBACK              = $00000002;
  484.   {$EXTERNALSYM LINECALLCOMPLMODE_CALLBACK}
  485.   LINECALLCOMPLMODE_INTRUDE               = $00000004;
  486.   {$EXTERNALSYM LINECALLCOMPLMODE_INTRUDE}
  487.   LINECALLCOMPLMODE_MESSAGE               = $00000008;
  488.   {$EXTERNALSYM LINECALLCOMPLMODE_MESSAGE}
  489.   LINECALLFEATURE_ACCEPT                  = $00000001;
  490.   {$EXTERNALSYM LINECALLFEATURE_ACCEPT}
  491.   LINECALLFEATURE_ADDTOCONF               = $00000002;
  492.   {$EXTERNALSYM LINECALLFEATURE_ADDTOCONF}
  493.   LINECALLFEATURE_ANSWER                  = $00000004;
  494.   {$EXTERNALSYM LINECALLFEATURE_ANSWER}
  495.   LINECALLFEATURE_BLINDTRANSFER           = $00000008;
  496.   {$EXTERNALSYM LINECALLFEATURE_BLINDTRANSFER}
  497.   LINECALLFEATURE_COMPLETECALL            = $00000010;
  498.   {$EXTERNALSYM LINECALLFEATURE_COMPLETECALL}
  499.   LINECALLFEATURE_COMPLETETRANSF          = $00000020;
  500.   {$EXTERNALSYM LINECALLFEATURE_COMPLETETRANSF}
  501.   LINECALLFEATURE_DIAL                    = $00000040;
  502.   {$EXTERNALSYM LINECALLFEATURE_DIAL}
  503.   LINECALLFEATURE_DROP                    = $00000080;
  504.   {$EXTERNALSYM LINECALLFEATURE_DROP}
  505.   LINECALLFEATURE_GATHERDIGITS            = $00000100;
  506.   {$EXTERNALSYM LINECALLFEATURE_GATHERDIGITS}
  507.   LINECALLFEATURE_GENERATEDIGITS          = $00000200;
  508.   {$EXTERNALSYM LINECALLFEATURE_GENERATEDIGITS}
  509.   LINECALLFEATURE_GENERATETONE            = $00000400;
  510.   {$EXTERNALSYM LINECALLFEATURE_GENERATETONE}
  511.   LINECALLFEATURE_HOLD                    = $00000800;
  512.   {$EXTERNALSYM LINECALLFEATURE_HOLD}
  513.   LINECALLFEATURE_MONITORDIGITS           = $00001000;
  514.   {$EXTERNALSYM LINECALLFEATURE_MONITORDIGITS}
  515.   LINECALLFEATURE_MONITORMEDIA            = $00002000;
  516.   {$EXTERNALSYM LINECALLFEATURE_MONITORMEDIA}
  517.   LINECALLFEATURE_MONITORTONES            = $00004000;
  518.   {$EXTERNALSYM LINECALLFEATURE_MONITORTONES}
  519.   LINECALLFEATURE_PARK                    = $00008000;
  520.   {$EXTERNALSYM LINECALLFEATURE_PARK}
  521.   LINECALLFEATURE_PREPAREADDCONF          = $00010000;
  522.   {$EXTERNALSYM LINECALLFEATURE_PREPAREADDCONF}
  523.   LINECALLFEATURE_REDIRECT                = $00020000;
  524.   {$EXTERNALSYM LINECALLFEATURE_REDIRECT}
  525.   LINECALLFEATURE_REMOVEFROMCONF          = $00040000;
  526.   {$EXTERNALSYM LINECALLFEATURE_REMOVEFROMCONF}
  527.   LINECALLFEATURE_SECURECALL              = $00080000;
  528.   {$EXTERNALSYM LINECALLFEATURE_SECURECALL}
  529.   LINECALLFEATURE_SENDUSERUSER            = $00100000;
  530.   {$EXTERNALSYM LINECALLFEATURE_SENDUSERUSER}
  531.   LINECALLFEATURE_SETCALLPARAMS           = $00200000;
  532.   {$EXTERNALSYM LINECALLFEATURE_SETCALLPARAMS}
  533.   LINECALLFEATURE_SETMEDIACONTROL         = $00400000;
  534.   {$EXTERNALSYM LINECALLFEATURE_SETMEDIACONTROL}
  535.   LINECALLFEATURE_SETTERMINAL             = $00800000;
  536.   {$EXTERNALSYM LINECALLFEATURE_SETTERMINAL}
  537.   LINECALLFEATURE_SETUPCONF               = $01000000;
  538.   {$EXTERNALSYM LINECALLFEATURE_SETUPCONF}
  539.   LINECALLFEATURE_SETUPTRANSFER           = $02000000;
  540.   {$EXTERNALSYM LINECALLFEATURE_SETUPTRANSFER}
  541.   LINECALLFEATURE_SWAPHOLD                = $04000000;
  542.   {$EXTERNALSYM LINECALLFEATURE_SWAPHOLD}
  543.   LINECALLFEATURE_UNHOLD                  = $08000000;
  544.   {$EXTERNALSYM LINECALLFEATURE_UNHOLD}
  545.   LINECALLFEATURE_RELEASEUSERUSERINFO     = $10000000;     // TAPI v1.4
  546.   {$EXTERNALSYM LINECALLFEATURE_RELEASEUSERUSERINFO}
  547. {$IFDEF TAPI20}
  548.   LINECALLFEATURE_SETTREATMENT            = $20000000;     // TAPI v2.0
  549.   {$EXTERNALSYM LINECALLFEATURE_SETTREATMENT}
  550.   LINECALLFEATURE_SETQOS                  = $40000000;     // TAPI v2.0
  551.   {$EXTERNALSYM LINECALLFEATURE_SETQOS}
  552.   LINECALLFEATURE_SETCALLDATA             = DWORD($80000000); // TAPI v2.0
  553.   {$EXTERNALSYM LINECALLFEATURE_SETCALLDATA}
  554. {$ENDIF}
  555. {$IFDEF TAPI20}
  556.   LINECALLFEATURE2_NOHOLDCONFERENCE       = $00000001;     // TAPI v2.0
  557.   {$EXTERNALSYM LINECALLFEATURE2_NOHOLDCONFERENCE}
  558.   LINECALLFEATURE2_ONESTEPTRANSFER        = $00000002;     // TAPI v2.0
  559.   {$EXTERNALSYM LINECALLFEATURE2_ONESTEPTRANSFER}
  560.   LINECALLFEATURE2_COMPLCAMPON            = $00000004;     // TAPI v2.0
  561.   {$EXTERNALSYM LINECALLFEATURE2_COMPLCAMPON}
  562.   LINECALLFEATURE2_COMPLCALLBACK          = $00000008;     // TAPI v2.0
  563.   {$EXTERNALSYM LINECALLFEATURE2_COMPLCALLBACK}
  564.   LINECALLFEATURE2_COMPLINTRUDE           = $00000010;     // TAPI v2.0
  565.   {$EXTERNALSYM LINECALLFEATURE2_COMPLINTRUDE}
  566.   LINECALLFEATURE2_COMPLMESSAGE           = $00000020;     // TAPI v2.0
  567.   {$EXTERNALSYM LINECALLFEATURE2_COMPLMESSAGE}
  568.   LINECALLFEATURE2_TRANSFERNORM           = $00000040;     // TAPI v2.0
  569.   {$EXTERNALSYM LINECALLFEATURE2_TRANSFERNORM}
  570.   LINECALLFEATURE2_TRANSFERCONF           = $00000080;     // TAPI v2.0
  571.   {$EXTERNALSYM LINECALLFEATURE2_TRANSFERCONF}
  572.   LINECALLFEATURE2_PARKDIRECT             = $00000100;     // TAPI v2.0
  573.   {$EXTERNALSYM LINECALLFEATURE2_PARKDIRECT}
  574.   LINECALLFEATURE2_PARKNONDIRECT          = $00000200;     // TAPI v2.0
  575.   {$EXTERNALSYM LINECALLFEATURE2_PARKNONDIRECT}
  576. {$ENDIF}
  577. {$IFDEF TAPI30}
  578.   LINECALLHUBTRACKING_NONE                = $00000000;     // TAPI v3.0
  579.   LINECALLHUBTRACKING_PROVIDERLEVEL       = $00000001;     // TAPI v3.0
  580.   LINECALLHUBTRACKING_ALLCALLS            = $00000002;     // TAPI v3.0
  581. {$ENDIF}
  582.   LINECALLINFOSTATE_OTHER                 = $00000001;
  583.   {$EXTERNALSYM LINECALLINFOSTATE_OTHER}
  584.   LINECALLINFOSTATE_DEVSPECIFIC           = $00000002;
  585.   {$EXTERNALSYM LINECALLINFOSTATE_DEVSPECIFIC}
  586.   LINECALLINFOSTATE_BEARERMODE            = $00000004;
  587.   {$EXTERNALSYM LINECALLINFOSTATE_BEARERMODE}
  588.   LINECALLINFOSTATE_RATE                  = $00000008;
  589.   {$EXTERNALSYM LINECALLINFOSTATE_RATE}
  590.   LINECALLINFOSTATE_MEDIAMODE             = $00000010;
  591.   {$EXTERNALSYM LINECALLINFOSTATE_MEDIAMODE}
  592.   LINECALLINFOSTATE_APPSPECIFIC           = $00000020;
  593.   {$EXTERNALSYM LINECALLINFOSTATE_APPSPECIFIC}
  594.   LINECALLINFOSTATE_CALLID                = $00000040;
  595.   {$EXTERNALSYM LINECALLINFOSTATE_CALLID}
  596.   LINECALLINFOSTATE_RELATEDCALLID         = $00000080;
  597.   {$EXTERNALSYM LINECALLINFOSTATE_RELATEDCALLID}
  598.   LINECALLINFOSTATE_ORIGIN                = $00000100;
  599.   {$EXTERNALSYM LINECALLINFOSTATE_ORIGIN}
  600.   LINECALLINFOSTATE_REASON                = $00000200;
  601.   {$EXTERNALSYM LINECALLINFOSTATE_REASON}
  602.   LINECALLINFOSTATE_COMPLETIONID          = $00000400;
  603.   {$EXTERNALSYM LINECALLINFOSTATE_COMPLETIONID}
  604.   LINECALLINFOSTATE_NUMOWNERINCR          = $00000800;
  605.   {$EXTERNALSYM LINECALLINFOSTATE_NUMOWNERINCR}
  606.   LINECALLINFOSTATE_NUMOWNERDECR          = $00001000;
  607.   {$EXTERNALSYM LINECALLINFOSTATE_NUMOWNERDECR}
  608.   LINECALLINFOSTATE_NUMMONITORS           = $00002000;
  609.   {$EXTERNALSYM LINECALLINFOSTATE_NUMMONITORS}
  610.   LINECALLINFOSTATE_TRUNK                 = $00004000;
  611.   {$EXTERNALSYM LINECALLINFOSTATE_TRUNK}
  612.   LINECALLINFOSTATE_CALLERID              = $00008000;
  613.   {$EXTERNALSYM LINECALLINFOSTATE_CALLERID}
  614.   LINECALLINFOSTATE_CALLEDID              = $00010000;
  615.   {$EXTERNALSYM LINECALLINFOSTATE_CALLEDID}
  616.   LINECALLINFOSTATE_CONNECTEDID           = $00020000;
  617.   {$EXTERNALSYM LINECALLINFOSTATE_CONNECTEDID}
  618.   LINECALLINFOSTATE_REDIRECTIONID         = $00040000;
  619.   {$EXTERNALSYM LINECALLINFOSTATE_REDIRECTIONID}
  620.   LINECALLINFOSTATE_REDIRECTINGID         = $00080000;
  621.   {$EXTERNALSYM LINECALLINFOSTATE_REDIRECTINGID}
  622.   LINECALLINFOSTATE_DISPLAY               = $00100000;
  623.   {$EXTERNALSYM LINECALLINFOSTATE_DISPLAY}
  624.   LINECALLINFOSTATE_USERUSERINFO          = $00200000;
  625.   {$EXTERNALSYM LINECALLINFOSTATE_USERUSERINFO}
  626.   LINECALLINFOSTATE_HIGHLEVELCOMP         = $00400000;
  627.   {$EXTERNALSYM LINECALLINFOSTATE_HIGHLEVELCOMP}
  628.   LINECALLINFOSTATE_LOWLEVELCOMP          = $00800000;
  629.   {$EXTERNALSYM LINECALLINFOSTATE_LOWLEVELCOMP}
  630.   LINECALLINFOSTATE_CHARGINGINFO          = $01000000;
  631.   {$EXTERNALSYM LINECALLINFOSTATE_CHARGINGINFO}
  632.   LINECALLINFOSTATE_TERMINAL              = $02000000;
  633.   {$EXTERNALSYM LINECALLINFOSTATE_TERMINAL}
  634.   LINECALLINFOSTATE_DIALPARAMS            = $04000000;
  635.   {$EXTERNALSYM LINECALLINFOSTATE_DIALPARAMS}
  636.   LINECALLINFOSTATE_MONITORMODES          = $08000000;
  637.   {$EXTERNALSYM LINECALLINFOSTATE_MONITORMODES}
  638. {$IFDEF TAPI20}
  639.   LINECALLINFOSTATE_TREATMENT             = $10000000;     // TAPI v2.0
  640.   {$EXTERNALSYM LINECALLINFOSTATE_TREATMENT}
  641.   LINECALLINFOSTATE_QOS                   = $20000000;     // TAPI v2.0
  642.   {$EXTERNALSYM LINECALLINFOSTATE_QOS}
  643.   LINECALLINFOSTATE_CALLDATA              = $40000000;     // TAPI v2.0
  644.   {$EXTERNALSYM LINECALLINFOSTATE_CALLDATA}
  645. {$ENDIF}
  646.   LINECALLORIGIN_OUTBOUND                 = $00000001;
  647.   {$EXTERNALSYM LINECALLORIGIN_OUTBOUND}
  648.   LINECALLORIGIN_INTERNAL                 = $00000002;
  649.   {$EXTERNALSYM LINECALLORIGIN_INTERNAL}
  650.   LINECALLORIGIN_EXTERNAL                 = $00000004;
  651.   {$EXTERNALSYM LINECALLORIGIN_EXTERNAL}
  652.   LINECALLORIGIN_UNKNOWN                  = $00000010;
  653.   {$EXTERNALSYM LINECALLORIGIN_UNKNOWN}
  654.   LINECALLORIGIN_UNAVAIL                  = $00000020;
  655.   {$EXTERNALSYM LINECALLORIGIN_UNAVAIL}
  656.   LINECALLORIGIN_CONFERENCE               = $00000040;
  657.   {$EXTERNALSYM LINECALLORIGIN_CONFERENCE}
  658.   LINECALLORIGIN_INBOUND                  = $00000080;     // TAPI v1.4
  659.   {$EXTERNALSYM LINECALLORIGIN_INBOUND}
  660.   LINECALLPARAMFLAGS_SECURE               = $00000001;
  661.   {$EXTERNALSYM LINECALLPARAMFLAGS_SECURE}
  662.   LINECALLPARAMFLAGS_IDLE                 = $00000002;
  663.   {$EXTERNALSYM LINECALLPARAMFLAGS_IDLE}
  664.   LINECALLPARAMFLAGS_BLOCKID              = $00000004;
  665.   {$EXTERNALSYM LINECALLPARAMFLAGS_BLOCKID}
  666.   LINECALLPARAMFLAGS_ORIGOFFHOOK          = $00000008;
  667.   {$EXTERNALSYM LINECALLPARAMFLAGS_ORIGOFFHOOK}
  668.   LINECALLPARAMFLAGS_DESTOFFHOOK          = $00000010;
  669.   {$EXTERNALSYM LINECALLPARAMFLAGS_DESTOFFHOOK}
  670. {$IFDEF TAPI20}
  671.   LINECALLPARAMFLAGS_NOHOLDCONFERENCE     = $00000020;     // TAPI v2.0
  672.   {$EXTERNALSYM LINECALLPARAMFLAGS_NOHOLDCONFERENCE}
  673.   LINECALLPARAMFLAGS_PREDICTIVEDIAL       = $00000040;     // TAPI v2.0
  674.   {$EXTERNALSYM LINECALLPARAMFLAGS_PREDICTIVEDIAL}
  675.   LINECALLPARAMFLAGS_ONESTEPTRANSFER      = $00000080;     // TAPI v2.0
  676.   {$EXTERNALSYM LINECALLPARAMFLAGS_ONESTEPTRANSFER}
  677. {$ENDIF}
  678.   LINECALLPARTYID_BLOCKED                 = $00000001;
  679.   {$EXTERNALSYM LINECALLPARTYID_BLOCKED}
  680.   LINECALLPARTYID_OUTOFAREA               = $00000002;
  681.   {$EXTERNALSYM LINECALLPARTYID_OUTOFAREA}
  682.   LINECALLPARTYID_NAME                    = $00000004;
  683.   {$EXTERNALSYM LINECALLPARTYID_NAME}
  684.   LINECALLPARTYID_ADDRESS                 = $00000008;
  685.   {$EXTERNALSYM LINECALLPARTYID_ADDRESS}
  686.   LINECALLPARTYID_PARTIAL                 = $00000010;
  687.   {$EXTERNALSYM LINECALLPARTYID_PARTIAL}
  688.   LINECALLPARTYID_UNKNOWN                 = $00000020;
  689.   {$EXTERNALSYM LINECALLPARTYID_UNKNOWN}
  690.   LINECALLPARTYID_UNAVAIL                 = $00000040;
  691.   {$EXTERNALSYM LINECALLPARTYID_UNAVAIL}
  692.   LINECALLPRIVILEGE_NONE                  = $00000001;
  693.   {$EXTERNALSYM LINECALLPRIVILEGE_NONE}
  694.   LINECALLPRIVILEGE_MONITOR               = $00000002;
  695.   {$EXTERNALSYM LINECALLPRIVILEGE_MONITOR}
  696.   LINECALLPRIVILEGE_OWNER                 = $00000004;
  697.   {$EXTERNALSYM LINECALLPRIVILEGE_OWNER}
  698.   LINECALLREASON_DIRECT                   = $00000001;
  699.   {$EXTERNALSYM LINECALLREASON_DIRECT}
  700.   LINECALLREASON_FWDBUSY                  = $00000002;
  701.   {$EXTERNALSYM LINECALLREASON_FWDBUSY}
  702.   LINECALLREASON_FWDNOANSWER              = $00000004;
  703.   {$EXTERNALSYM LINECALLREASON_FWDNOANSWER}
  704.   LINECALLREASON_FWDUNCOND                = $00000008;
  705.   {$EXTERNALSYM LINECALLREASON_FWDUNCOND}
  706.   LINECALLREASON_PICKUP                   = $00000010;
  707.   {$EXTERNALSYM LINECALLREASON_PICKUP}
  708.   LINECALLREASON_UNPARK                   = $00000020;
  709.   {$EXTERNALSYM LINECALLREASON_UNPARK}
  710.   LINECALLREASON_REDIRECT                 = $00000040;
  711.   {$EXTERNALSYM LINECALLREASON_REDIRECT}
  712.   LINECALLREASON_CALLCOMPLETION           = $00000080;
  713.   {$EXTERNALSYM LINECALLREASON_CALLCOMPLETION}
  714.   LINECALLREASON_TRANSFER                 = $00000100;
  715.   {$EXTERNALSYM LINECALLREASON_TRANSFER}
  716.   LINECALLREASON_REMINDER                 = $00000200;
  717.   {$EXTERNALSYM LINECALLREASON_REMINDER}
  718.   LINECALLREASON_UNKNOWN                  = $00000400;
  719.   {$EXTERNALSYM LINECALLREASON_UNKNOWN}
  720.   LINECALLREASON_UNAVAIL                  = $00000800;
  721.   {$EXTERNALSYM LINECALLREASON_UNAVAIL}
  722.   LINECALLREASON_INTRUDE                  = $00001000;     // TAPI v1.4
  723.   {$EXTERNALSYM LINECALLREASON_INTRUDE}
  724. {$IFDEF TAPI20}
  725.   LINECALLREASON_PARKED                   = $00002000;     // TAPI v1.4
  726.   {$EXTERNALSYM LINECALLREASON_PARKED}
  727.   LINECALLREASON_CAMPEDON                 = $00004000;     // TAPI v2.0
  728.   {$EXTERNALSYM LINECALLREASON_CAMPEDON}
  729.   LINECALLREASON_ROUTEREQUEST             = $00008000;     // TAPI v2.0
  730.   {$EXTERNALSYM LINECALLREASON_ROUTEREQUEST}
  731. {$ENDIF}
  732.   LINECALLSELECT_LINE                     = $00000001;
  733.   {$EXTERNALSYM LINECALLSELECT_LINE}
  734.   LINECALLSELECT_ADDRESS                  = $00000002;
  735.   {$EXTERNALSYM LINECALLSELECT_ADDRESS}
  736.   LINECALLSELECT_CALL                     = $00000004;
  737.   {$EXTERNALSYM LINECALLSELECT_CALL}
  738. {$IFDEF TAPI21}
  739.   LINECALLSELECT_DEVICEID                 = $00000008;    // TAPI v2.1
  740.   {$EXTERNALSYM LINECALLSELECT_DEVICEID}
  741. {$ENDIF}
  742. {$IFDEF TAPI30}
  743.   LINECALLSELECT_CALLID                   = $00000010;    // TAPI v3.0
  744.   {$EXTERNALSYM LINECALLSELECT_CALLID}
  745. {$ENDIF}
  746.   LINECALLSTATE_IDLE                      = $00000001;
  747.   {$EXTERNALSYM LINECALLSTATE_IDLE}
  748.   LINECALLSTATE_OFFERING                  = $00000002;
  749.   {$EXTERNALSYM LINECALLSTATE_OFFERING}
  750.   LINECALLSTATE_ACCEPTED                  = $00000004;
  751.   {$EXTERNALSYM LINECALLSTATE_ACCEPTED}
  752.   LINECALLSTATE_DIALTONE                  = $00000008;
  753.   {$EXTERNALSYM LINECALLSTATE_DIALTONE}
  754.   LINECALLSTATE_DIALING                   = $00000010;
  755.   {$EXTERNALSYM LINECALLSTATE_DIALING}
  756.   LINECALLSTATE_RINGBACK                  = $00000020;
  757.   {$EXTERNALSYM LINECALLSTATE_RINGBACK}
  758.   LINECALLSTATE_BUSY                      = $00000040;
  759.   {$EXTERNALSYM LINECALLSTATE_BUSY}
  760.   LINECALLSTATE_SPECIALINFO               = $00000080;
  761.   {$EXTERNALSYM LINECALLSTATE_SPECIALINFO}
  762.   LINECALLSTATE_CONNECTED                 = $00000100;
  763.   {$EXTERNALSYM LINECALLSTATE_CONNECTED}
  764.   LINECALLSTATE_PROCEEDING                = $00000200;
  765.   {$EXTERNALSYM LINECALLSTATE_PROCEEDING}
  766.   LINECALLSTATE_ONHOLD                    = $00000400;
  767.   {$EXTERNALSYM LINECALLSTATE_ONHOLD}
  768.   LINECALLSTATE_CONFERENCED               = $00000800;
  769.   {$EXTERNALSYM LINECALLSTATE_CONFERENCED}
  770.   LINECALLSTATE_ONHOLDPENDCONF            = $00001000;
  771.   {$EXTERNALSYM LINECALLSTATE_ONHOLDPENDCONF}
  772.   LINECALLSTATE_ONHOLDPENDTRANSFER        = $00002000;
  773.   {$EXTERNALSYM LINECALLSTATE_ONHOLDPENDTRANSFER}
  774.   LINECALLSTATE_DISCONNECTED              = $00004000;
  775.   {$EXTERNALSYM LINECALLSTATE_DISCONNECTED}
  776.   LINECALLSTATE_UNKNOWN                   = $00008000;
  777.   {$EXTERNALSYM LINECALLSTATE_UNKNOWN}
  778. {$IFDEF TAPI20}
  779.   LINECALLTREATMENT_SILENCE               = $00000001;     // TAPI v2.0
  780.   {$EXTERNALSYM LINECALLTREATMENT_SILENCE}
  781.   LINECALLTREATMENT_RINGBACK              = $00000002;     // TAPI v2.0
  782.   {$EXTERNALSYM LINECALLTREATMENT_RINGBACK}
  783.   LINECALLTREATMENT_BUSY                  = $00000003;     // TAPI v2.0
  784.   {$EXTERNALSYM LINECALLTREATMENT_BUSY}
  785.   LINECALLTREATMENT_MUSIC                 = $00000004;     // TAPI v2.0
  786.   {$EXTERNALSYM LINECALLTREATMENT_MUSIC}
  787. {$ENDIF}
  788.   LINECARDOPTION_PREDEFINED               = $00000001;     // TAPI v1.4
  789.   {$EXTERNALSYM LINECARDOPTION_PREDEFINED}
  790.   LINECARDOPTION_HIDDEN                   = $00000002;     // TAPI v1.4
  791.   {$EXTERNALSYM LINECARDOPTION_HIDDEN}
  792.   LINECONNECTEDMODE_ACTIVE                = $00000001;     // TAPI v1.4
  793.   {$EXTERNALSYM LINECONNECTEDMODE_ACTIVE}
  794.   LINECONNECTEDMODE_INACTIVE              = $00000002;     // TAPI v1.4
  795.   {$EXTERNALSYM LINECONNECTEDMODE_INACTIVE}
  796. {$IFDEF TAPI20}
  797.   LINECONNECTEDMODE_ACTIVEHELD            = $00000004;     // TAPI v2.0
  798.   {$EXTERNALSYM LINECONNECTEDMODE_ACTIVEHELD}
  799.   LINECONNECTEDMODE_INACTIVEHELD          = $00000008;     // TAPI v2.0
  800.   {$EXTERNALSYM LINECONNECTEDMODE_INACTIVEHELD}
  801.   LINECONNECTEDMODE_CONFIRMED             = $00000010;     // TAPI v2.0
  802.   {$EXTERNALSYM LINECONNECTEDMODE_CONFIRMED}
  803. {$ENDIF}
  804.   LINEDEVCAPFLAGS_CROSSADDRCONF           = $00000001;
  805.   {$EXTERNALSYM LINEDEVCAPFLAGS_CROSSADDRCONF}
  806.   LINEDEVCAPFLAGS_HIGHLEVCOMP             = $00000002;
  807.   {$EXTERNALSYM LINEDEVCAPFLAGS_HIGHLEVCOMP}
  808.   LINEDEVCAPFLAGS_LOWLEVCOMP              = $00000004;
  809.   {$EXTERNALSYM LINEDEVCAPFLAGS_LOWLEVCOMP}
  810.   LINEDEVCAPFLAGS_MEDIACONTROL            = $00000008;
  811.   {$EXTERNALSYM LINEDEVCAPFLAGS_MEDIACONTROL}
  812.   LINEDEVCAPFLAGS_MULTIPLEADDR            = $00000010;
  813.   {$EXTERNALSYM LINEDEVCAPFLAGS_MULTIPLEADDR}
  814.   LINEDEVCAPFLAGS_CLOSEDROP               = $00000020;
  815.   {$EXTERNALSYM LINEDEVCAPFLAGS_CLOSEDROP}
  816.   LINEDEVCAPFLAGS_DIALBILLING             = $00000040;
  817.   {$EXTERNALSYM LINEDEVCAPFLAGS_DIALBILLING}
  818.   LINEDEVCAPFLAGS_DIALQUIET               = $00000080;
  819.   {$EXTERNALSYM LINEDEVCAPFLAGS_DIALQUIET}
  820.   LINEDEVCAPFLAGS_DIALDIALTONE            = $00000100;
  821.   {$EXTERNALSYM LINEDEVCAPFLAGS_DIALDIALTONE}
  822. {$IFDEF TAPI30}
  823.   LINEDEVCAPFLAGS_MSP                     = $00000200;      // TAPI v3.0
  824.   LINEDEVCAPFLAGS_CALLHUB                 = $00000400;      // TAPI v3.0
  825.   LINEDEVCAPFLAGS_CALLHUBTRACKING         = $00000800;      // TAPI v3.0
  826.   LINEDEVCAPFLAGS_PRIVATEOBJECTS          = $00001000;      // TAPI v3.0
  827. {$ENDIF}
  828.   LINEDEVSTATE_OTHER                      = $00000001;
  829.   {$EXTERNALSYM LINEDEVSTATE_OTHER}
  830.   LINEDEVSTATE_RINGING                    = $00000002;
  831.   {$EXTERNALSYM LINEDEVSTATE_RINGING}
  832.   LINEDEVSTATE_CONNECTED                  = $00000004;
  833.   {$EXTERNALSYM LINEDEVSTATE_CONNECTED}
  834.   LINEDEVSTATE_DISCONNECTED               = $00000008;
  835.   {$EXTERNALSYM LINEDEVSTATE_DISCONNECTED}
  836.   LINEDEVSTATE_MSGWAITON                  = $00000010;
  837.   {$EXTERNALSYM LINEDEVSTATE_MSGWAITON}
  838.   LINEDEVSTATE_MSGWAITOFF                 = $00000020;
  839.   {$EXTERNALSYM LINEDEVSTATE_MSGWAITOFF}
  840.   LINEDEVSTATE_INSERVICE                  = $00000040;
  841.   {$EXTERNALSYM LINEDEVSTATE_INSERVICE}
  842.   LINEDEVSTATE_OUTOFSERVICE               = $00000080;
  843.   {$EXTERNALSYM LINEDEVSTATE_OUTOFSERVICE}
  844.   LINEDEVSTATE_MAINTENANCE                = $00000100;
  845.   {$EXTERNALSYM LINEDEVSTATE_MAINTENANCE}
  846.   LINEDEVSTATE_OPEN                       = $00000200;
  847.   {$EXTERNALSYM LINEDEVSTATE_OPEN}
  848.   LINEDEVSTATE_CLOSE                      = $00000400;
  849.   {$EXTERNALSYM LINEDEVSTATE_CLOSE}
  850.   LINEDEVSTATE_NUMCALLS                   = $00000800;
  851.   {$EXTERNALSYM LINEDEVSTATE_NUMCALLS}
  852.   LINEDEVSTATE_NUMCOMPLETIONS             = $00001000;
  853.   {$EXTERNALSYM LINEDEVSTATE_NUMCOMPLETIONS}
  854.   LINEDEVSTATE_TERMINALS                  = $00002000;
  855.   {$EXTERNALSYM LINEDEVSTATE_TERMINALS}
  856.   LINEDEVSTATE_ROAMMODE                   = $00004000;
  857.   {$EXTERNALSYM LINEDEVSTATE_ROAMMODE}
  858.   LINEDEVSTATE_BATTERY                    = $00008000;
  859.   {$EXTERNALSYM LINEDEVSTATE_BATTERY}
  860.   LINEDEVSTATE_SIGNAL                     = $00010000;
  861.   {$EXTERNALSYM LINEDEVSTATE_SIGNAL}
  862.   LINEDEVSTATE_DEVSPECIFIC                = $00020000;
  863.   {$EXTERNALSYM LINEDEVSTATE_DEVSPECIFIC}
  864.   LINEDEVSTATE_REINIT                     = $00040000;
  865.   {$EXTERNALSYM LINEDEVSTATE_REINIT}
  866.   LINEDEVSTATE_LOCK                       = $00080000;
  867.   {$EXTERNALSYM LINEDEVSTATE_LOCK}
  868.   LINEDEVSTATE_CAPSCHANGE                 = $00100000;     // TAPI v1.4
  869.   {$EXTERNALSYM LINEDEVSTATE_CAPSCHANGE}
  870.   LINEDEVSTATE_CONFIGCHANGE               = $00200000;     // TAPI v1.4
  871.   {$EXTERNALSYM LINEDEVSTATE_CONFIGCHANGE}
  872.   LINEDEVSTATE_TRANSLATECHANGE            = $00400000;     // TAPI v1.4
  873.   {$EXTERNALSYM LINEDEVSTATE_TRANSLATECHANGE}
  874.   LINEDEVSTATE_COMPLCANCEL                = $00800000;     // TAPI v1.4
  875.   {$EXTERNALSYM LINEDEVSTATE_COMPLCANCEL}
  876.   LINEDEVSTATE_REMOVED                    = $01000000;     // TAPI v1.4
  877.   {$EXTERNALSYM LINEDEVSTATE_REMOVED}
  878.   LINEDEVSTATUSFLAGS_CONNECTED            = $00000001;
  879.   {$EXTERNALSYM LINEDEVSTATUSFLAGS_CONNECTED}
  880.   LINEDEVSTATUSFLAGS_MSGWAIT              = $00000002;
  881.   {$EXTERNALSYM LINEDEVSTATUSFLAGS_MSGWAIT}
  882.   LINEDEVSTATUSFLAGS_INSERVICE            = $00000004;
  883.   {$EXTERNALSYM LINEDEVSTATUSFLAGS_INSERVICE}
  884.   LINEDEVSTATUSFLAGS_LOCKED               = $00000008;
  885.   {$EXTERNALSYM LINEDEVSTATUSFLAGS_LOCKED}
  886.   LINEDIALTONEMODE_NORMAL                 = $00000001;
  887.   {$EXTERNALSYM LINEDIALTONEMODE_NORMAL}
  888.   LINEDIALTONEMODE_SPECIAL                = $00000002;
  889.   {$EXTERNALSYM LINEDIALTONEMODE_SPECIAL}
  890.   LINEDIALTONEMODE_INTERNAL               = $00000004;
  891.   {$EXTERNALSYM LINEDIALTONEMODE_INTERNAL}
  892.   LINEDIALTONEMODE_EXTERNAL               = $00000008;
  893.   {$EXTERNALSYM LINEDIALTONEMODE_EXTERNAL}
  894.   LINEDIALTONEMODE_UNKNOWN                = $00000010;
  895.   {$EXTERNALSYM LINEDIALTONEMODE_UNKNOWN}
  896.   LINEDIALTONEMODE_UNAVAIL                = $00000020;
  897.   {$EXTERNALSYM LINEDIALTONEMODE_UNAVAIL}
  898.   LINEDIGITMODE_PULSE                     = $00000001;
  899.   {$EXTERNALSYM LINEDIGITMODE_PULSE}
  900.   LINEDIGITMODE_DTMF                      = $00000002;
  901.   {$EXTERNALSYM LINEDIGITMODE_DTMF}
  902.   LINEDIGITMODE_DTMFEND                   = $00000004;
  903.   {$EXTERNALSYM LINEDIGITMODE_DTMFEND}
  904.   LINEDISCONNECTMODE_NORMAL               = $00000001;
  905.   {$EXTERNALSYM LINEDISCONNECTMODE_NORMAL}
  906.   LINEDISCONNECTMODE_UNKNOWN              = $00000002;
  907.   {$EXTERNALSYM LINEDISCONNECTMODE_UNKNOWN}
  908.   LINEDISCONNECTMODE_REJECT               = $00000004;
  909.   {$EXTERNALSYM LINEDISCONNECTMODE_REJECT}
  910.   LINEDISCONNECTMODE_PICKUP               = $00000008;
  911.   {$EXTERNALSYM LINEDISCONNECTMODE_PICKUP}
  912.   LINEDISCONNECTMODE_FORWARDED            = $00000010;
  913.   {$EXTERNALSYM LINEDISCONNECTMODE_FORWARDED}
  914.   LINEDISCONNECTMODE_BUSY                 = $00000020;
  915.   {$EXTERNALSYM LINEDISCONNECTMODE_BUSY}
  916.   LINEDISCONNECTMODE_NOANSWER             = $00000040;
  917.   {$EXTERNALSYM LINEDISCONNECTMODE_NOANSWER}
  918.   LINEDISCONNECTMODE_BADADDRESS           = $00000080;
  919.   {$EXTERNALSYM LINEDISCONNECTMODE_BADADDRESS}
  920.   LINEDISCONNECTMODE_UNREACHABLE          = $00000100;
  921.   {$EXTERNALSYM LINEDISCONNECTMODE_UNREACHABLE}
  922.   LINEDISCONNECTMODE_CONGESTION           = $00000200;
  923.   {$EXTERNALSYM LINEDISCONNECTMODE_CONGESTION}
  924.   LINEDISCONNECTMODE_INCOMPATIBLE         = $00000400;
  925.   {$EXTERNALSYM LINEDISCONNECTMODE_INCOMPATIBLE}
  926.   LINEDISCONNECTMODE_UNAVAIL              = $00000800;
  927.   {$EXTERNALSYM LINEDISCONNECTMODE_UNAVAIL}
  928.   LINEDISCONNECTMODE_NODIALTONE           = $00001000;     // TAPI v1.4
  929.   {$EXTERNALSYM LINEDISCONNECTMODE_NODIALTONE}
  930. {$IFDEF TAPI20}
  931.   LINEDISCONNECTMODE_NUMBERCHANGED        = $00002000;     // TAPI v2.0
  932.   {$EXTERNALSYM LINEDISCONNECTMODE_NUMBERCHANGED}
  933.   LINEDISCONNECTMODE_OUTOFORDER           = $00004000;     // TAPI v2.0
  934.   {$EXTERNALSYM LINEDISCONNECTMODE_OUTOFORDER}
  935.   LINEDISCONNECTMODE_TEMPFAILURE          = $00008000;     // TAPI v2.0
  936.   {$EXTERNALSYM LINEDISCONNECTMODE_TEMPFAILURE}
  937.   LINEDISCONNECTMODE_QOSUNAVAIL           = $00010000;     // TAPI v2.0
  938.   {$EXTERNALSYM LINEDISCONNECTMODE_QOSUNAVAIL}
  939.   LINEDISCONNECTMODE_BLOCKED              = $00020000;     // TAPI v2.0
  940.   {$EXTERNALSYM LINEDISCONNECTMODE_BLOCKED}
  941.   LINEDISCONNECTMODE_DONOTDISTURB         = $00040000;     // TAPI v2.0
  942.   {$EXTERNALSYM LINEDISCONNECTMODE_DONOTDISTURB}
  943.   LINEDISCONNECTMODE_CANCELLED            = $00080000;     // TAPI v2.0
  944.   {$EXTERNALSYM LINEDISCONNECTMODE_CANCELLED}
  945. {$ENDIF}
  946.   LINEERR_ALLOCATED                       = DWORD($80000001);
  947.   {$EXTERNALSYM LINEERR_ALLOCATED}
  948.   LINEERR_BADDEVICEID                     = DWORD($80000002);
  949.   {$EXTERNALSYM LINEERR_BADDEVICEID}
  950.   LINEERR_BEARERMODEUNAVAIL               = DWORD($80000003);
  951.   {$EXTERNALSYM LINEERR_BEARERMODEUNAVAIL}
  952.   LINEERR_CALLUNAVAIL                     = DWORD($80000005);
  953.   {$EXTERNALSYM LINEERR_CALLUNAVAIL}
  954.   LINEERR_COMPLETIONOVERRUN               = DWORD($80000006);
  955.   {$EXTERNALSYM LINEERR_COMPLETIONOVERRUN}
  956.   LINEERR_CONFERENCEFULL                  = DWORD($80000007);
  957.   {$EXTERNALSYM LINEERR_CONFERENCEFULL}
  958.   LINEERR_DIALBILLING                     = DWORD($80000008);
  959.   {$EXTERNALSYM LINEERR_DIALBILLING}
  960.   LINEERR_DIALDIALTONE                    = DWORD($80000009);
  961.   {$EXTERNALSYM LINEERR_DIALDIALTONE}
  962.   LINEERR_DIALPROMPT                      = DWORD($8000000A);
  963.   {$EXTERNALSYM LINEERR_DIALPROMPT}
  964.   LINEERR_DIALQUIET                       = DWORD($8000000B);
  965.   {$EXTERNALSYM LINEERR_DIALQUIET}
  966.   LINEERR_INCOMPATIBLEAPIVERSION          = DWORD($8000000C);
  967.   {$EXTERNALSYM LINEERR_INCOMPATIBLEAPIVERSION}
  968.   LINEERR_INCOMPATIBLEEXTVERSION          = DWORD($8000000D);
  969.   {$EXTERNALSYM LINEERR_INCOMPATIBLEEXTVERSION}
  970.   LINEERR_INIFILECORRUPT                  = DWORD($8000000E);
  971.   {$EXTERNALSYM LINEERR_INIFILECORRUPT}
  972.   LINEERR_INUSE                           = DWORD($8000000F);
  973.   {$EXTERNALSYM LINEERR_INUSE}
  974.   LINEERR_INVALADDRESS                    = DWORD($80000010);
  975.   {$EXTERNALSYM LINEERR_INVALADDRESS}
  976.   LINEERR_INVALADDRESSID                  = DWORD($80000011);
  977.   {$EXTERNALSYM LINEERR_INVALADDRESSID}
  978.   LINEERR_INVALADDRESSMODE                = DWORD($80000012);
  979.   {$EXTERNALSYM LINEERR_INVALADDRESSMODE}
  980.   LINEERR_INVALADDRESSSTATE               = DWORD($80000013);
  981.   {$EXTERNALSYM LINEERR_INVALADDRESSSTATE}
  982.   LINEERR_INVALAPPHANDLE                  = DWORD($80000014);
  983.   {$EXTERNALSYM LINEERR_INVALAPPHANDLE}
  984.   LINEERR_INVALAPPNAME                    = DWORD($80000015);
  985.   {$EXTERNALSYM LINEERR_INVALAPPNAME}
  986.   LINEERR_INVALBEARERMODE                 = DWORD($80000016);
  987.   {$EXTERNALSYM LINEERR_INVALBEARERMODE}
  988.   LINEERR_INVALCALLCOMPLMODE              = DWORD($80000017);
  989.   {$EXTERNALSYM LINEERR_INVALCALLCOMPLMODE}
  990.   LINEERR_INVALCALLHANDLE                 = DWORD($80000018);
  991.   {$EXTERNALSYM LINEERR_INVALCALLHANDLE}
  992.   LINEERR_INVALCALLPARAMS                 = DWORD($80000019);
  993.   {$EXTERNALSYM LINEERR_INVALCALLPARAMS}
  994.   LINEERR_INVALCALLPRIVILEGE              = DWORD($8000001A);
  995.   {$EXTERNALSYM LINEERR_INVALCALLPRIVILEGE}
  996.   LINEERR_INVALCALLSELECT                 = DWORD($8000001B);
  997.   {$EXTERNALSYM LINEERR_INVALCALLSELECT}
  998.   LINEERR_INVALCALLSTATE                  = DWORD($8000001C);
  999.   {$EXTERNALSYM LINEERR_INVALCALLSTATE}
  1000.   LINEERR_INVALCALLSTATELIST              = DWORD($8000001D);
  1001.   {$EXTERNALSYM LINEERR_INVALCALLSTATELIST}
  1002.   LINEERR_INVALCARD                       = DWORD($8000001E);
  1003.   {$EXTERNALSYM LINEERR_INVALCARD}
  1004.   LINEERR_INVALCOMPLETIONID               = DWORD($8000001F);
  1005.   {$EXTERNALSYM LINEERR_INVALCOMPLETIONID}
  1006.   LINEERR_INVALCONFCALLHANDLE             = DWORD($80000020);
  1007.   {$EXTERNALSYM LINEERR_INVALCONFCALLHANDLE}
  1008.   LINEERR_INVALCONSULTCALLHANDLE          = DWORD($80000021);
  1009.   {$EXTERNALSYM LINEERR_INVALCONSULTCALLHANDLE}
  1010.   LINEERR_INVALCOUNTRYCODE                = DWORD($80000022);
  1011.   {$EXTERNALSYM LINEERR_INVALCOUNTRYCODE}
  1012.   LINEERR_INVALDEVICECLASS                = DWORD($80000023);
  1013.   {$EXTERNALSYM LINEERR_INVALDEVICECLASS}
  1014.   LINEERR_INVALDEVICEHANDLE               = DWORD($80000024);
  1015.   {$EXTERNALSYM LINEERR_INVALDEVICEHANDLE}
  1016.   LINEERR_INVALDIALPARAMS                 = DWORD($80000025);
  1017.   {$EXTERNALSYM LINEERR_INVALDIALPARAMS}
  1018.   LINEERR_INVALDIGITLIST                  = DWORD($80000026);
  1019.   {$EXTERNALSYM LINEERR_INVALDIGITLIST}
  1020.   LINEERR_INVALDIGITMODE                  = DWORD($80000027);
  1021.   {$EXTERNALSYM LINEERR_INVALDIGITMODE}
  1022.   LINEERR_INVALDIGITS                     = DWORD($80000028);
  1023.   {$EXTERNALSYM LINEERR_INVALDIGITS}
  1024.   LINEERR_INVALEXTVERSION                 = DWORD($80000029);
  1025.   {$EXTERNALSYM LINEERR_INVALEXTVERSION}
  1026.   LINEERR_INVALGROUPID                    = DWORD($8000002A);
  1027.   {$EXTERNALSYM LINEERR_INVALGROUPID}
  1028.   LINEERR_INVALLINEHANDLE                 = DWORD($8000002B);
  1029.   {$EXTERNALSYM LINEERR_INVALLINEHANDLE}
  1030.   LINEERR_INVALLINESTATE                  = DWORD($8000002C);
  1031.   {$EXTERNALSYM LINEERR_INVALLINESTATE}
  1032.   LINEERR_INVALLOCATION                   = DWORD($8000002D);
  1033.   {$EXTERNALSYM LINEERR_INVALLOCATION}
  1034.   LINEERR_INVALMEDIALIST                  = DWORD($8000002E);
  1035.   {$EXTERNALSYM LINEERR_INVALMEDIALIST}
  1036.   LINEERR_INVALMEDIAMODE                  = DWORD($8000002F);
  1037.   {$EXTERNALSYM LINEERR_INVALMEDIAMODE}
  1038.   LINEERR_INVALMESSAGEID                  = DWORD($80000030);
  1039.   {$EXTERNALSYM LINEERR_INVALMESSAGEID}
  1040.   LINEERR_INVALPARAM                      = DWORD($80000032);
  1041.   {$EXTERNALSYM LINEERR_INVALPARAM}
  1042.   LINEERR_INVALPARKID                     = DWORD($80000033);
  1043.   {$EXTERNALSYM LINEERR_INVALPARKID}
  1044.   LINEERR_INVALPARKMODE                   = DWORD($80000034);
  1045.   {$EXTERNALSYM LINEERR_INVALPARKMODE}
  1046.   LINEERR_INVALPOINTER                    = DWORD($80000035);
  1047.   {$EXTERNALSYM LINEERR_INVALPOINTER}
  1048.   LINEERR_INVALPRIVSELECT                 = DWORD($80000036);
  1049.   {$EXTERNALSYM LINEERR_INVALPRIVSELECT}
  1050.   LINEERR_INVALRATE                       = DWORD($80000037);
  1051.   {$EXTERNALSYM LINEERR_INVALRATE}
  1052.   LINEERR_INVALREQUESTMODE                = DWORD($80000038);
  1053.   {$EXTERNALSYM LINEERR_INVALREQUESTMODE}
  1054.   LINEERR_INVALTERMINALID                 = DWORD($80000039);
  1055.   {$EXTERNALSYM LINEERR_INVALTERMINALID}
  1056.   LINEERR_INVALTERMINALMODE               = DWORD($8000003A);
  1057.   {$EXTERNALSYM LINEERR_INVALTERMINALMODE}
  1058.   LINEERR_INVALTIMEOUT                    = DWORD($8000003B);
  1059.   {$EXTERNALSYM LINEERR_INVALTIMEOUT}
  1060.   LINEERR_INVALTONE                       = DWORD($8000003C);
  1061.   {$EXTERNALSYM LINEERR_INVALTONE}
  1062.   LINEERR_INVALTONELIST                   = DWORD($8000003D);
  1063.   {$EXTERNALSYM LINEERR_INVALTONELIST}
  1064.   LINEERR_INVALTONEMODE                   = DWORD($8000003E);
  1065.   {$EXTERNALSYM LINEERR_INVALTONEMODE}
  1066.   LINEERR_INVALTRANSFERMODE               = DWORD($8000003F);
  1067.   {$EXTERNALSYM LINEERR_INVALTRANSFERMODE}
  1068.   LINEERR_LINEMAPPERFAILED                = DWORD($80000040);
  1069.   {$EXTERNALSYM LINEERR_LINEMAPPERFAILED}
  1070.   LINEERR_NOCONFERENCE                    = DWORD($80000041);
  1071.   {$EXTERNALSYM LINEERR_NOCONFERENCE}
  1072.   LINEERR_NODEVICE                        = DWORD($80000042);
  1073.   {$EXTERNALSYM LINEERR_NODEVICE}
  1074.   LINEERR_NODRIVER                        = DWORD($80000043);
  1075.   {$EXTERNALSYM LINEERR_NODRIVER}
  1076.   LINEERR_NOMEM                           = DWORD($80000044);
  1077.   {$EXTERNALSYM LINEERR_NOMEM}
  1078.   LINEERR_NOREQUEST                       = DWORD($80000045);
  1079.   {$EXTERNALSYM LINEERR_NOREQUEST}
  1080.   LINEERR_NOTOWNER                        = DWORD($80000046);
  1081.   {$EXTERNALSYM LINEERR_NOTOWNER}
  1082.   LINEERR_NOTREGISTERED                   = DWORD($80000047);
  1083.   {$EXTERNALSYM LINEERR_NOTREGISTERED}
  1084.   LINEERR_OPERATIONFAILED                 = DWORD($80000048);
  1085.   {$EXTERNALSYM LINEERR_OPERATIONFAILED}
  1086.   LINEERR_OPERATIONUNAVAIL                = DWORD($80000049);
  1087.   {$EXTERNALSYM LINEERR_OPERATIONUNAVAIL}
  1088.   LINEERR_RATEUNAVAIL                     = DWORD($8000004A);
  1089.   {$EXTERNALSYM LINEERR_RATEUNAVAIL}
  1090.   LINEERR_RESOURCEUNAVAIL                 = DWORD($8000004B);
  1091.   {$EXTERNALSYM LINEERR_RESOURCEUNAVAIL}
  1092.   LINEERR_REQUESTOVERRUN                  = DWORD($8000004C);
  1093.   {$EXTERNALSYM LINEERR_REQUESTOVERRUN}
  1094.   LINEERR_STRUCTURETOOSMALL               = DWORD($8000004D);
  1095.   {$EXTERNALSYM LINEERR_STRUCTURETOOSMALL}
  1096.   LINEERR_TARGETNOTFOUND                  = DWORD($8000004E);
  1097.   {$EXTERNALSYM LINEERR_TARGETNOTFOUND}
  1098.   LINEERR_TARGETSELF                      = DWORD($8000004F);
  1099.   {$EXTERNALSYM LINEERR_TARGETSELF}
  1100.   LINEERR_UNINITIALIZED                   = DWORD($80000050);
  1101.   {$EXTERNALSYM LINEERR_UNINITIALIZED}
  1102.   LINEERR_USERUSERINFOTOOBIG              = DWORD($80000051);
  1103.   {$EXTERNALSYM LINEERR_USERUSERINFOTOOBIG}
  1104.   LINEERR_REINIT                          = DWORD($80000052);
  1105.   {$EXTERNALSYM LINEERR_REINIT}
  1106.   LINEERR_ADDRESSBLOCKED                  = DWORD($80000053);
  1107.   {$EXTERNALSYM LINEERR_ADDRESSBLOCKED}
  1108.   LINEERR_BILLINGREJECTED                 = DWORD($80000054);
  1109.   {$EXTERNALSYM LINEERR_BILLINGREJECTED}
  1110.   LINEERR_INVALFEATURE                    = DWORD($80000055);
  1111.   {$EXTERNALSYM LINEERR_INVALFEATURE}
  1112.   LINEERR_NOMULTIPLEINSTANCE              = DWORD($80000056);
  1113.   {$EXTERNALSYM LINEERR_NOMULTIPLEINSTANCE}
  1114. {$IFDEF TAPI20}
  1115.   LINEERR_INVALAGENTID                    = DWORD($80000057);    // TAPI v2.0
  1116.   {$EXTERNALSYM LINEERR_INVALAGENTID}
  1117.   LINEERR_INVALAGENTGROUP                 = DWORD($80000058);    // TAPI v2.0
  1118.   {$EXTERNALSYM LINEERR_INVALAGENTGROUP}
  1119.   LINEERR_INVALPASSWORD                   = DWORD($80000059);    // TAPI v2.0
  1120.   {$EXTERNALSYM LINEERR_INVALPASSWORD}
  1121.   LINEERR_INVALAGENTSTATE                 = DWORD($8000005A);    // TAPI v2.0
  1122.   {$EXTERNALSYM LINEERR_INVALAGENTSTATE}
  1123.   LINEERR_INVALAGENTACTIVITY              = DWORD($8000005B);    // TAPI v2.0
  1124.   {$EXTERNALSYM LINEERR_INVALAGENTACTIVITY}
  1125.   LINEERR_DIALVOICEDETECT                 = DWORD($8000005C);    // TAPI v2.0
  1126.   {$EXTERNALSYM LINEERR_DIALVOICEDETECT}
  1127. {$ENDIF}
  1128. {$IFDEF TAPI22}
  1129.   LINEERR_USERCANCELLED                   = DWORD($8000005D);    // TAPI v2.2
  1130.   {$EXTERNALSYM LINEERR_USERCANCELLED}
  1131. {$ENDIF}
  1132. {$IFDEF TAPI30}
  1133.   LINEERR_INVALADDRESSTYPE                = DWORD($8000005E);    // TAPI v3.0
  1134.   {$EXTERNALSYM LINEERR_INVALADDRESSTYPE}
  1135. {$ENDIF}
  1136. {$IFDEF TAPI22}
  1137.   LINEERR_INVALAGENTSESSIONSTATE          = DWORD($8000005F);    // TAPI v2.2
  1138.   {$EXTERNALSYM LINEERR_INVALAGENTSESSIONSTATE}
  1139.   LINEERR_DISCONNECTED                    = DWORD($80000060);
  1140.   {$EXTERNALSYM LINEERR_DISCONNECTED}
  1141. {$ENDIF}
  1142.   LINEFEATURE_DEVSPECIFIC                 = $00000001;
  1143.   {$EXTERNALSYM LINEFEATURE_DEVSPECIFIC}
  1144.   LINEFEATURE_DEVSPECIFICFEAT             = $00000002;
  1145.   {$EXTERNALSYM LINEFEATURE_DEVSPECIFICFEAT}
  1146.   LINEFEATURE_FORWARD                     = $00000004;
  1147.   {$EXTERNALSYM LINEFEATURE_FORWARD}
  1148.   LINEFEATURE_MAKECALL                    = $00000008;
  1149.   {$EXTERNALSYM LINEFEATURE_MAKECALL}
  1150.   LINEFEATURE_SETMEDIACONTROL             = $00000010;
  1151.   {$EXTERNALSYM LINEFEATURE_SETMEDIACONTROL}
  1152.   LINEFEATURE_SETTERMINAL                 = $00000020;
  1153.   {$EXTERNALSYM LINEFEATURE_SETTERMINAL}
  1154. {$IFDEF TAPI20}
  1155.   LINEFEATURE_SETDEVSTATUS                = $00000040;     // TAPI v2.0
  1156.   {$EXTERNALSYM LINEFEATURE_SETDEVSTATUS}
  1157.   LINEFEATURE_FORWARDFWD                  = $00000080;     // TAPI v2.0
  1158.   {$EXTERNALSYM LINEFEATURE_FORWARDFWD}
  1159.   LINEFEATURE_FORWARDDND                  = $00000100;     // TAPI v2.0
  1160.   {$EXTERNALSYM LINEFEATURE_FORWARDDND}
  1161. {$ENDIF}
  1162.   LINEFORWARDMODE_UNCOND                  = $00000001;
  1163.   {$EXTERNALSYM LINEFORWARDMODE_UNCOND}
  1164.   LINEFORWARDMODE_UNCONDINTERNAL          = $00000002;
  1165.   {$EXTERNALSYM LINEFORWARDMODE_UNCONDINTERNAL}
  1166.   LINEFORWARDMODE_UNCONDEXTERNAL          = $00000004;
  1167.   {$EXTERNALSYM LINEFORWARDMODE_UNCONDEXTERNAL}
  1168.   LINEFORWARDMODE_UNCONDSPECIFIC          = $00000008;
  1169.   {$EXTERNALSYM LINEFORWARDMODE_UNCONDSPECIFIC}
  1170.   LINEFORWARDMODE_BUSY                    = $00000010;
  1171.   {$EXTERNALSYM LINEFORWARDMODE_BUSY}
  1172.   LINEFORWARDMODE_BUSYINTERNAL            = $00000020;
  1173.   {$EXTERNALSYM LINEFORWARDMODE_BUSYINTERNAL}
  1174.   LINEFORWARDMODE_BUSYEXTERNAL            = $00000040;
  1175.   {$EXTERNALSYM LINEFORWARDMODE_BUSYEXTERNAL}
  1176.   LINEFORWARDMODE_BUSYSPECIFIC            = $00000080;
  1177.   {$EXTERNALSYM LINEFORWARDMODE_BUSYSPECIFIC}
  1178.   LINEFORWARDMODE_NOANSW                  = $00000100;
  1179.   {$EXTERNALSYM LINEFORWARDMODE_NOANSW}
  1180.   LINEFORWARDMODE_NOANSWINTERNAL          = $00000200;
  1181.   {$EXTERNALSYM LINEFORWARDMODE_NOANSWINTERNAL}
  1182.   LINEFORWARDMODE_NOANSWEXTERNAL          = $00000400;
  1183.   {$EXTERNALSYM LINEFORWARDMODE_NOANSWEXTERNAL}
  1184.   LINEFORWARDMODE_NOANSWSPECIFIC          = $00000800;
  1185.   {$EXTERNALSYM LINEFORWARDMODE_NOANSWSPECIFIC}
  1186.   LINEFORWARDMODE_BUSYNA                  = $00001000;
  1187.   {$EXTERNALSYM LINEFORWARDMODE_BUSYNA}
  1188.   LINEFORWARDMODE_BUSYNAINTERNAL          = $00002000;
  1189.   {$EXTERNALSYM LINEFORWARDMODE_BUSYNAINTERNAL}
  1190.   LINEFORWARDMODE_BUSYNAEXTERNAL          = $00004000;
  1191.   {$EXTERNALSYM LINEFORWARDMODE_BUSYNAEXTERNAL}
  1192.   LINEFORWARDMODE_BUSYNASPECIFIC          = $00008000;
  1193.   {$EXTERNALSYM LINEFORWARDMODE_BUSYNASPECIFIC}
  1194.   LINEFORWARDMODE_UNKNOWN                 = $00010000;     // TAPI v1.4
  1195.   {$EXTERNALSYM LINEFORWARDMODE_UNKNOWN}
  1196.   LINEFORWARDMODE_UNAVAIL                 = $00020000;     // TAPI v1.4
  1197.   {$EXTERNALSYM LINEFORWARDMODE_UNAVAIL}
  1198.   LINEGATHERTERM_BUFFERFULL               = $00000001;
  1199.   {$EXTERNALSYM LINEGATHERTERM_BUFFERFULL}
  1200.   LINEGATHERTERM_TERMDIGIT                = $00000002;
  1201.   {$EXTERNALSYM LINEGATHERTERM_TERMDIGIT}
  1202.   LINEGATHERTERM_FIRSTTIMEOUT             = $00000004;
  1203.   {$EXTERNALSYM LINEGATHERTERM_FIRSTTIMEOUT}
  1204.   LINEGATHERTERM_INTERTIMEOUT             = $00000008;
  1205.   {$EXTERNALSYM LINEGATHERTERM_INTERTIMEOUT}
  1206.   LINEGATHERTERM_CANCEL                   = $00000010;
  1207.   {$EXTERNALSYM LINEGATHERTERM_CANCEL}
  1208.   LINEGENERATETERM_DONE                   = $00000001;
  1209.   {$EXTERNALSYM LINEGENERATETERM_DONE}
  1210.   LINEGENERATETERM_CANCEL                 = $00000002;
  1211.   {$EXTERNALSYM LINEGENERATETERM_CANCEL}
  1212. {$IFDEF TAPI20}
  1213. // These constants are mutually exclusive - there's no way to specify more
  1214. // than one at a time (and it doesn't make sense, either) so they're
  1215. // ordinal rather than bits.
  1216.   LINEINITIALIZEEXOPTION_USEHIDDENWINDOW      = $00000001; // TAPI v2.0
  1217.   {$EXTERNALSYM LINEINITIALIZEEXOPTION_USEHIDDENWINDOW}
  1218.   LINEINITIALIZEEXOPTION_USEEVENT             = $00000002; // TAPI v2.0
  1219.   {$EXTERNALSYM LINEINITIALIZEEXOPTION_USEEVENT}
  1220.   LINEINITIALIZEEXOPTION_USECOMPLETIONPORT    = $00000003; // TAPI v2.0
  1221.   {$EXTERNALSYM LINEINITIALIZEEXOPTION_USECOMPLETIONPORT}
  1222. {$ENDIF}
  1223. {$IFDEF TAPI30}
  1224.   LINEINITIALIZEEXOPTION_CALLHUBTRACKING      = DWORD($80000000); // TAPI v3.0
  1225. {$ENDIF}
  1226.   LINELOCATIONOPTION_PULSEDIAL            = $00000001;     // TAPI v1.4
  1227.   {$EXTERNALSYM LINELOCATIONOPTION_PULSEDIAL}
  1228.   LINEMAPPER                              = DWORD($FFFFFFFF);
  1229.   {$EXTERNALSYM LINEMAPPER}
  1230.   LINEMEDIACONTROL_NONE                   = $00000001;
  1231.   {$EXTERNALSYM LINEMEDIACONTROL_NONE}
  1232.   LINEMEDIACONTROL_START                  = $00000002;
  1233.   {$EXTERNALSYM LINEMEDIACONTROL_START}
  1234.   LINEMEDIACONTROL_RESET                  = $00000004;
  1235.   {$EXTERNALSYM LINEMEDIACONTROL_RESET}
  1236.   LINEMEDIACONTROL_PAUSE                  = $00000008;
  1237.   {$EXTERNALSYM LINEMEDIACONTROL_PAUSE}
  1238.   LINEMEDIACONTROL_RESUME                 = $00000010;
  1239.   {$EXTERNALSYM LINEMEDIACONTROL_RESUME}
  1240.   LINEMEDIACONTROL_RATEUP                 = $00000020;
  1241.   {$EXTERNALSYM LINEMEDIACONTROL_RATEUP}
  1242.   LINEMEDIACONTROL_RATEDOWN               = $00000040;
  1243.   {$EXTERNALSYM LINEMEDIACONTROL_RATEDOWN}
  1244.   LINEMEDIACONTROL_RATENORMAL             = $00000080;
  1245.   {$EXTERNALSYM LINEMEDIACONTROL_RATENORMAL}
  1246.   LINEMEDIACONTROL_VOLUMEUP               = $00000100;
  1247.   {$EXTERNALSYM LINEMEDIACONTROL_VOLUMEUP}
  1248.   LINEMEDIACONTROL_VOLUMEDOWN             = $00000200;
  1249.   {$EXTERNALSYM LINEMEDIACONTROL_VOLUMEDOWN}
  1250.   LINEMEDIACONTROL_VOLUMENORMAL           = $00000400;
  1251.   {$EXTERNALSYM LINEMEDIACONTROL_VOLUMENORMAL}
  1252.   LINEMEDIAMODE_UNKNOWN                   = $00000002;
  1253.   {$EXTERNALSYM LINEMEDIAMODE_UNKNOWN}
  1254.   LINEMEDIAMODE_INTERACTIVEVOICE          = $00000004;
  1255.   {$EXTERNALSYM LINEMEDIAMODE_INTERACTIVEVOICE}
  1256.   LINEMEDIAMODE_AUTOMATEDVOICE            = $00000008;
  1257.   {$EXTERNALSYM LINEMEDIAMODE_AUTOMATEDVOICE}
  1258.   LINEMEDIAMODE_DATAMODEM                 = $00000010;
  1259.   {$EXTERNALSYM LINEMEDIAMODE_DATAMODEM}
  1260.   LINEMEDIAMODE_G3FAX                     = $00000020;
  1261.   {$EXTERNALSYM LINEMEDIAMODE_G3FAX}
  1262.   LINEMEDIAMODE_TDD                       = $00000040;
  1263.   {$EXTERNALSYM LINEMEDIAMODE_TDD}
  1264.   LINEMEDIAMODE_G4FAX                     = $00000080;
  1265.   {$EXTERNALSYM LINEMEDIAMODE_G4FAX}
  1266.   LINEMEDIAMODE_DIGITALDATA               = $00000100;
  1267.   {$EXTERNALSYM LINEMEDIAMODE_DIGITALDATA}
  1268.   LINEMEDIAMODE_TELETEX                   = $00000200;
  1269.   {$EXTERNALSYM LINEMEDIAMODE_TELETEX}
  1270.   LINEMEDIAMODE_VIDEOTEX                  = $00000400;
  1271.   {$EXTERNALSYM LINEMEDIAMODE_VIDEOTEX}
  1272.   LINEMEDIAMODE_TELEX                     = $00000800;
  1273.   {$EXTERNALSYM LINEMEDIAMODE_TELEX}
  1274.   LINEMEDIAMODE_MIXED                     = $00001000;
  1275.   {$EXTERNALSYM LINEMEDIAMODE_MIXED}
  1276.   LINEMEDIAMODE_ADSI                      = $00002000;
  1277.   {$EXTERNALSYM LINEMEDIAMODE_ADSI}
  1278.   LINEMEDIAMODE_VOICEVIEW                 = $00004000;     // TAPI v1.4
  1279.   {$EXTERNALSYM LINEMEDIAMODE_VOICEVIEW}
  1280. {$IFDEF TAPI21}
  1281.   LINEMEDIAMODE_VIDEO                     = $00008000;     {// TAPI v2.1}
  1282.   {$EXTERNALSYM LINEMEDIAMODE_VIDEO}
  1283. {$ENDIF}
  1284.   LAST_LINEMEDIAMODE                      = $00008000;
  1285.   {$EXTERNALSYM LAST_LINEMEDIAMODE}
  1286.   LINEOFFERINGMODE_ACTIVE                 = $00000001;     // TAPI v1.4
  1287.   {$EXTERNALSYM LINEOFFERINGMODE_ACTIVE}
  1288.   LINEOFFERINGMODE_INACTIVE               = $00000002;     // TAPI v1.4
  1289.   {$EXTERNALSYM LINEOFFERINGMODE_INACTIVE}
  1290. {$IFDEF TAPI20}
  1291.   LINEOPENOPTION_SINGLEADDRESS            = DWORD($80000000); // TAPI v2.0
  1292.   {$EXTERNALSYM LINEOPENOPTION_SINGLEADDRESS}
  1293.   LINEOPENOPTION_PROXY                    = $40000000;     // TAPI v2.0
  1294.   {$EXTERNALSYM LINEOPENOPTION_PROXY}
  1295. {$ENDIF}
  1296.   LINEPARKMODE_DIRECTED                   = $00000001;
  1297.   {$EXTERNALSYM LINEPARKMODE_DIRECTED}
  1298.   LINEPARKMODE_NONDIRECTED                = $00000002;
  1299.   {$EXTERNALSYM LINEPARKMODE_NONDIRECTED}
  1300. {$IFDEF TAPI20}
  1301.   LINEPROXYREQUEST_SETAGENTGROUP          = $00000001;     // TAPI v2.0
  1302.   {$EXTERNALSYM LINEPROXYREQUEST_SETAGENTGROUP}
  1303.   LINEPROXYREQUEST_SETAGENTSTATE          = $00000002;     // TAPI v2.0
  1304.   {$EXTERNALSYM LINEPROXYREQUEST_SETAGENTSTATE}
  1305.   LINEPROXYREQUEST_SETAGENTACTIVITY       = $00000003;     // TAPI v2.0
  1306.   {$EXTERNALSYM LINEPROXYREQUEST_SETAGENTACTIVITY}
  1307.   LINEPROXYREQUEST_GETAGENTCAPS           = $00000004;     // TAPI v2.0
  1308.   {$EXTERNALSYM LINEPROXYREQUEST_GETAGENTCAPS}
  1309.   LINEPROXYREQUEST_GETAGENTSTATUS         = $00000005;     // TAPI v2.0
  1310.   {$EXTERNALSYM LINEPROXYREQUEST_GETAGENTSTATUS}
  1311.   LINEPROXYREQUEST_AGENTSPECIFIC          = $00000006;     // TAPI v2.0
  1312.   {$EXTERNALSYM LINEPROXYREQUEST_AGENTSPECIFIC}
  1313.   LINEPROXYREQUEST_GETAGENTACTIVITYLIST   = $00000007;     // TAPI v2.0
  1314.   {$EXTERNALSYM LINEPROXYREQUEST_GETAGENTACTIVITYLIST}
  1315.   LINEPROXYREQUEST_GETAGENTGROUPLIST      = $00000008;     // TAPI v2.0
  1316.   {$EXTERNALSYM LINEPROXYREQUEST_GETAGENTGROUPLIST}
  1317. {$ENDIF}
  1318. {$IFDEF TAPI22}
  1319.   LINEPROXYREQUEST_CREATEAGENT                = $00000009; // TAPI v2.2
  1320.   {$EXTERNALSYM LINEPROXYREQUEST_CREATEAGENT}
  1321.   LINEPROXYREQUEST_SETAGENTMEASUREMENTPERIOD  = $0000000A; // TAPI v2.2
  1322.   {$EXTERNALSYM LINEPROXYREQUEST_SETAGENTMEASUREMENTPERIOD}
  1323.   LINEPROXYREQUEST_GETAGENTINFO               = $0000000B; // TAPI v2.2
  1324.   {$EXTERNALSYM LINEPROXYREQUEST_GETAGENTINFO}
  1325.   LINEPROXYREQUEST_CREATEAGENTSESSION         = $0000000C; // TAPI v2.2
  1326.   {$EXTERNALSYM LINEPROXYREQUEST_CREATEAGENTSESSION}
  1327.   LINEPROXYREQUEST_GETAGENTSESSIONLIST        = $0000000D; // TAPI v2.2
  1328.   {$EXTERNALSYM LINEPROXYREQUEST_GETAGENTSESSIONLIST}
  1329.   LINEPROXYREQUEST_SETAGENTSESSIONSTATE       = $0000000E; // TAPI v2.2
  1330.   {$EXTERNALSYM LINEPROXYREQUEST_SETAGENTSESSIONSTATE}
  1331.   LINEPROXYREQUEST_GETAGENTSESSIONINFO        = $0000000F; // TAPI v2.2
  1332.   {$EXTERNALSYM LINEPROXYREQUEST_GETAGENTSESSIONINFO}
  1333.   LINEPROXYREQUEST_GETQUEUELIST               = $00000010; // TAPI v2.2
  1334.   {$EXTERNALSYM LINEPROXYREQUEST_GETQUEUELIST}
  1335.   LINEPROXYREQUEST_SETQUEUEMEASUREMENTPERIOD  = $00000011; // TAPI v2.2
  1336.   {$EXTERNALSYM LINEPROXYREQUEST_SETQUEUEMEASUREMENTPERIOD}
  1337.   LINEPROXYREQUEST_GETQUEUEINFO               = $00000012; // TAPI v2.2
  1338.   {$EXTERNALSYM LINEPROXYREQUEST_GETQUEUEINFO}
  1339.   LINEPROXYREQUEST_GETGROUPLIST               = $00000013; // TAPI v2.2
  1340.   {$EXTERNALSYM LINEPROXYREQUEST_GETGROUPLIST}
  1341.   LINEPROXYREQUEST_SETAGENTSTATEEX            = $00000014; // TAPI v2.2
  1342.   {$EXTERNALSYM LINEPROXYREQUEST_SETAGENTSTATEEX}
  1343. {$ENDIF}
  1344.   LINEREMOVEFROMCONF_NONE                 = $00000001;
  1345.   {$EXTERNALSYM LINEREMOVEFROMCONF_NONE}
  1346.   LINEREMOVEFROMCONF_LAST                 = $00000002;
  1347.   {$EXTERNALSYM LINEREMOVEFROMCONF_LAST}
  1348.   LINEREMOVEFROMCONF_ANY                  = $00000003;
  1349.   {$EXTERNALSYM LINEREMOVEFROMCONF_ANY}
  1350.   LINEREQUESTMODE_MAKECALL                = $00000001;
  1351.   {$EXTERNALSYM LINEREQUESTMODE_MAKECALL}
  1352.   LINEREQUESTMODE_MEDIACALL               = $00000002;
  1353.   {$EXTERNALSYM LINEREQUESTMODE_MEDIACALL}
  1354.   LINEREQUESTMODE_DROP                    = $00000004;
  1355.   {$EXTERNALSYM LINEREQUESTMODE_DROP}
  1356.   LAST_LINEREQUESTMODE                    = LINEREQUESTMODE_MEDIACALL;
  1357.   {$EXTERNALSYM LAST_LINEREQUESTMODE}
  1358.   LINEROAMMODE_UNKNOWN                    = $00000001;
  1359.   {$EXTERNALSYM LINEROAMMODE_UNKNOWN}
  1360.   LINEROAMMODE_UNAVAIL                    = $00000002;
  1361.   {$EXTERNALSYM LINEROAMMODE_UNAVAIL}
  1362.   LINEROAMMODE_HOME                       = $00000004;
  1363.   {$EXTERNALSYM LINEROAMMODE_HOME}
  1364.   LINEROAMMODE_ROAMA                      = $00000008;
  1365.   {$EXTERNALSYM LINEROAMMODE_ROAMA}
  1366.   LINEROAMMODE_ROAMB                      = $00000010;
  1367.   {$EXTERNALSYM LINEROAMMODE_ROAMB}
  1368.   LINESPECIALINFO_NOCIRCUIT               = $00000001;
  1369.   {$EXTERNALSYM LINESPECIALINFO_NOCIRCUIT}
  1370.   LINESPECIALINFO_CUSTIRREG               = $00000002;
  1371.   {$EXTERNALSYM LINESPECIALINFO_CUSTIRREG}
  1372.   LINESPECIALINFO_REORDER                 = $00000004;
  1373.   {$EXTERNALSYM LINESPECIALINFO_REORDER}
  1374.   LINESPECIALINFO_UNKNOWN                 = $00000008;
  1375.   {$EXTERNALSYM LINESPECIALINFO_UNKNOWN}
  1376.   LINESPECIALINFO_UNAVAIL                 = $00000010;
  1377.   {$EXTERNALSYM LINESPECIALINFO_UNAVAIL}
  1378.   LINETERMDEV_PHONE                       = $00000001;
  1379.   {$EXTERNALSYM LINETERMDEV_PHONE}
  1380.   LINETERMDEV_HEADSET                     = $00000002;
  1381.   {$EXTERNALSYM LINETERMDEV_HEADSET}
  1382.   LINETERMDEV_SPEAKER                     = $00000004;
  1383.   {$EXTERNALSYM LINETERMDEV_SPEAKER}
  1384.   LINETERMMODE_BUTTONS                    = $00000001;
  1385.   {$EXTERNALSYM LINETERMMODE_BUTTONS}
  1386.   LINETERMMODE_LAMPS                      = $00000002;
  1387.   {$EXTERNALSYM LINETERMMODE_LAMPS}
  1388.   LINETERMMODE_DISPLAY                    = $00000004;
  1389.   {$EXTERNALSYM LINETERMMODE_DISPLAY}
  1390.   LINETERMMODE_RINGER                     = $00000008;
  1391.   {$EXTERNALSYM LINETERMMODE_RINGER}
  1392.   LINETERMMODE_HOOKSWITCH                 = $00000010;
  1393.   {$EXTERNALSYM LINETERMMODE_HOOKSWITCH}
  1394.   LINETERMMODE_MEDIATOLINE                = $00000020;
  1395.   {$EXTERNALSYM LINETERMMODE_MEDIATOLINE}
  1396.   LINETERMMODE_MEDIAFROMLINE              = $00000040;
  1397.   {$EXTERNALSYM LINETERMMODE_MEDIAFROMLINE}
  1398.   LINETERMMODE_MEDIABIDIRECT              = $00000080;
  1399.   {$EXTERNALSYM LINETERMMODE_MEDIABIDIRECT}
  1400.   LINETERMSHARING_PRIVATE                 = $00000001;
  1401.   {$EXTERNALSYM LINETERMSHARING_PRIVATE}
  1402.   LINETERMSHARING_SHAREDEXCL              = $00000002;
  1403.   {$EXTERNALSYM LINETERMSHARING_SHAREDEXCL}
  1404.   LINETERMSHARING_SHAREDCONF              = $00000004;
  1405.   {$EXTERNALSYM LINETERMSHARING_SHAREDCONF}
  1406.   LINETOLLLISTOPTION_ADD                  = $00000001;
  1407.   {$EXTERNALSYM LINETOLLLISTOPTION_ADD}
  1408.   LINETOLLLISTOPTION_REMOVE               = $00000002;
  1409.   {$EXTERNALSYM LINETOLLLISTOPTION_REMOVE}
  1410.   LINETONEMODE_CUSTOM                     = $00000001;
  1411.   {$EXTERNALSYM LINETONEMODE_CUSTOM}
  1412.   LINETONEMODE_RINGBACK                   = $00000002;
  1413.   {$EXTERNALSYM LINETONEMODE_RINGBACK}
  1414.   LINETONEMODE_BUSY                       = $00000004;
  1415.   {$EXTERNALSYM LINETONEMODE_BUSY}
  1416.   LINETONEMODE_BEEP                       = $00000008;
  1417.   {$EXTERNALSYM LINETONEMODE_BEEP}
  1418.   LINETONEMODE_BILLING                    = $00000010;
  1419.   {$EXTERNALSYM LINETONEMODE_BILLING}
  1420.   LINETRANSFERMODE_TRANSFER               = $00000001;
  1421.   {$EXTERNALSYM LINETRANSFERMODE_TRANSFER}
  1422.   LINETRANSFERMODE_CONFERENCE             = $00000002;
  1423.   {$EXTERNALSYM LINETRANSFERMODE_CONFERENCE}
  1424.   LINETRANSLATEOPTION_CARDOVERRIDE        = $00000001;
  1425.   {$EXTERNALSYM LINETRANSLATEOPTION_CARDOVERRIDE}
  1426.   LINETRANSLATEOPTION_CANCELCALLWAITING   = $00000002;     // TAPI v1.4
  1427.   {$EXTERNALSYM LINETRANSLATEOPTION_CANCELCALLWAITING}
  1428.   LINETRANSLATEOPTION_FORCELOCAL          = $00000004;     // TAPI v1.4
  1429.   {$EXTERNALSYM LINETRANSLATEOPTION_FORCELOCAL}
  1430.   LINETRANSLATEOPTION_FORCELD             = $00000008;     // TAPI v1.4
  1431.   {$EXTERNALSYM LINETRANSLATEOPTION_FORCELD}
  1432.   LINETRANSLATERESULT_CANONICAL           = $00000001;
  1433.   {$EXTERNALSYM LINETRANSLATERESULT_CANONICAL}
  1434.   LINETRANSLATERESULT_INTERNATIONAL       = $00000002;
  1435.   {$EXTERNALSYM LINETRANSLATERESULT_INTERNATIONAL}
  1436.   LINETRANSLATERESULT_LONGDISTANCE        = $00000004;
  1437.   {$EXTERNALSYM LINETRANSLATERESULT_LONGDISTANCE}
  1438.   LINETRANSLATERESULT_LOCAL               = $00000008;
  1439.   {$EXTERNALSYM LINETRANSLATERESULT_LOCAL}
  1440.   LINETRANSLATERESULT_INTOLLLIST          = $00000010;
  1441.   {$EXTERNALSYM LINETRANSLATERESULT_INTOLLLIST}
  1442.   LINETRANSLATERESULT_NOTINTOLLLIST       = $00000020;
  1443.   {$EXTERNALSYM LINETRANSLATERESULT_NOTINTOLLLIST}
  1444.   LINETRANSLATERESULT_DIALBILLING         = $00000040;
  1445.   {$EXTERNALSYM LINETRANSLATERESULT_DIALBILLING}
  1446.   LINETRANSLATERESULT_DIALQUIET           = $00000080;
  1447.   {$EXTERNALSYM LINETRANSLATERESULT_DIALQUIET}
  1448.   LINETRANSLATERESULT_DIALDIALTONE        = $00000100;
  1449.   {$EXTERNALSYM LINETRANSLATERESULT_DIALDIALTONE}
  1450.   LINETRANSLATERESULT_DIALPROMPT          = $00000200;
  1451.   {$EXTERNALSYM LINETRANSLATERESULT_DIALPROMPT}
  1452. {$IFDEF TAPI20}
  1453.   LINETRANSLATERESULT_VOICEDETECT         = $00000400;     // TAPI v2.0
  1454.   {$EXTERNALSYM LINETRANSLATERESULT_VOICEDETECT}
  1455. {$ENDIF}
  1456. {$IFDEF TAPI30}
  1457.   LINETRANSLATERESULT_NOTRANSLATION       = $00000800;     // TAPI v3.0
  1458.   {$EXTERNALSYM LINETRANSLATERESULT_NOTRANSLATION}
  1459. {$ENDIF}
  1460.   PHONEBUTTONFUNCTION_UNKNOWN             = $00000000;
  1461.   {$EXTERNALSYM PHONEBUTTONFUNCTION_UNKNOWN}
  1462.   PHONEBUTTONFUNCTION_CONFERENCE          = $00000001;
  1463.   {$EXTERNALSYM PHONEBUTTONFUNCTION_CONFERENCE}
  1464.   PHONEBUTTONFUNCTION_TRANSFER            = $00000002;
  1465.   {$EXTERNALSYM PHONEBUTTONFUNCTION_TRANSFER}
  1466.   PHONEBUTTONFUNCTION_DROP                = $00000003;
  1467.   {$EXTERNALSYM PHONEBUTTONFUNCTION_DROP}
  1468.   PHONEBUTTONFUNCTION_HOLD                = $00000004;
  1469.   {$EXTERNALSYM PHONEBUTTONFUNCTION_HOLD}
  1470.   PHONEBUTTONFUNCTION_RECALL              = $00000005;
  1471.   {$EXTERNALSYM PHONEBUTTONFUNCTION_RECALL}
  1472.   PHONEBUTTONFUNCTION_DISCONNECT          = $00000006;
  1473.   {$EXTERNALSYM PHONEBUTTONFUNCTION_DISCONNECT}
  1474.   PHONEBUTTONFUNCTION_CONNECT             = $00000007;
  1475.   {$EXTERNALSYM PHONEBUTTONFUNCTION_CONNECT}
  1476.   PHONEBUTTONFUNCTION_MSGWAITON           = $00000008;
  1477.   {$EXTERNALSYM PHONEBUTTONFUNCTION_MSGWAITON}
  1478.   PHONEBUTTONFUNCTION_MSGWAITOFF          = $00000009;
  1479.   {$EXTERNALSYM PHONEBUTTONFUNCTION_MSGWAITOFF}
  1480.   PHONEBUTTONFUNCTION_SELECTRING          = $0000000A;
  1481.   {$EXTERNALSYM PHONEBUTTONFUNCTION_SELECTRING}
  1482.   PHONEBUTTONFUNCTION_ABBREVDIAL          = $0000000B;
  1483.   {$EXTERNALSYM PHONEBUTTONFUNCTION_ABBREVDIAL}
  1484.   PHONEBUTTONFUNCTION_FORWARD             = $0000000C;
  1485.   {$EXTERNALSYM PHONEBUTTONFUNCTION_FORWARD}
  1486.   PHONEBUTTONFUNCTION_PICKUP              = $0000000D;
  1487.   {$EXTERNALSYM PHONEBUTTONFUNCTION_PICKUP}
  1488.   PHONEBUTTONFUNCTION_RINGAGAIN           = $0000000E;
  1489.   {$EXTERNALSYM PHONEBUTTONFUNCTION_RINGAGAIN}
  1490.   PHONEBUTTONFUNCTION_PARK                = $0000000F;
  1491.   {$EXTERNALSYM PHONEBUTTONFUNCTION_PARK}
  1492.   PHONEBUTTONFUNCTION_REJECT              = $00000010;
  1493.   {$EXTERNALSYM PHONEBUTTONFUNCTION_REJECT}
  1494.   PHONEBUTTONFUNCTION_REDIRECT            = $00000011;
  1495.   {$EXTERNALSYM PHONEBUTTONFUNCTION_REDIRECT}
  1496.   PHONEBUTTONFUNCTION_MUTE                = $00000012;
  1497.   {$EXTERNALSYM PHONEBUTTONFUNCTION_MUTE}
  1498.   PHONEBUTTONFUNCTION_VOLUMEUP            = $00000013;
  1499.   {$EXTERNALSYM PHONEBUTTONFUNCTION_VOLUMEUP}
  1500.   PHONEBUTTONFUNCTION_VOLUMEDOWN          = $00000014;
  1501.   {$EXTERNALSYM PHONEBUTTONFUNCTION_VOLUMEDOWN}
  1502.   PHONEBUTTONFUNCTION_SPEAKERON           = $00000015;
  1503.   {$EXTERNALSYM PHONEBUTTONFUNCTION_SPEAKERON}
  1504.   PHONEBUTTONFUNCTION_SPEAKEROFF          = $00000016;
  1505.   {$EXTERNALSYM PHONEBUTTONFUNCTION_SPEAKEROFF}
  1506.   PHONEBUTTONFUNCTION_FLASH               = $00000017;
  1507.   {$EXTERNALSYM PHONEBUTTONFUNCTION_FLASH}
  1508.   PHONEBUTTONFUNCTION_DATAON              = $00000018;
  1509.   {$EXTERNALSYM PHONEBUTTONFUNCTION_DATAON}
  1510.   PHONEBUTTONFUNCTION_DATAOFF             = $00000019;
  1511.   {$EXTERNALSYM PHONEBUTTONFUNCTION_DATAOFF}
  1512.   PHONEBUTTONFUNCTION_DONOTDISTURB        = $0000001A;
  1513.   {$EXTERNALSYM PHONEBUTTONFUNCTION_DONOTDISTURB}
  1514.   PHONEBUTTONFUNCTION_INTERCOM            = $0000001B;
  1515.   {$EXTERNALSYM PHONEBUTTONFUNCTION_INTERCOM}
  1516.   PHONEBUTTONFUNCTION_BRIDGEDAPP          = $0000001C;
  1517.   {$EXTERNALSYM PHONEBUTTONFUNCTION_BRIDGEDAPP}
  1518.   PHONEBUTTONFUNCTION_BUSY                = $0000001D;
  1519.   {$EXTERNALSYM PHONEBUTTONFUNCTION_BUSY}
  1520.   PHONEBUTTONFUNCTION_CALLAPP             = $0000001E;
  1521.   {$EXTERNALSYM PHONEBUTTONFUNCTION_CALLAPP}
  1522.   PHONEBUTTONFUNCTION_DATETIME            = $0000001F;
  1523.   {$EXTERNALSYM PHONEBUTTONFUNCTION_DATETIME}
  1524.   PHONEBUTTONFUNCTION_DIRECTORY           = $00000020;
  1525.   {$EXTERNALSYM PHONEBUTTONFUNCTION_DIRECTORY}
  1526.   PHONEBUTTONFUNCTION_COVER               = $00000021;
  1527.   {$EXTERNALSYM PHONEBUTTONFUNCTION_COVER}
  1528.   PHONEBUTTONFUNCTION_CALLID              = $00000022;
  1529.   {$EXTERNALSYM PHONEBUTTONFUNCTION_CALLID}
  1530.   PHONEBUTTONFUNCTION_LASTNUM             = $00000023;
  1531.   {$EXTERNALSYM PHONEBUTTONFUNCTION_LASTNUM}
  1532.   PHONEBUTTONFUNCTION_NIGHTSRV            = $00000024;
  1533.   {$EXTERNALSYM PHONEBUTTONFUNCTION_NIGHTSRV}
  1534.   PHONEBUTTONFUNCTION_SENDCALLS           = $00000025;
  1535.   {$EXTERNALSYM PHONEBUTTONFUNCTION_SENDCALLS}
  1536.   PHONEBUTTONFUNCTION_MSGINDICATOR        = $00000026;
  1537.   {$EXTERNALSYM PHONEBUTTONFUNCTION_MSGINDICATOR}
  1538.   PHONEBUTTONFUNCTION_REPDIAL             = $00000027;
  1539.   {$EXTERNALSYM PHONEBUTTONFUNCTION_REPDIAL}
  1540.   PHONEBUTTONFUNCTION_SETREPDIAL          = $00000028;
  1541.   {$EXTERNALSYM PHONEBUTTONFUNCTION_SETREPDIAL}
  1542.   PHONEBUTTONFUNCTION_SYSTEMSPEED         = $00000029;
  1543.   {$EXTERNALSYM PHONEBUTTONFUNCTION_SYSTEMSPEED}
  1544.   PHONEBUTTONFUNCTION_STATIONSPEED        = $0000002A;
  1545.   {$EXTERNALSYM PHONEBUTTONFUNCTION_STATIONSPEED}
  1546.   PHONEBUTTONFUNCTION_CAMPON              = $0000002B;
  1547.   {$EXTERNALSYM PHONEBUTTONFUNCTION_CAMPON}
  1548.   PHONEBUTTONFUNCTION_SAVEREPEAT          = $0000002C;
  1549.   {$EXTERNALSYM PHONEBUTTONFUNCTION_SAVEREPEAT}
  1550.   PHONEBUTTONFUNCTION_QUEUECALL           = $0000002D;
  1551.   {$EXTERNALSYM PHONEBUTTONFUNCTION_QUEUECALL}
  1552.   PHONEBUTTONFUNCTION_NONE                = $0000002E;
  1553.   {$EXTERNALSYM PHONEBUTTONFUNCTION_NONE}
  1554.   PHONEBUTTONMODE_DUMMY                   = $00000001;
  1555.   {$EXTERNALSYM PHONEBUTTONMODE_DUMMY}
  1556.   PHONEBUTTONMODE_CALL                    = $00000002;
  1557.   {$EXTERNALSYM PHONEBUTTONMODE_CALL}
  1558.   PHONEBUTTONMODE_FEATURE                 = $00000004;
  1559.   {$EXTERNALSYM PHONEBUTTONMODE_FEATURE}
  1560.   PHONEBUTTONMODE_KEYPAD                  = $00000008;
  1561.   {$EXTERNALSYM PHONEBUTTONMODE_KEYPAD}
  1562.   PHONEBUTTONMODE_LOCAL                   = $00000010;
  1563.   {$EXTERNALSYM PHONEBUTTONMODE_LOCAL}
  1564.   PHONEBUTTONMODE_DISPLAY                 = $00000020;
  1565.   {$EXTERNALSYM PHONEBUTTONMODE_DISPLAY}
  1566.   PHONEBUTTONSTATE_UP                     = $00000001;
  1567.   {$EXTERNALSYM PHONEBUTTONSTATE_UP}
  1568.   PHONEBUTTONSTATE_DOWN                   = $00000002;
  1569.   {$EXTERNALSYM PHONEBUTTONSTATE_DOWN}
  1570.   PHONEBUTTONSTATE_UNKNOWN                = $00000004;     // TAPI v1.4
  1571.   {$EXTERNALSYM PHONEBUTTONSTATE_UNKNOWN}
  1572.   PHONEBUTTONSTATE_UNAVAIL                = $00000008;     // TAPI v1.4
  1573.   {$EXTERNALSYM PHONEBUTTONSTATE_UNAVAIL}
  1574.   PHONEERR_ALLOCATED                      = DWORD($90000001);
  1575.   {$EXTERNALSYM PHONEERR_ALLOCATED}
  1576.   PHONEERR_BADDEVICEID                    = DWORD($90000002);
  1577.   {$EXTERNALSYM PHONEERR_BADDEVICEID}
  1578.   PHONEERR_INCOMPATIBLEAPIVERSION         = DWORD($90000003);
  1579.   {$EXTERNALSYM PHONEERR_INCOMPATIBLEAPIVERSION}
  1580.   PHONEERR_INCOMPATIBLEEXTVERSION         = DWORD($90000004);
  1581.   {$EXTERNALSYM PHONEERR_INCOMPATIBLEEXTVERSION}
  1582.   PHONEERR_INIFILECORRUPT                 = DWORD($90000005);
  1583.   {$EXTERNALSYM PHONEERR_INIFILECORRUPT}
  1584.   PHONEERR_INUSE                          = DWORD($90000006);
  1585.   {$EXTERNALSYM PHONEERR_INUSE}
  1586.   PHONEERR_INVALAPPHANDLE                 = DWORD($90000007);
  1587.   {$EXTERNALSYM PHONEERR_INVALAPPHANDLE}
  1588.   PHONEERR_INVALAPPNAME                   = DWORD($90000008);
  1589.   {$EXTERNALSYM PHONEERR_INVALAPPNAME}
  1590.   PHONEERR_INVALBUTTONLAMPID              = DWORD($90000009);
  1591.   {$EXTERNALSYM PHONEERR_INVALBUTTONLAMPID}
  1592.   PHONEERR_INVALBUTTONMODE                = DWORD($9000000A);
  1593.   {$EXTERNALSYM PHONEERR_INVALBUTTONMODE}
  1594.   PHONEERR_INVALBUTTONSTATE               = DWORD($9000000B);
  1595.   {$EXTERNALSYM PHONEERR_INVALBUTTONSTATE}
  1596.   PHONEERR_INVALDATAID                    = DWORD($9000000C);
  1597.   {$EXTERNALSYM PHONEERR_INVALDATAID}
  1598.   PHONEERR_INVALDEVICECLASS               = DWORD($9000000D);
  1599.   {$EXTERNALSYM PHONEERR_INVALDEVICECLASS}
  1600.   PHONEERR_INVALEXTVERSION                = DWORD($9000000E);
  1601.   {$EXTERNALSYM PHONEERR_INVALEXTVERSION}
  1602.   PHONEERR_INVALHOOKSWITCHDEV             = DWORD($9000000F);
  1603.   {$EXTERNALSYM PHONEERR_INVALHOOKSWITCHDEV}
  1604.   PHONEERR_INVALHOOKSWITCHMODE            = DWORD($90000010);
  1605.   {$EXTERNALSYM PHONEERR_INVALHOOKSWITCHMODE}
  1606.   PHONEERR_INVALLAMPMODE                  = DWORD($90000011);
  1607.   {$EXTERNALSYM PHONEERR_INVALLAMPMODE}
  1608.   PHONEERR_INVALPARAM                     = DWORD($90000012);
  1609.   {$EXTERNALSYM PHONEERR_INVALPARAM}
  1610.   PHONEERR_INVALPHONEHANDLE               = DWORD($90000013);
  1611.   {$EXTERNALSYM PHONEERR_INVALPHONEHANDLE}
  1612.   PHONEERR_INVALPHONESTATE                = DWORD($90000014);
  1613.   {$EXTERNALSYM PHONEERR_INVALPHONESTATE}
  1614.   PHONEERR_INVALPOINTER                   = DWORD($90000015);
  1615.   {$EXTERNALSYM PHONEERR_INVALPOINTER}
  1616.   PHONEERR_INVALPRIVILEGE                 = DWORD($90000016);
  1617.   {$EXTERNALSYM PHONEERR_INVALPRIVILEGE}
  1618.   PHONEERR_INVALRINGMODE                  = DWORD($90000017);
  1619.   {$EXTERNALSYM PHONEERR_INVALRINGMODE}
  1620.   PHONEERR_NODEVICE                       = DWORD($90000018);
  1621.   {$EXTERNALSYM PHONEERR_NODEVICE}
  1622.   PHONEERR_NODRIVER                       = DWORD($90000019);
  1623.   {$EXTERNALSYM PHONEERR_NODRIVER}
  1624.   PHONEERR_NOMEM                          = DWORD($9000001A);
  1625.   {$EXTERNALSYM PHONEERR_NOMEM}
  1626.   PHONEERR_NOTOWNER                       = DWORD($9000001B);
  1627.   {$EXTERNALSYM PHONEERR_NOTOWNER}
  1628.   PHONEERR_OPERATIONFAILED                = DWORD($9000001C);
  1629.   {$EXTERNALSYM PHONEERR_OPERATIONFAILED}
  1630.   PHONEERR_OPERATIONUNAVAIL               = DWORD($9000001D);
  1631.   {$EXTERNALSYM PHONEERR_OPERATIONUNAVAIL}
  1632.   PHONEERR_RESOURCEUNAVAIL                = DWORD($9000001F);
  1633.   {$EXTERNALSYM PHONEERR_RESOURCEUNAVAIL}
  1634.   PHONEERR_REQUESTOVERRUN                 = DWORD($90000020);
  1635.   {$EXTERNALSYM PHONEERR_REQUESTOVERRUN}
  1636.   PHONEERR_STRUCTURETOOSMALL              = DWORD($90000021);
  1637.   {$EXTERNALSYM PHONEERR_STRUCTURETOOSMALL}
  1638.   PHONEERR_UNINITIALIZED                  = DWORD($90000022);
  1639.   {$EXTERNALSYM PHONEERR_UNINITIALIZED}
  1640.   PHONEERR_REINIT                         = DWORD($90000023);
  1641.   {$EXTERNALSYM PHONEERR_REINIT}
  1642.   PHONEERR_DISCONNECTED                   = DWORD($90000024);
  1643.   {$EXTERNALSYM PHONEERR_DISCONNECTED}
  1644. {$IFDEF TAPI20}
  1645.   PHONEFEATURE_GETBUTTONINFO              = $00000001;     // TAPI v2.0
  1646.   {$EXTERNALSYM PHONEFEATURE_GETBUTTONINFO}
  1647.   PHONEFEATURE_GETDATA                    = $00000002;     // TAPI v2.0
  1648.   {$EXTERNALSYM PHONEFEATURE_GETDATA}
  1649.   PHONEFEATURE_GETDISPLAY                 = $00000004;     // TAPI v2.0
  1650.   {$EXTERNALSYM PHONEFEATURE_GETDISPLAY}
  1651.   PHONEFEATURE_GETGAINHANDSET             = $00000008;     // TAPI v2.0
  1652.   {$EXTERNALSYM PHONEFEATURE_GETGAINHANDSET}
  1653.   PHONEFEATURE_GETGAINSPEAKER             = $00000010;     // TAPI v2.0
  1654.   {$EXTERNALSYM PHONEFEATURE_GETGAINSPEAKER}
  1655.   PHONEFEATURE_GETGAINHEADSET             = $00000020;     // TAPI v2.0
  1656.   {$EXTERNALSYM PHONEFEATURE_GETGAINHEADSET}
  1657.   PHONEFEATURE_GETHOOKSWITCHHANDSET       = $00000040;     // TAPI v2.0
  1658.   {$EXTERNALSYM PHONEFEATURE_GETHOOKSWITCHHANDSET}
  1659.   PHONEFEATURE_GETHOOKSWITCHSPEAKER       = $00000080;     // TAPI v2.0
  1660.   {$EXTERNALSYM PHONEFEATURE_GETHOOKSWITCHSPEAKER}
  1661.   PHONEFEATURE_GETHOOKSWITCHHEADSET       = $00000100;     // TAPI v2.0
  1662.   {$EXTERNALSYM PHONEFEATURE_GETHOOKSWITCHHEADSET}
  1663.   PHONEFEATURE_GETLAMP                    = $00000200;     // TAPI v2.0
  1664.   {$EXTERNALSYM PHONEFEATURE_GETLAMP}
  1665.   PHONEFEATURE_GETRING                    = $00000400;     // TAPI v2.0
  1666.   {$EXTERNALSYM PHONEFEATURE_GETRING}
  1667.   PHONEFEATURE_GETVOLUMEHANDSET           = $00000800;     // TAPI v2.0
  1668.   {$EXTERNALSYM PHONEFEATURE_GETVOLUMEHANDSET}
  1669.   PHONEFEATURE_GETVOLUMESPEAKER           = $00001000;     // TAPI v2.0
  1670.   {$EXTERNALSYM PHONEFEATURE_GETVOLUMESPEAKER}
  1671.   PHONEFEATURE_GETVOLUMEHEADSET           = $00002000;     // TAPI v2.0
  1672.   {$EXTERNALSYM PHONEFEATURE_GETVOLUMEHEADSET}
  1673.   PHONEFEATURE_SETBUTTONINFO              = $00004000;     // TAPI v2.0
  1674.   {$EXTERNALSYM PHONEFEATURE_SETBUTTONINFO}
  1675.   PHONEFEATURE_SETDATA                    = $00008000;     // TAPI v2.0
  1676.   {$EXTERNALSYM PHONEFEATURE_SETDATA}
  1677.   PHONEFEATURE_SETDISPLAY                 = $00010000;     // TAPI v2.0
  1678.   {$EXTERNALSYM PHONEFEATURE_SETDISPLAY}
  1679.   PHONEFEATURE_SETGAINHANDSET             = $00020000;     // TAPI v2.0
  1680.   {$EXTERNALSYM PHONEFEATURE_SETGAINHANDSET}
  1681.   PHONEFEATURE_SETGAINSPEAKER             = $00040000;     // TAPI v2.0
  1682.   {$EXTERNALSYM PHONEFEATURE_SETGAINSPEAKER}
  1683.   PHONEFEATURE_SETGAINHEADSET             = $00080000;     // TAPI v2.0
  1684.   {$EXTERNALSYM PHONEFEATURE_SETGAINHEADSET}
  1685.   PHONEFEATURE_SETHOOKSWITCHHANDSET       = $00100000;     // TAPI v2.0
  1686.   {$EXTERNALSYM PHONEFEATURE_SETHOOKSWITCHHANDSET}
  1687.   PHONEFEATURE_SETHOOKSWITCHSPEAKER       = $00200000;     // TAPI v2.0
  1688.   {$EXTERNALSYM PHONEFEATURE_SETHOOKSWITCHSPEAKER}
  1689.   PHONEFEATURE_SETHOOKSWITCHHEADSET       = $00400000;     // TAPI v2.0
  1690.   {$EXTERNALSYM PHONEFEATURE_SETHOOKSWITCHHEADSET}
  1691.   PHONEFEATURE_SETLAMP                    = $00800000;     // TAPI v2.0
  1692.   {$EXTERNALSYM PHONEFEATURE_SETLAMP}
  1693.   PHONEFEATURE_SETRING                    = $01000000;     // TAPI v2.0
  1694.   {$EXTERNALSYM PHONEFEATURE_SETRING}
  1695.   PHONEFEATURE_SETVOLUMEHANDSET           = $02000000;     // TAPI v2.0
  1696.   {$EXTERNALSYM PHONEFEATURE_SETVOLUMEHANDSET}
  1697.   PHONEFEATURE_SETVOLUMESPEAKER           = $04000000;     // TAPI v2.0
  1698.   {$EXTERNALSYM PHONEFEATURE_SETVOLUMESPEAKER}
  1699.   PHONEFEATURE_SETVOLUMEHEADSET           = $08000000;     // TAPI v2.0
  1700.   {$EXTERNALSYM PHONEFEATURE_SETVOLUMEHEADSET}
  1701. {$ENDIF}
  1702.   PHONEHOOKSWITCHDEV_HANDSET              = $00000001;
  1703.   {$EXTERNALSYM PHONEHOOKSWITCHDEV_HANDSET}
  1704.   PHONEHOOKSWITCHDEV_SPEAKER              = $00000002;
  1705.   {$EXTERNALSYM PHONEHOOKSWITCHDEV_SPEAKER}
  1706.   PHONEHOOKSWITCHDEV_HEADSET              = $00000004;
  1707.   {$EXTERNALSYM PHONEHOOKSWITCHDEV_HEADSET}
  1708.   PHONEHOOKSWITCHMODE_ONHOOK              = $00000001;
  1709.   {$EXTERNALSYM PHONEHOOKSWITCHMODE_ONHOOK}
  1710.   PHONEHOOKSWITCHMODE_MIC                 = $00000002;
  1711.   {$EXTERNALSYM PHONEHOOKSWITCHMODE_MIC}
  1712.   PHONEHOOKSWITCHMODE_SPEAKER             = $00000004;
  1713.   {$EXTERNALSYM PHONEHOOKSWITCHMODE_SPEAKER}
  1714.   PHONEHOOKSWITCHMODE_MICSPEAKER          = $00000008;
  1715.   {$EXTERNALSYM PHONEHOOKSWITCHMODE_MICSPEAKER}
  1716.   PHONEHOOKSWITCHMODE_UNKNOWN             = $00000010;
  1717.   {$EXTERNALSYM PHONEHOOKSWITCHMODE_UNKNOWN}
  1718. {$IFDEF TAPI20}
  1719.   PHONEINITIALIZEEXOPTION_USEHIDDENWINDOW     = $00000001;  // TAPI v2.0
  1720.   {$EXTERNALSYM PHONEINITIALIZEEXOPTION_USEHIDDENWINDOW}
  1721.   PHONEINITIALIZEEXOPTION_USEEVENT            = $00000002;  // TAPI v2.0
  1722.   {$EXTERNALSYM PHONEINITIALIZEEXOPTION_USEEVENT}
  1723.   PHONEINITIALIZEEXOPTION_USECOMPLETIONPORT   = $00000003;  // TAPI v2.0
  1724.   {$EXTERNALSYM PHONEINITIALIZEEXOPTION_USECOMPLETIONPORT}
  1725. {$ENDIF}
  1726.   PHONELAMPMODE_DUMMY                     = $00000001;
  1727.   {$EXTERNALSYM PHONELAMPMODE_DUMMY}
  1728.   PHONELAMPMODE_OFF                       = $00000002;
  1729.   {$EXTERNALSYM PHONELAMPMODE_OFF}
  1730.   PHONELAMPMODE_STEADY                    = $00000004;
  1731.   {$EXTERNALSYM PHONELAMPMODE_STEADY}
  1732.   PHONELAMPMODE_WINK                      = $00000008;
  1733.   {$EXTERNALSYM PHONELAMPMODE_WINK}
  1734.   PHONELAMPMODE_FLASH                     = $00000010;
  1735.   {$EXTERNALSYM PHONELAMPMODE_FLASH}
  1736.   PHONELAMPMODE_FLUTTER                   = $00000020;
  1737.   {$EXTERNALSYM PHONELAMPMODE_FLUTTER}
  1738.   PHONELAMPMODE_BROKENFLUTTER             = $00000040;
  1739.   {$EXTERNALSYM PHONELAMPMODE_BROKENFLUTTER}
  1740.   PHONELAMPMODE_UNKNOWN                   = $00000080;
  1741.   {$EXTERNALSYM PHONELAMPMODE_UNKNOWN}
  1742.   PHONEPRIVILEGE_MONITOR                  = $00000001;
  1743.   {$EXTERNALSYM PHONEPRIVILEGE_MONITOR}
  1744.   PHONEPRIVILEGE_OWNER                    = $00000002;
  1745.   {$EXTERNALSYM PHONEPRIVILEGE_OWNER}
  1746.   PHONESTATE_OTHER                        = $00000001;
  1747.   {$EXTERNALSYM PHONESTATE_OTHER}
  1748.   PHONESTATE_CONNECTED                    = $00000002;
  1749.   {$EXTERNALSYM PHONESTATE_CONNECTED}
  1750.   PHONESTATE_DISCONNECTED                 = $00000004;
  1751.   {$EXTERNALSYM PHONESTATE_DISCONNECTED}
  1752.   PHONESTATE_OWNER                        = $00000008;
  1753.   {$EXTERNALSYM PHONESTATE_OWNER}
  1754.   PHONESTATE_MONITORS                     = $00000010;
  1755.   {$EXTERNALSYM PHONESTATE_MONITORS}
  1756.   PHONESTATE_DISPLAY                      = $00000020;
  1757.   {$EXTERNALSYM PHONESTATE_DISPLAY}
  1758.   PHONESTATE_LAMP                         = $00000040;
  1759.   {$EXTERNALSYM PHONESTATE_LAMP}
  1760.   PHONESTATE_RINGMODE                     = $00000080;
  1761.   {$EXTERNALSYM PHONESTATE_RINGMODE}
  1762.   PHONESTATE_RINGVOLUME                   = $00000100;
  1763.   {$EXTERNALSYM PHONESTATE_RINGVOLUME}
  1764.   PHONESTATE_HANDSETHOOKSWITCH            = $00000200;
  1765.   {$EXTERNALSYM PHONESTATE_HANDSETHOOKSWITCH}
  1766.   PHONESTATE_HANDSETVOLUME                = $00000400;
  1767.   {$EXTERNALSYM PHONESTATE_HANDSETVOLUME}
  1768.   PHONESTATE_HANDSETGAIN                  = $00000800;
  1769.   {$EXTERNALSYM PHONESTATE_HANDSETGAIN}
  1770.   PHONESTATE_SPEAKERHOOKSWITCH            = $00001000;
  1771.   {$EXTERNALSYM PHONESTATE_SPEAKERHOOKSWITCH}
  1772.   PHONESTATE_SPEAKERVOLUME                = $00002000;
  1773.   {$EXTERNALSYM PHONESTATE_SPEAKERVOLUME}
  1774.   PHONESTATE_SPEAKERGAIN                  = $00004000;
  1775.   {$EXTERNALSYM PHONESTATE_SPEAKERGAIN}
  1776.   PHONESTATE_HEADSETHOOKSWITCH            = $00008000;
  1777.   {$EXTERNALSYM PHONESTATE_HEADSETHOOKSWITCH}
  1778.   PHONESTATE_HEADSETVOLUME                = $00010000;
  1779.   {$EXTERNALSYM PHONESTATE_HEADSETVOLUME}
  1780.   PHONESTATE_HEADSETGAIN                  = $00020000;
  1781.   {$EXTERNALSYM PHONESTATE_HEADSETGAIN}
  1782.   PHONESTATE_SUSPEND                      = $00040000;
  1783.   {$EXTERNALSYM PHONESTATE_SUSPEND}
  1784.   PHONESTATE_RESUME                       = $00080000;
  1785.   {$EXTERNALSYM PHONESTATE_RESUME}
  1786.   PHONESTATE_DEVSPECIFIC                  = $00100000;
  1787.   {$EXTERNALSYM PHONESTATE_DEVSPECIFIC}
  1788.   PHONESTATE_REINIT                       = $00200000;
  1789.   {$EXTERNALSYM PHONESTATE_REINIT}
  1790.   PHONESTATE_CAPSCHANGE                   = $00400000;     // TAPI v1.4
  1791.   {$EXTERNALSYM PHONESTATE_CAPSCHANGE}
  1792.   PHONESTATE_REMOVED                      = $00800000;     // TAPI v1.4
  1793.   {$EXTERNALSYM PHONESTATE_REMOVED}
  1794.   PHONESTATUSFLAGS_CONNECTED              = $00000001;
  1795.   {$EXTERNALSYM PHONESTATUSFLAGS_CONNECTED}
  1796.   PHONESTATUSFLAGS_SUSPENDED              = $00000002;
  1797.   {$EXTERNALSYM PHONESTATUSFLAGS_SUSPENDED}
  1798.   STRINGFORMAT_ASCII                      = $00000001;
  1799.   {$EXTERNALSYM STRINGFORMAT_ASCII}
  1800.   STRINGFORMAT_DBCS                       = $00000002;
  1801.   {$EXTERNALSYM STRINGFORMAT_DBCS}
  1802.   STRINGFORMAT_UNICODE                    = $00000003;
  1803.   {$EXTERNALSYM STRINGFORMAT_UNICODE}
  1804.   STRINGFORMAT_BINARY                     = $00000004;
  1805.   {$EXTERNALSYM STRINGFORMAT_BINARY}
  1806.   TAPI_REPLY                              = WM_USER + 99;
  1807.   {$EXTERNALSYM TAPI_REPLY}
  1808.   TAPIERR_CONNECTED                       = 0;
  1809.   {$EXTERNALSYM TAPIERR_CONNECTED}
  1810.   TAPIERR_DROPPED                         = -1;
  1811.   {$EXTERNALSYM TAPIERR_DROPPED}
  1812.   TAPIERR_NOREQUESTRECIPIENT              = -2;
  1813.   {$EXTERNALSYM TAPIERR_NOREQUESTRECIPIENT}
  1814.   TAPIERR_REQUESTQUEUEFULL                = -3;
  1815.   {$EXTERNALSYM TAPIERR_REQUESTQUEUEFULL}
  1816.   TAPIERR_INVALDESTADDRESS                = -4;
  1817.   {$EXTERNALSYM TAPIERR_INVALDESTADDRESS}
  1818.   TAPIERR_INVALWINDOWHANDLE               = -5;
  1819.   {$EXTERNALSYM TAPIERR_INVALWINDOWHANDLE}
  1820.   TAPIERR_INVALDEVICECLASS                = -6;
  1821.   {$EXTERNALSYM TAPIERR_INVALDEVICECLASS}
  1822.   TAPIERR_INVALDEVICEID                   = -7;
  1823.   {$EXTERNALSYM TAPIERR_INVALDEVICEID}
  1824.   TAPIERR_DEVICECLASSUNAVAIL              = -8;
  1825.   {$EXTERNALSYM TAPIERR_DEVICECLASSUNAVAIL}
  1826.   TAPIERR_DEVICEIDUNAVAIL                 = -9;
  1827.   {$EXTERNALSYM TAPIERR_DEVICEIDUNAVAIL}
  1828.   TAPIERR_DEVICEINUSE                     = -10;
  1829.   {$EXTERNALSYM TAPIERR_DEVICEINUSE}
  1830.   TAPIERR_DESTBUSY                        = -11;
  1831.   {$EXTERNALSYM TAPIERR_DESTBUSY}
  1832.   TAPIERR_DESTNOANSWER                    = -12;
  1833.   {$EXTERNALSYM TAPIERR_DESTNOANSWER}
  1834.   TAPIERR_DESTUNAVAIL                     = -13;
  1835.   {$EXTERNALSYM TAPIERR_DESTUNAVAIL}
  1836.   TAPIERR_UNKNOWNWINHANDLE                = -14;
  1837.   {$EXTERNALSYM TAPIERR_UNKNOWNWINHANDLE}
  1838.   TAPIERR_UNKNOWNREQUESTID                = -15;
  1839.   {$EXTERNALSYM TAPIERR_UNKNOWNREQUESTID}
  1840.   TAPIERR_REQUESTFAILED                   = -16;
  1841.   {$EXTERNALSYM TAPIERR_REQUESTFAILED}
  1842.   TAPIERR_REQUESTCANCELLED                = -17;
  1843.   {$EXTERNALSYM TAPIERR_REQUESTCANCELLED}
  1844.   TAPIERR_INVALPOINTER                    = -18;
  1845.   {$EXTERNALSYM TAPIERR_INVALPOINTER}
  1846.   TAPIERR_NOTADMIN                        = -19;
  1847.   {$EXTERNALSYM TAPIERR_NOTADMIN}
  1848.   TAPIMAXDESTADDRESSSIZE                  = 80;
  1849.   {$EXTERNALSYM TAPIMAXDESTADDRESSSIZE}
  1850.   TAPIMAXAPPNAMESIZE                      = 40;
  1851.   {$EXTERNALSYM TAPIMAXAPPNAMESIZE}
  1852.   TAPIMAXCALLEDPARTYSIZE                  = 40;
  1853.   {$EXTERNALSYM TAPIMAXCALLEDPARTYSIZE}
  1854.   TAPIMAXCOMMENTSIZE                      = 80;
  1855.   {$EXTERNALSYM TAPIMAXCOMMENTSIZE}
  1856.   TAPIMAXDEVICECLASSSIZE                  = 40;
  1857.   {$EXTERNALSYM TAPIMAXDEVICECLASSSIZE}
  1858.   TAPIMAXDEVICEIDSIZE                     = 40;
  1859.   {$EXTERNALSYM TAPIMAXDEVICEIDSIZE}
  1860. type
  1861.   PLineAddressCaps = ^TLineAddressCaps;
  1862.   lineaddresscaps_tag = packed record
  1863.     dwTotalSize,
  1864.     dwNeededSize,
  1865.     dwUsedSize,
  1866.     dwLineDeviceID,
  1867.     dwAddressSize,
  1868.     dwAddressOffset,
  1869.     dwDevSpecificSize,
  1870.     dwDevSpecificOffset,
  1871.     dwAddressSharing,
  1872.     dwAddressStates,
  1873.     dwCallInfoStates,
  1874.     dwCallerIDFlags,
  1875.     dwCalledIDFlags,
  1876.     dwConnectedIDFlags,
  1877.     dwRedirectionIDFlags,
  1878.     dwRedirectingIDFlags,
  1879.     dwCallStates,
  1880.     dwDialToneModes,
  1881.     dwBusyModes,
  1882.     dwSpecialInfo,
  1883.     dwDisconnectModes,
  1884.     dwMaxNumActiveCalls,
  1885.     dwMaxNumOnHoldCalls,
  1886.     dwMaxNumOnHoldPendingCalls,
  1887.     dwMaxNumConference,
  1888.     dwMaxNumTransConf,
  1889.     dwAddrCapFlags,
  1890.     dwCallFeatures,
  1891.     dwRemoveFromConfCaps,
  1892.     dwRemoveFromConfState,
  1893.     dwTransferModes,
  1894.     dwParkModes,
  1895.     dwForwardModes,
  1896.     dwMaxForwardEntries,
  1897.     dwMaxSpecificEntries,
  1898.     dwMinFwdNumRings,
  1899.     dwMaxFwdNumRings,
  1900.     dwMaxCallCompletions,
  1901.     dwCallCompletionConds,
  1902.     dwCallCompletionModes,
  1903.     dwNumCompletionMessages,
  1904.     dwCompletionMsgTextEntrySize,
  1905.     dwCompletionMsgTextSize,
  1906.     dwCompletionMsgTextOffset,
  1907.     dwAddressFeatures: DWORD;                            // TAPI v1.4
  1908. {$IFDEF TAPI20}
  1909.     dwPredictiveAutoTransferStates,                      // TAPI v2.0
  1910.     dwNumCallTreatments,                                 // TAPI v2.0
  1911.     dwCallTreatmentListSize,                             // TAPI v2.0
  1912.     dwCallTreatmentListOffset,                           // TAPI v2.0
  1913.     dwDeviceClassesSize,                                 // TAPI v2.0
  1914.     dwDeviceClassesOffset,                               // TAPI v2.0
  1915.     dwMaxCallDataSize,                                   // TAPI v2.0
  1916.     dwCallFeatures2,                                     // TAPI v2.0
  1917.     dwMaxNoAnswerTimeout,                                // TAPI v2.0
  1918.     dwConnectedModes,                                    // TAPI v2.0
  1919.     dwOfferingModes,                                     // TAPI v2.0
  1920.     dwAvailableMediaModes: DWORD;                        // TAPI v2.0
  1921. {$ENDIF}
  1922.   end;
  1923.   {$EXTERNALSYM lineaddresscaps_tag}
  1924.   TLineAddressCaps = lineaddresscaps_tag;
  1925.   LINEADDRESSCAPS = lineaddresscaps_tag;
  1926.   {$EXTERNALSYM LINEADDRESSCAPS}
  1927.   PLineAddressStatus = ^TLineAddressStatus;
  1928.   lineaddressstatus_tag = packed record
  1929.     dwTotalSize,
  1930.     dwNeededSize,
  1931.     dwUsedSize,
  1932.     dwNumInUse,
  1933.     dwNumActiveCalls,
  1934.     dwNumOnHoldCalls,
  1935.     dwNumOnHoldPendCalls,
  1936.     dwAddressFeatures,
  1937.     dwNumRingsNoAnswer,
  1938.     dwForwardNumEntries,
  1939.     dwForwardSize,
  1940.     dwForwardOffset,
  1941.     dwTerminalModesSize,
  1942.     dwTerminalModesOffset,
  1943.     dwDevSpecificSize,
  1944.     dwDevSpecificOffset: DWORD;
  1945.   end;
  1946.   {$EXTERNALSYM lineaddressstatus_tag}
  1947.   TLineAddressStatus = lineaddressstatus_tag;
  1948.   LINEADDRESSSTATUS = lineaddressstatus_tag;
  1949.   {$EXTERNALSYM LINEADDRESSSTATUS}
  1950. {$IFDEF TAPI20}
  1951.   PLineAgentActivityEntry = ^TLineAgentActivityEntry;
  1952.   lineagentactivityentry_tag = packed record
  1953.     dwID,                                                // TAPI v2.0
  1954.     dwNameSize,                                          // TAPI v2.0
  1955.     dwNameOffset: DWORD;                                 // TAPI v2.0
  1956.   end;
  1957.   {$EXTERNALSYM lineagentactivityentry_tag}
  1958.   TLineAgentActivityEntry = lineagentactivityentry_tag;
  1959.   LINEAGENTACTIVITYENTRY = lineagentactivityentry_tag;
  1960.   {$EXTERNALSYM LINEAGENTACTIVITYENTRY}
  1961.   PLineAgentActivityList = ^TLineAgentActivityList;
  1962.   lineagentactivitylist_tag = packed record
  1963.     dwTotalSize,                                         // TAPI v2.0
  1964.     dwNeededSize,                                        // TAPI v2.0
  1965.     dwUsedSize,                                          // TAPI v2.0
  1966.     dwNumEntries,                                        // TAPI v2.0
  1967.     dwListSize,                                          // TAPI v2.0
  1968.     dwListOffset: DWORD;                                 // TAPI v2.0
  1969.   end;
  1970.   {$EXTERNALSYM lineagentactivitylist_tag}
  1971.   TLineAgentActivityList = lineagentactivitylist_tag;
  1972.   LINEAGENTACTIVITYLIST = lineagentactivitylist_tag;
  1973.   {$EXTERNALSYM LINEAGENTACTIVITYLIST}
  1974.   PLineAgentCaps = ^TLineAgentCaps;
  1975.   lineagentcaps_tag = packed record
  1976.     dwTotalSize,                                         // TAPI v2.0
  1977.     dwNeededSize,                                        // TAPI v2.0
  1978.     dwUsedSize,                                          // TAPI v2.0
  1979.     dwAgentHandlerInfoSize,                              // TAPI v2.0
  1980.     dwAgentHandlerInfoOffset,                            // TAPI v2.0
  1981.     dwCapsVersion,                                       // TAPI v2.0
  1982.     dwFeatures,                                          // TAPI v2.0
  1983.     dwStates,                                            // TAPI v2.0
  1984.     dwNextStates,                                        // TAPI v2.0
  1985.     dwMaxNumGroupEntries,                                // TAPI v2.0
  1986.     dwAgentStatusMessages,                               // TAPI v2.0
  1987.     dwNumAgentExtensionIDs,                              // TAPI v2.0
  1988.     dwAgentExtensionIDListSize,                          // TAPI v2.0
  1989.     dwAgentExtensionIDListOffset: DWORD;                 // TAPI v2.0
  1990. {$IFDEF TAPI22}
  1991.     ProxyGUID: TGUID;                                    // TAPI v2.2
  1992. {$ENDIF}
  1993.   end;
  1994.   {$EXTERNALSYM lineagentcaps_tag}
  1995.   TLineAgentCaps = lineagentcaps_tag;
  1996.   LINEAGENTCAPS = lineagentcaps_tag;
  1997.   {$EXTERNALSYM LINEAGENTCAPS}
  1998.   PLineAgentGroupEntry = ^TLineAgentGroupEntry;
  1999.   lineagentgroupentry_tag = packed record
  2000.     GroupID : record
  2001.       dwGroupID1,                                      // TAPI v2.0
  2002.       dwGroupID2,                                      // TAPI v2.0
  2003.       dwGroupID3,                                      // TAPI v2.0
  2004.       dwGroupID4: DWORD;                               // TAPI v2.0
  2005.     end;
  2006.     dwNameSize,                                        // TAPI v2.0
  2007.     dwNameOffset: DWORD;                               // TAPI v2.0
  2008.   end;
  2009.   {$EXTERNALSYM lineagentgroupentry_tag}
  2010.   TLineAgentGroupEntry = lineagentgroupentry_tag;
  2011.   LINEAGENTGROUPENTRY = lineagentgroupentry_tag;
  2012.   {$EXTERNALSYM LINEAGENTGROUPENTRY}
  2013.   PLineAgentGroupList = ^TLineAgentGroupList;
  2014.   lineagentgrouplist_tag = packed record
  2015.     dwTotalSize,                                         // TAPI v2.0
  2016.     dwNeededSize,                                        // TAPI v2.0
  2017.     dwUsedSize,                                          // TAPI v2.0
  2018.     dwNumEntries,                                        // TAPI v2.0
  2019.     dwListSize,                                          // TAPI v2.0
  2020.     dwListOffset: DWORD;                                 // TAPI v2.0
  2021.   end;
  2022.   {$EXTERNALSYM lineagentgrouplist_tag}
  2023.   TLineAgentGroupList = lineagentgrouplist_tag;
  2024.   LINEAGENTGROUPLIST = lineagentgrouplist_tag;
  2025.   {$EXTERNALSYM LINEAGENTGROUPLIST}
  2026.   PLineAgentStatus = ^TLineAgentStatus;
  2027.   lineagentstatus_tag = packed record
  2028.     dwTotalSize,                                         // TAPI v2.0
  2029.     dwNeededSize,                                        // TAPI v2.0
  2030.     dwUsedSize,                                          // TAPI v2.0
  2031.     dwNumEntries,                                        // TAPI v2.0
  2032.     dwGroupListSize,                                     // TAPI v2.0
  2033.     dwGroupListOffset,                                   // TAPI v2.0
  2034.     dwState,                                             // TAPI v2.0
  2035.     dwNextState,                                         // TAPI v2.0
  2036.     dwActivityID,                                        // TAPI v2.0
  2037.     dwActivitySize,                                      // TAPI v2.0
  2038.     dwActivityOffset,                                    // TAPI v2.0
  2039.     dwAgentFeatures,                                     // TAPI v2.0
  2040.     dwValidStates,                                       // TAPI v2.0
  2041.     dwValidNextStates: DWORD;                            // TAPI v2.0
  2042.   end;
  2043.   {$EXTERNALSYM lineagentstatus_tag}
  2044.   TLineAgentStatus = lineagentstatus_tag;
  2045.   LINEAGENTSTATUS = lineagentstatus_tag;
  2046.   {$EXTERNALSYM LINEAGENTSTATUS}
  2047.   PLineAppInfo = ^TLineAppInfo;
  2048.   lineappinfo_tag = packed record
  2049.     dwMachineNameSize,                                   // TAPI v2.0
  2050.     dwMachineNameOffset,                                 // TAPI v2.0
  2051.     dwUserNameSize,                                      // TAPI v2.0
  2052.     dwUserNameOffset,                                    // TAPI v2.0
  2053.     dwModuleFilenameSize,                                // TAPI v2.0
  2054.     dwModuleFilenameOffset,                              // TAPI v2.0
  2055.     dwFriendlyNameSize,                                  // TAPI v2.0
  2056.     dwFriendlyNameOffset,                                // TAPI v2.0
  2057.     dwMediaModes,                                        // TAPI v2.0
  2058.     dwAddressID: DWORD;                                  // TAPI v2.0
  2059.   end;
  2060.   {$EXTERNALSYM lineappinfo_tag}
  2061.   TLineAppInfo = lineappinfo_tag;
  2062.   LINEAPPINFO = lineappinfo_tag;
  2063.   {$EXTERNALSYM LINEAPPINFO}
  2064. {$ENDIF}
  2065. {$IFDEF TAPI22}
  2066.   PLineAgentEntry = ^TLineAgentEntry;
  2067.   lineagententry_tag = packed record
  2068.     hAgent: HAGENT;                                      // TAPI v2.2
  2069.     dwNameSize,                                          // TAPI v2.2
  2070.     dwNameOffset,                                        // TAPI v2.2
  2071.     dwIDSize,                                            // TAPI v2.2
  2072.     dwIDOffset,                                          // TAPI v2.2
  2073.     dwPINSize,                                           // TAPI v2.2
  2074.     dwPINOffset: DWORD;                                  // TAPI v2.2
  2075.   end;
  2076.   {$EXTERNALSYM lineagententry_tag}
  2077.   TLineAgentEntry = lineagententry_tag;
  2078.   LINEAGENTENTRY = lineagententry_tag;
  2079.   {$EXTERNALSYM LINEAGENTENTRY}
  2080.   PLineAgentList = ^TLineAgentList;
  2081.   lineagentlist_tag = packed record
  2082.     dwTotalSize,                                        // TAPI v2.2
  2083.     dwNeededSize,                                       // TAPI v2.2
  2084.     dwUsedSize,                                         // TAPI v2.2
  2085.     dwNumEntries,                                       // TAPI v2.2
  2086.     dwListSize,                                         // TAPI v2.2
  2087.     dwListOffset: DWORD;                                // TAPI v2.2
  2088.   end;
  2089.   {$EXTERNALSYM lineagentlist_tag}
  2090.   TLineAgentList = lineagentlist_tag;
  2091.   LINEAGENTLIST = lineagentlist_tag;
  2092.   {$EXTERNALSYM LINEAGENTLIST}
  2093.   PLineAgentInfo = ^TLineAgentInfo;
  2094.   lineagentinfo_tag = packed record
  2095.     dwTotalSize,                                        // TAPI v2.2
  2096.     dwNeededSize,                                       // TAPI v2.2
  2097.     dwUsedSize,                                         // TAPI v2.2
  2098.     dwAgentState,                                       // TAPI v2.2
  2099.     dwNextAgentState,                                   // TAPI v2.2
  2100.     dwMeasurementPeriod: DWORD;                         // TAPI v2.2
  2101.     cyOverallCallRate: CURRENCY;                        // TAPI v2.2
  2102.     dwNumberOfACDCalls,                                 // TAPI v2.2
  2103.     dwNumberOfIncomingCalls,                            // TAPI v2.2
  2104.     dwNumberOfOutgoingCalls,                            // TAPI v2.2
  2105.     dwTotalACDTalkTime,                                 // TAPI v2.2
  2106.     dwTotalACDCallTime,                                 // TAPI v2.2
  2107.     dwTotalACDWrapUpTime: DWORD;                        // TAPI v2.2
  2108.   end;
  2109.   {$EXTERNALSYM lineagentinfo_tag}
  2110.   TLineAgentInfo = lineagentinfo_tag;
  2111.   LINEAGENTINFO = lineagentinfo_tag;
  2112.   {$EXTERNALSYM LINEAGENTINFO}
  2113.   PLineAgentSession = ^TLineAgentSession;
  2114.   lineagentsession_tag = packed record
  2115.     hAgentSession: HAGENTSESSION;                       // TAPI v2.2
  2116.     hAgent: HAGENT;                                     // TAPI v2.2
  2117.     GroupID: TGUID;                                     // TAPI v2.2
  2118.     dwWorkingAddressID: DWORD;                          // TAPI v2.2
  2119.   end;
  2120.   {$EXTERNALSYM lineagentsession_tag}
  2121.   TLineAgentSession = lineagentsession_tag;
  2122.   LINEAGENTSESSIONENTRY = lineagentsession_tag;
  2123.   {$EXTERNALSYM LINEAGENTSESSIONENTRY}
  2124.   PLineAgentSessionList = ^TLineAgentSessionList;
  2125.   lineagentsessionlist_tag = packed record
  2126.     dwTotalSize,                                        // TAPI v2.2
  2127.     dwNeededSize,                                       // TAPI v2.2
  2128.     dwUsedSize,                                         // TAPI v2.2
  2129.     dwNumEntries,                                       // TAPI v2.2
  2130.     dwListSize,                                         // TAPI v2.2
  2131.     dwListOffset: DWORD;                                // TAPI v2.2
  2132.   end;
  2133.   {$EXTERNALSYM lineagentsessionlist_tag}
  2134.   TLineAgentSessionList = lineagentsessionlist_tag;
  2135.   LINEAGENTSESSIONLIST = lineagentsessionlist_tag;
  2136.   {$EXTERNALSYM LINEAGENTSESSIONLIST}
  2137.   PLineAgentSessionInfo = ^TLineAgentSessionInfo;
  2138.   lineagentsessioninfo_tag = packed record
  2139.     dwTotalSize,                                        // TAPI v2.2
  2140.     dwNeededSize,                                       // TAPI v2.2
  2141.     dwUsedSize,                                         // TAPI v2.2
  2142.     dwAgentSessionState,                                // TAPI v2.2
  2143.     dwNextAgentSessionState: DWORD;                     // TAPI v2.2
  2144.     dateSessionStartTime: TDateTime;                    // TAPI v2.2
  2145.     dwSessionDuration,                                  // TAPI v2.2
  2146.     dwNumberOfCalls,                                    // TAPI v2.2
  2147.     dwTotalTalkTime,                                    // TAPI v2.2
  2148.     dwAverageTalkTime,                                  // TAPI v2.2
  2149.     dwTotalCallTime,                                    // TAPI v2.2
  2150.     dwAverageCallTime,                                  // TAPI v2.2
  2151.     dwTotalWrapUpTime,                                  // TAPI v2.2
  2152.     dwAverageWrapUpTime: DWORD;                         // TAPI v2.2
  2153.     cyACDCallRate: CURRENCY;                            // TAPI v2.2
  2154.     dwLongestTimeToAnswer,                              // TAPI v2.2
  2155.     dwAverageTimeToAnswer: DWORD;                       // TAPI v2.2
  2156.   end;
  2157.   {$EXTERNALSYM lineagentsessioninfo_tag}
  2158.   TLineAgentSessionInfo = lineagentsessioninfo_tag;
  2159.   LINEAGENTSESSIONINFO = lineagentsessioninfo_tag;
  2160.   {$EXTERNALSYM LINEAGENTSESSIONINFO}
  2161.   PLineQueueEntry = ^TLineQueueEntry;
  2162.   linequeueentry_tag = packed record
  2163.     dwQueueID,                                          // TAPI v2.2
  2164.     dwNameSize,                                         // TAPI v2.2
  2165.     dwNameOffset: DWORD;                                // TAPI v2.2
  2166.   end;
  2167.   {$EXTERNALSYM linequeueentry_tag}
  2168.   TLineQueueEntry = linequeueentry_tag;
  2169.   LINEQUEUEENTRY = linequeueentry_tag;
  2170.   {$EXTERNALSYM LINEQUEUEENTRY}
  2171.   PLineQueueList = ^TLineQueueList;
  2172.   linequeuelist_tag = packed record
  2173.     dwTotalSize,                                        // TAPI v2.2
  2174.     dwNeededSize,                                       // TAPI v2.2
  2175.     dwUsedSize,                                         // TAPI v2.2
  2176.     dwNumEntries,                                       // TAPI v2.2
  2177.     dwListSize,                                         // TAPI v2.2
  2178.     dwListOffset: DWORD;                                // TAPI v2.2
  2179.   end;
  2180.   {$EXTERNALSYM linequeuelist_tag}
  2181.   TLineQueueList = linequeuelist_tag;
  2182.   LINEQUEUELIST = linequeuelist_tag;
  2183.   {$EXTERNALSYM LINEQUEUELIST}
  2184.   PLineQueueInfo = ^TLineQueueInfo;
  2185.   linequeueinfo_tag = packed record
  2186.     dwTotalSize,                                        // TAPI v2.2
  2187.     dwNeededSize,                                       // TAPI v2.2
  2188.     dwUsedSize,                                         // TAPI v2.2
  2189.     dwMeasurementPeriod,                                // TAPI v2.2
  2190.     dwTotalCallsQueued,                                 // TAPI v2.2
  2191.     dwCurrentCallsQueued,                               // TAPI v2.2
  2192.     dwTotalCallsAbandoned,                              // TAPI v2.2
  2193.     dwTotalCallsFlowedIn,                               // TAPI v2.2
  2194.     dwTotalCallsFlowedOut,                              // TAPI v2.2
  2195.     dwLongestEverWaitTime,                              // TAPI v2.2
  2196.     dwCurrentLongestWaitTime,                           // TAPI v2.2
  2197.     dwAverageWaitTime,                                  // TAPI v2.2
  2198.     dwFinalDisposition: DWORD;                          // TAPI v2.2
  2199.   end;
  2200.   {$EXTERNALSYM linequeueinfo_tag}
  2201.   TLineQueueInfo = linequeueinfo_tag;
  2202.   LINEQUEUEINFO = linequeueinfo_tag;
  2203.   {$EXTERNALSYM LINEQUEUEINFO}
  2204.   PLineProxyRequestList = ^TLineProxyRequestList;
  2205.   lineproxyrequestlist_tag = packed record
  2206.     dwTotalSize,                                        // TAPI v2.2
  2207.     dwNeededSize,                                       // TAPI v2.2
  2208.     dwUsedSize,                                         // TAPI v2.2
  2209.     dwNumEntries,                                       // TAPI v2.2
  2210.     dwListSize,                                         // TAPI v2.2
  2211.     dwListOffset: DWORD;                                // TAPI v2.2
  2212.   end;
  2213.   {$EXTERNALSYM lineproxyrequestlist_tag}
  2214.   TLineProxyRequestList = lineproxyrequestlist_tag;
  2215.   LINEPROXYREQUESTLIST = lineproxyrequestlist_tag;
  2216.   {$EXTERNALSYM LINEPROXYREQUESTLIST}
  2217. {$ENDIF}
  2218. {$IFDEF TAPI30}
  2219.   PLineCallHubTrackingInfo = ^TLineCallHubTrackingInfo;
  2220.   linecallhubtrackinginfo_tag = packed record
  2221.     dwTotalSize,                                    // TAPI v3.0
  2222.     dwNeededSize,                                   // TAPI v3.0
  2223.     dwUsedSize,                                     // TAPI v3.0
  2224.     dwAvailableTracking,                            // TAPI v3.0
  2225.     dwCurrentTracking: DWORD;                       // TAPI v3.0
  2226.   end;
  2227.   {$EXTERNALSYM linecallhubtrackinginfo_tag}
  2228.   TLineCallHubTrackingInfo = linecallhubtrackinginfo_tag;
  2229.   LINECALLHUBTRACKINGINFO = linecallhubtrackinginfo_tag;
  2230.   {$EXTERNALSYM LINECALLHUBTRACKINGINFO}
  2231. {$ENDIF}
  2232.   PLineDialParams = ^TLineDialParams;
  2233.   linedialparams_tag = packed record
  2234.     dwDialPause,
  2235.     dwDialSpeed,
  2236.     dwDigitDuration,
  2237.     dwWaitForDialtone: DWORD;
  2238.   end;
  2239.   {$EXTERNALSYM linedialparams_tag}
  2240.   TLineDialParams = linedialparams_tag;
  2241.   LINEDIALPARAMS = linedialparams_tag;
  2242.   {$EXTERNALSYM LINEDIALPARAMS}
  2243.   PLineCallInfo = ^TLineCallInfo;
  2244.   linecallinfo_tag = packed record
  2245.     dwTotalSize,
  2246.     dwNeededSize,
  2247.     dwUsedSize: DWORD;
  2248.     hLine: HLINE;
  2249.     dwLineDeviceID,
  2250.     dwAddressID,
  2251.     dwBearerMode,
  2252.     dwRate,
  2253.     dwMediaMode,
  2254.     dwAppSpecific,
  2255.     dwCallID,
  2256.     dwRelatedCallID,
  2257.     dwCallParamFlags,
  2258.     dwCallStates,
  2259.     dwMonitorDigitModes,
  2260.     dwMonitorMediaModes: DWORD;
  2261.     DialParams: TLineDialParams;
  2262.     dwOrigin,
  2263.     dwReason,
  2264.     dwCompletionID,
  2265.     dwNumOwners,
  2266.     dwNumMonitors,
  2267.     dwCountryCode,
  2268.     dwTrunk,
  2269.     dwCallerIDFlags,
  2270.     dwCallerIDSize,
  2271.     dwCallerIDOffset,
  2272.     dwCallerIDNameSize,
  2273.     dwCallerIDNameOffset,
  2274.     dwCalledIDFlags,
  2275.     dwCalledIDSize,
  2276.     dwCalledIDOffset,
  2277.     dwCalledIDNameSize,
  2278.     dwCalledIDNameOffset,
  2279.     dwConnectedIDFlags,
  2280.     dwConnectedIDSize,
  2281.     dwConnectedIDOffset,
  2282.     dwConnectedIDNameSize,
  2283.     dwConnectedIDNameOffset,
  2284.     dwRedirectionIDFlags,
  2285.     dwRedirectionIDSize,
  2286.     dwRedirectionIDOffset,
  2287.     dwRedirectionIDNameSize,
  2288.     dwRedirectionIDNameOffset,
  2289.     dwRedirectingIDFlags,
  2290.     dwRedirectingIDSize,
  2291.     dwRedirectingIDOffset,
  2292.     dwRedirectingIDNameSize,
  2293.     dwRedirectingIDNameOffset,
  2294.     dwAppNameSize,
  2295.     dwAppNameOffset,
  2296.     dwDisplayableAddressSize,
  2297.     dwDisplayableAddressOffset,
  2298.     dwCalledPartySize,
  2299.     dwCalledPartyOffset,
  2300.     dwCommentSize,
  2301.     dwCommentOffset,
  2302.     dwDisplaySize,
  2303.     dwDisplayOffset,
  2304.     dwUserUserInfoSize,
  2305.     dwUserUserInfoOffset,
  2306.     dwHighLevelCompSize,
  2307.     dwHighLevelCompOffset,
  2308.     dwLowLevelCompSize,
  2309.     dwLowLevelCompOffset,
  2310.     dwChargingInfoSize,
  2311.     dwChargingInfoOffset,
  2312.     dwTerminalModesSize,
  2313.     dwTerminalModesOffset,
  2314.     dwDevSpecificSize,
  2315.     dwDevSpecificOffset: DWORD;
  2316. {$IFDEF TAPI20}
  2317.     dwCallTreatment,                                     // TAPI v2.0
  2318.     dwCallDataSize,                                      // TAPI v2.0
  2319.     dwCallDataOffset,                                    // TAPI v2.0
  2320.     dwSendingFlowspecSize,                               // TAPI v2.0
  2321.     dwSendingFlowspecOffset,                             // TAPI v2.0
  2322.     dwReceivingFlowspecSize,                             // TAPI v2.0
  2323.     dwReceivingFlowspecOffset: DWORD;                    // TAPI v2.0
  2324. {$ENDIF}
  2325. {$IFDEF TAPI30}
  2326.     dwCallerIDAddressType: DWORD;                        // TAPI v3.0
  2327.     dwCalledIDAddressType: DWORD;                        // TAPI v3.0
  2328.     dwConnectedIDAddressType: DWORD;                     // TAPI v3.0
  2329.     dwRedirectionIDAddressType: DWORD;                   // TAPI v3.0
  2330.     dwRedirectingIDAddressType: DWORD;                   // TAPI v3.0
  2331. {$ENDIF}
  2332.   end;
  2333.   {$EXTERNALSYM linecallinfo_tag}
  2334.   TLineCallInfo = linecallinfo_tag;
  2335.   LINECALLINFO = linecallinfo_tag;
  2336.   {$EXTERNALSYM LINECALLINFO}
  2337.   PLineCallList = ^TLineCallList;
  2338.   linecalllist_tag = packed record
  2339.     dwTotalSize,
  2340.     dwNeededSize,
  2341.     dwUsedSize,
  2342.     dwCallsNumEntries,
  2343.     dwCallsSize,
  2344.     dwCallsOffset: DWORD;
  2345.   end;
  2346.   {$EXTERNALSYM linecalllist_tag}
  2347.   TLineCallList = linecalllist_tag;
  2348.   LINECALLLIST = linecalllist_tag;
  2349.   {$EXTERNALSYM LINECALLLIST}
  2350.   PLineCallParams = ^TLineCallParams;
  2351.   linecallparams_tag = packed record {// Defaults:        }
  2352.     dwTotalSize,                     {// ---------        }
  2353.     dwBearerMode,                    {// voice            }
  2354.     dwMinRate,                       {// (3.1kHz)         }
  2355.     dwMaxRate,                       {// (3.1kHz)         }
  2356.     dwMediaMode,                     {// interactiveVoice }
  2357.     dwCallParamFlags,                {// 0                }
  2358.     dwAddressMode,                   {// addressID        }
  2359.     dwAddressID: DWORD;              {// (any available)  }
  2360.     DialParams: TLineDialParams;     {// (0, 0, 0, 0)     }
  2361.     dwOrigAddressSize,               {// 0                }
  2362.     dwOrigAddressOffset,
  2363.     dwDisplayableAddressSize,
  2364.     dwDisplayableAddressOffset,
  2365.     dwCalledPartySize,               {// 0 }
  2366.     dwCalledPartyOffset,
  2367.     dwCommentSize,                   {// 0 }
  2368.     dwCommentOffset,
  2369.     dwUserUserInfoSize,              {// 0  }
  2370.     dwUserUserInfoOffset,
  2371.     dwHighLevelCompSize,             {// 0  }
  2372.     dwHighLevelCompOffset,
  2373.     dwLowLevelCompSize,              {// 0  }
  2374.     dwLowLevelCompOffset,
  2375.     dwDevSpecificSize,               {// 0  }
  2376.     dwDevSpecificOffset: DWORD;
  2377. {$IFDEF TAPI20}
  2378.     dwPredictiveAutoTransferStates,                      // TAPI v2.0
  2379.     dwTargetAddressSize,                                 // TAPI v2.0
  2380.     dwTargetAddressOffset,                               // TAPI v2.0
  2381.     dwSendingFlowspecSize,                               // TAPI v2.0
  2382.     dwSendingFlowspecOffset,                             // TAPI v2.0
  2383.     dwReceivingFlowspecSize,                             // TAPI v2.0
  2384.     dwReceivingFlowspecOffset,                           // TAPI v2.0
  2385.     dwDeviceClassSize,                                   // TAPI v2.0
  2386.     dwDeviceClassOffset,                                 // TAPI v2.0
  2387.     dwDeviceConfigSize,                                  // TAPI v2.0
  2388.     dwDeviceConfigOffset,                                // TAPI v2.0
  2389.     dwCallDataSize,                                      // TAPI v2.0
  2390.     dwCallDataOffset,                                    // TAPI v2.0
  2391.     dwNoAnswerTimeout,                                   // TAPI v2.0
  2392.     dwCallingPartyIDSize,                                // TAPI v2.0
  2393.     dwCallingPartyIDOffset: DWORD;                       // TAPI v2.0
  2394. {$ENDIF}
  2395. {$IFDEF TAPI30}
  2396.     dwAddressType: DWORD;                                // TAPI v3.0
  2397. {$ENDIF}
  2398.   end;
  2399.   {$EXTERNALSYM linecallparams_tag}
  2400.   TLineCallParams = linecallparams_tag;
  2401.   LINECALLPARAMS = linecallparams_tag;
  2402.   {$EXTERNALSYM LINECALLPARAMS}
  2403.   PLineCallStatus = ^TLineCallStatus;
  2404.   linecallstatus_tag = packed record
  2405.     dwTotalSize,
  2406.     dwNeededSize,
  2407.     dwUsedSize,
  2408.     dwCallState,
  2409.     dwCallStateMode,
  2410.     dwCallPrivilege,
  2411.     dwCallFeatures,
  2412.     dwDevSpecificSize,
  2413.     dwDevSpecificOffset: DWORD;
  2414. {$IFDEF TAPI20}
  2415.     dwCallFeatures2: DWORD;                              // TAPI v2.0
  2416. {$IFDEF WIN32}
  2417.     tStateEntryTime: TSystemTime;                        // TAPI v2.0
  2418. {$ELSE}
  2419.     tStateEntryTime: array[0..7] of WORD;                // TAPI v2.0
  2420. {$ENDIF}
  2421. {$ENDIF}
  2422.   end;
  2423.   {$EXTERNALSYM linecallstatus_tag}
  2424.   TLineCallStatus = linecallstatus_tag;
  2425.   LINECALLSTATUS = linecallstatus_tag;
  2426.   {$EXTERNALSYM LINECALLSTATUS}
  2427. {$IFDEF TAPI20}
  2428.   PLineCallTreatmentEntry = ^TLineCallTreatmentEntry;
  2429.   linecalltreatmententry_tag = packed record
  2430.     dwCallTreatmentID,                                   // TAPI v2.0
  2431.     dwCallTreatmentNameSize,                             // TAPI v2.0
  2432.     dwCallTreatmentNameOffset: DWORD;                    // TAPI v2.0
  2433.   end;
  2434.   {$EXTERNALSYM linecalltreatmententry_tag}
  2435.   TLineCallTreatmentEntry = linecalltreatmententry_tag;
  2436.   LINECALLTREATMENTENTRY = linecalltreatmententry_tag;
  2437.   {$EXTERNALSYM LINECALLTREATMENTENTRY}
  2438. {$ENDIF}
  2439.   PLineCardEntry = ^TLineCardEntry;
  2440.   linecardentry_tag = packed record
  2441.     dwPermanentCardID,
  2442.     dwCardNameSize,
  2443.     dwCardNameOffset,
  2444.     dwCardNumberDigits,                                  // TAPI v1.4
  2445.     dwSameAreaRuleSize,                                  // TAPI v1.4
  2446.     dwSameAreaRuleOffset,                                // TAPI v1.4
  2447.     dwLongDistanceRuleSize,                              // TAPI v1.4
  2448.     dwLongDistanceRuleOffset,                            // TAPI v1.4
  2449.     dwInternationalRuleSize,                             // TAPI v1.4
  2450.     dwInternationalRuleOffset,                           // TAPI v1.4
  2451.     dwOptions: DWORD;                                    // TAPI v1.4
  2452.   end;
  2453.   {$EXTERNALSYM linecardentry_tag}
  2454.   TLineCardEntry = linecardentry_tag;
  2455.   LINECARDENTRY = linecardentry_tag;
  2456.   {$EXTERNALSYM LINECARDENTRY}
  2457.   PLineCountryEntry = ^TLineCountryEntry;
  2458.   linecountryentry_tag = packed record
  2459.     dwCountryID,                                         // TAPI v1.4
  2460.     dwCountryCode,                                       // TAPI v1.4
  2461.     dwNextCountryID,                                     // TAPI v1.4
  2462.     dwCountryNameSize,                                   // TAPI v1.4
  2463.     dwCountryNameOffset,                                 // TAPI v1.4
  2464.     dwSameAreaRuleSize,                                  // TAPI v1.4
  2465.     dwSameAreaRuleOffset,                                // TAPI v1.4
  2466.     dwLongDistanceRuleSize,                              // TAPI v1.4
  2467.     dwLongDistanceRuleOffset,                            // TAPI v1.4
  2468.     dwInternationalRuleSize,                             // TAPI v1.4
  2469.     dwInternationalRuleOffset: DWORD;                    // TAPI v1.4
  2470.   end;
  2471.   {$EXTERNALSYM linecountryentry_tag}
  2472.   TLineCountryEntry = linecountryentry_tag;
  2473.   LINECOUNTRYENTRY = linecountryentry_tag;
  2474.   {$EXTERNALSYM LINECOUNTRYENTRY}
  2475.   PLineCountryList = ^TLineCountryList;
  2476.   linecountrylist_tag = packed record
  2477.     dwTotalSize,                                         // TAPI v1.4
  2478.     dwNeededSize,                                        // TAPI v1.4
  2479.     dwUsedSize,                                          // TAPI v1.4
  2480.     dwNumCountries,                                      // TAPI v1.4
  2481.     dwCountryListSize,                                   // TAPI v1.4
  2482.     dwCountryListOffset: DWORD;                          // TAPI v1.4
  2483.   end;
  2484.   {$EXTERNALSYM linecountrylist_tag}
  2485.   TLineCountryList = linecountrylist_tag;
  2486.   LINECOUNTRYLIST = linecountrylist_tag;
  2487.   {$EXTERNALSYM LINECOUNTRYLIST}
  2488.   PLineDevCaps = ^TLineDevCaps;
  2489.   linedevcaps_tag = packed record
  2490.     dwTotalSize,
  2491.     dwNeededSize,
  2492.     dwUsedSize,
  2493.     dwProviderInfoSize,
  2494.     dwProviderInfoOffset,
  2495.     dwSwitchInfoSize,
  2496.     dwSwitchInfoOffset,
  2497.     dwPermanentLineID,
  2498.     dwLineNameSize,
  2499.     dwLineNameOffset,
  2500.     dwStringFormat,
  2501.     dwAddressModes,
  2502.     dwNumAddresses,
  2503.     dwBearerModes,
  2504.     dwMaxRate,
  2505.     dwMediaModes,
  2506.     dwGenerateToneModes,
  2507.     dwGenerateToneMaxNumFreq,
  2508.     dwGenerateDigitModes,
  2509.     dwMonitorToneMaxNumFreq,
  2510.     dwMonitorToneMaxNumEntries,
  2511.     dwMonitorDigitModes,
  2512.     dwGatherDigitsMinTimeout,
  2513.     dwGatherDigitsMaxTimeout,
  2514.     dwMedCtlDigitMaxListSize,
  2515.     dwMedCtlMediaMaxListSize,
  2516.     dwMedCtlToneMaxListSize,
  2517.     dwMedCtlCallStateMaxListSize,
  2518.     dwDevCapFlags,
  2519.     dwMaxNumActiveCalls,
  2520.     dwAnswerMode,
  2521.     dwRingModes,
  2522.     dwLineStates,
  2523.     dwUUIAcceptSize,
  2524.     dwUUIAnswerSize,
  2525.     dwUUIMakeCallSize,
  2526.     dwUUIDropSize,
  2527.     dwUUISendUserUserInfoSize,
  2528.     dwUUICallInfoSize: DWORD;
  2529.     MinDialParams,
  2530.     MaxDialParams,
  2531.     DefaultDialParams: TLineDialParams;
  2532.     dwNumTerminals,
  2533.     dwTerminalCapsSize,
  2534.     dwTerminalCapsOffset,
  2535.     dwTerminalTextEntrySize,
  2536.     dwTerminalTextSize,
  2537.     dwTerminalTextOffset,
  2538.     dwDevSpecificSize,
  2539.     dwDevSpecificOffset,
  2540.     dwLineFeatures: DWORD;                               // TAPI v1.4
  2541. {$IFDEF TAPI20}
  2542.     dwSettableDevStatus,                                 // TAPI v2.0
  2543.     dwDeviceClassesSize,                                 // TAPI v2.0
  2544.     dwDeviceClassesOffset: DWORD;                        // TAPI v2.0
  2545. {$ENDIF}
  2546. {$IFDEF TAPI22}
  2547.     PermanentLineGuid: TGUID;                            // TAPI v2.2
  2548. {$ENDIF}
  2549. {$IFDEF TAPI30}
  2550.     dwAddressTypes: DWORD;                               // TAPI v3.0
  2551.     ProtocolGuid: TGUID;                                 // TAPI v3.0
  2552.     dwAvailableTracking: DWORD;                          // TAPI v3.0
  2553. {$ENDIF}
  2554.   end;
  2555.   {$EXTERNALSYM linedevcaps_tag}
  2556.   TLineDevCaps = linedevcaps_tag;
  2557.   LINEDEVCAPS = linedevcaps_tag;
  2558.   {$EXTERNALSYM LINEDEVCAPS}
  2559.   PLineDevStatus = ^TLineDevStatus;
  2560.   linedevstatus_tag = packed record
  2561.     dwTotalSize,
  2562.     dwNeededSize,
  2563.     dwUsedSize,
  2564.     dwNumOpens,
  2565.     dwOpenMediaModes,
  2566.     dwNumActiveCalls,
  2567.     dwNumOnHoldCalls,
  2568.     dwNumOnHoldPendCalls,
  2569.     dwLineFeatures,
  2570.     dwNumCallCompletions,
  2571.     dwRingMode,
  2572.     dwSignalLevel,
  2573.     dwBatteryLevel,
  2574.     dwRoamMode,
  2575.     dwDevStatusFlags,
  2576.     dwTerminalModesSize,
  2577.     dwTerminalModesOffset,
  2578.     dwDevSpecificSize,
  2579.     dwDevSpecificOffset: DWORD;
  2580. {$IFDEF TAPI20}
  2581.     dwAvailableMediaModes,                               // TAPI v2.0
  2582.     dwAppInfoSize,                                       // TAPI v2.0
  2583.     dwAppInfoOffset: DWORD;                              // TAPI v2.0
  2584. {$ENDIF}
  2585.   end;