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

TAPI编程

开发平台:

Delphi

  1.     dwFrequency3,
  2.     dwMediaControl: DWORD;
  3.   end;
  4.   {$EXTERNALSYM linemediacontroltone_tag}
  5.   TLineMediaControlTone = linemediacontroltone_tag;
  6.   LINEMEDIACONTROLTONE = linemediacontroltone_tag;
  7.   {$EXTERNALSYM LINEMEDIACONTROLTONE}
  8. {$IFDEF TAPI20}
  9.   PLineMessage = ^TLineMessage;
  10.   linemessage_tag = packed record
  11.     hDevice,                                             // TAPI v2.0
  12.     dwMessageID,                                         // TAPI v2.0
  13.     dwCallbackInstance,                                  // TAPI v2.0
  14.     dwParam1,                                            // TAPI v2.0
  15.     dwParam2,                                            // TAPI v2.0
  16.     dwParam3: DWORD;                                     // TAPI v2.0
  17.   end;
  18.   {$EXTERNALSYM linemessage_tag}
  19.   TLineMessage = linemessage_tag;
  20.   LINEMESSAGE = linemessage_tag;
  21.   {$EXTERNALSYM LINEMESSAGE}
  22. {$ENDIF}
  23.   PLineMonitorTone = ^TLineMonitorTone;
  24.   linemonitortone_tag = packed record
  25.     dwAppSpecific,
  26.     dwDuration,
  27.     dwFrequency1,
  28.     dwFrequency2,
  29.     dwFrequency3: DWORD;
  30.   end;
  31.   {$EXTERNALSYM linemonitortone_tag}
  32.   TLineMonitorTone = linemonitortone_tag;
  33.   LINEMONITORTONE = linemonitortone_tag;
  34.   {$EXTERNALSYM LINEMONITORTONE}
  35.   PLineProviderEntry = ^TLineProviderEntry;
  36.   lineproviderentry_tag = packed record
  37.     dwPermanentProviderID,                               // TAPI v1.4
  38.     dwProviderFilenameSize,                              // TAPI v1.4
  39.     dwProviderFilenameOffset: DWORD;                     // TAPI v1.4
  40.   end;
  41.   {$EXTERNALSYM lineproviderentry_tag}
  42.   TLineProviderEntry = lineproviderentry_tag;
  43.   LINEPROVIDERENTRY = lineproviderentry_tag;
  44.   {$EXTERNALSYM LINEPROVIDERENTRY}
  45.   PLineProviderList = ^TLineProviderList;
  46.   lineproviderlist_tag = packed record
  47.     dwTotalSize,                                         // TAPI v1.4
  48.     dwNeededSize,                                        // TAPI v1.4
  49.     dwUsedSize,                                          // TAPI v1.4
  50.     dwNumProviders,                                      // TAPI v1.4
  51.     dwProviderListSize,                                  // TAPI v1.4
  52.     dwProviderListOffset: DWORD;                         // TAPI v1.4
  53.   end;
  54.   {$EXTERNALSYM lineproviderlist_tag}
  55.   TLineProviderList = lineproviderlist_tag;
  56.   LINEPROVIDERLIST = lineproviderlist_tag;
  57.   {$EXTERNALSYM LINEPROVIDERLIST}
  58. {$IFDEF TAPI20}
  59.   PLineProxyRequest = ^TLineProxyRequest;
  60.   lineproxyrequest_tag = packed record
  61.     dwSize,                                              // TAPI v2.0
  62.     dwClientMachineNameSize,                             // TAPI v2.0
  63.     dwClientMachineNameOffset,                           // TAPI v2.0
  64.     dwClientUserNameSize,                                // TAPI v2.0
  65.     dwClientUserNameOffset,                              // TAPI v2.0
  66.     dwClientAppAPIVersion,                               // TAPI v2.0
  67.     dwRequestType: DWORD;                                // TAPI v2.0
  68.     case Longint of
  69.        0: (SetAgentGroup : record
  70.              dwAddressID: DWORD;                         // TAPI v2.0
  71.              GroupList: TLineAgentGroupList;             // TAPI v2.0
  72.            end;);
  73.        1: (SetAgentState : record
  74.              dwAddressID,                                // TAPI v2.0
  75.              dwAgentState,                               // TAPI v2.0
  76.              dwNextAgentState: DWORD;                    // TAPI v2.0
  77.            end;);
  78.        2: (SetAgentActivity : record
  79.              dwAddressID: DWORD;                         // TAPI v2.0
  80.              dwActivityID: DWORD;                        // TAPI v2.0
  81.            end;);
  82.        3: (GetAgentCaps : record
  83.              dwAddressID: DWORD;                         // TAPI v2.0
  84.              AgentCaps: TLineAgentCaps;                  // TAPI v2.0
  85.            end;);
  86.        4: (GetAgentStatus : record
  87.              dwAddressID: DWORD;                         // TAPI v2.0
  88.              AgentStatus: TLineAgentStatus;              // TAPI v2.0
  89.            end;);
  90.        5: (AgentSpecific : record
  91.              dwAddressID,                                // TAPI v2.0
  92.              dwAgentExtensionIDIndex,                    // TAPI v2.0
  93.              dwSize: DWORD;                              // TAPI v2.0
  94.              Params: array[0..0] of Byte;                // TAPI v2.0
  95.            end;);
  96.        6: (GetAgentActivityList : record
  97.              dwAddressID: DWORD;                         // TAPI v2.0
  98.              ActivityList: TLineAgentActivityList;       // TAPI v2.0
  99.            end;);
  100.        7: (GetAgentGroupList : record
  101.              dwAddressID: DWORD;                         // TAPI v2.0
  102.              GroupList: TLineAgentGroupList;             // TAPI v2.0
  103.            end;);
  104. {$IFDEF TAPI22}
  105.        8: (CreateAgent: record
  106.              hAgent: HAGENT;                             // TAPI v2.2
  107.              dwAgentIDSize,                              // TAPI v2.2
  108.              dwAgentIDOffset,                            // TAPI v2.2
  109.              dwAgentPINSize,                             // TAPI v2.2
  110.              dwAgentPINOffset: DWORD;
  111.            end;);
  112.        9: (SetAgentStateEx: record
  113.              hAgent: HAGENT;                             // TAPI v2.2
  114.              dwAgentState,                               // TAPI v2.2
  115.              dwNextAgentState: DWORD;                    // TAPI v2.2
  116.            end;);
  117.       10: (SetAgentMeasurementPeriod: record
  118.              hAgent: HAGENT;                             // TAPI v2.2
  119.              dwMeasurementPeriod: DWORD;                 // TAPI v2.2
  120.           end;);
  121.       11: (GetAgentInfo: record
  122.              hAgent: HAGENT;                             // TAPI v2.2
  123.              AgentInfo: TLineAgentInfo;                  // TAPI v2.2
  124.           end;);
  125.       12: (CreateAgentSession: record
  126.              hAgentSession: HAGENTSESSIOn;               // TAPI v2.2
  127.              dwAgentPINSize,
  128.              dwAgentPINOffset: DWORD;
  129.              hAgent: HAGENT;                             // TAPI v2.2
  130.              GroupID: TGUID;                             // TAPI v2.2
  131.              dwWorkingAddressID: DWORD;                  // TAPI v2.2
  132.            end;);
  133.       13: (GetAgentSessionList: record
  134.              hAgent: HAGENT;                             // TAPI v2.2
  135.              SessionList: TLineAgentSessionList;         // TAPI v2.2
  136.           end;);
  137.       14: (GetAgentSessionInfo: record
  138.              hAgentSession: HAGENTSESSION;               // TAPI v2.2
  139.              SessionInfo: TLineAgentSessionInfo;         // TAPI v2.2
  140.           end;);
  141.       15: (SetAgentSessionState: record
  142.              hAgentSession: HAGENTSESSION;               // TAPI v2.2
  143.              dwAgentSessionState,                        // TAPI v2.2
  144.              dwNextAgentSessionState: DWORD;             // TAPI v2.2
  145.           end;);
  146.       16: (GetQueueList: record
  147.              GroupID: TGUID;                             // TAPI v2.2
  148.              QueueList: TLineQueueList;                  // TAPI v2.2
  149.           end;);
  150.       17: (SetQueueMeasurementPeriod: record
  151.              dwQueueID,                                  // TAPI v2.2
  152.              dwMeasurementPeriod: DWORD;                 // TAPI v2.2
  153.           end;);
  154.       18: (GetQueueInfo: record
  155.              dwQueueID: DWORD;                           // TAPI v2.2
  156.              QueueInfo: TLineQueueInfo;                  // TAPI v2.2
  157.           end;);
  158.       19: (GetGroupList: record
  159.              GroupList: TLineAgentGroupList;             // TAPI v2.2
  160.           end;);
  161. {$ENDIF}
  162.   end;
  163.   {$EXTERNALSYM lineproxyrequest_tag}
  164.   TLineProxyRequest = lineproxyrequest_tag;
  165.   LINEPROXYREQUEST = lineproxyrequest_tag;
  166.   {$EXTERNALSYM LINEPROXYREQUEST}
  167. {$ENDIF}
  168.   PLineReqMakeCall = ^TLineReqMakeCall;
  169.   linereqmakecall_tag = packed record
  170.     szDestAddress: array[0..TAPIMAXDESTADDRESSSIZE - 1] of Char;
  171.     szAppName: array[0..TAPIMAXAPPNAMESIZE - 1] of Char;
  172.     szCalledParty: array[0..TAPIMAXCALLEDPARTYSIZE - 1] of Char;
  173.     szComment: array[0..TAPIMAXCOMMENTSIZE - 1] of Char;
  174.   end;
  175.   {$EXTERNALSYM linereqmakecall_tag}
  176.   TLineReqMakeCall = linereqmakecall_tag;
  177.   LINEREQMAKECALL = linereqmakecall_tag;
  178.   {$EXTERNALSYM LINEREQMAKECALL}
  179. {$IFDEF TAPI20}
  180.   PLineReqMakeCallW = ^TLineReqMakeCallW;
  181.   linereqmakecallW_tag = packed record
  182.     szDestAddress: array[0..TAPIMAXDESTADDRESSSIZE - 1] of WideChar;
  183.     szAppName: array[0..TAPIMAXAPPNAMESIZE - 1] of WideChar;
  184.     szCalledParty: array[0..TAPIMAXCALLEDPARTYSIZE - 1] of WideChar;
  185.     szComment: array[0..TAPIMAXCOMMENTSIZE - 1] of WideChar;
  186.   end;
  187.   {$EXTERNALSYM linereqmakecallW_tag}
  188.   TLineReqMakeCallW = linereqmakecallW_tag;
  189.   LINEREQMAKECALLW = linereqmakecallW_tag;
  190.   {$EXTERNALSYM LINEREQMAKECALL}
  191. {$ENDIF}
  192.   PLineReqMediaCall = ^TLineReqMediaCall;
  193.   linereqmediacall_tag = packed record
  194.     hWnd: HWND;
  195.     wRequestID: WPARAM;
  196.     szDeviceClass: array[0..TAPIMAXDEVICECLASSSIZE - 1] of Char;
  197.     ucDeviceID: array[0..TAPIMAXDEVICEIDSIZE - 1] of Byte;
  198.     dwSize,
  199.     dwSecure: DWORD;
  200.     szDestAddress: array[0..TAPIMAXDESTADDRESSSIZE - 1] of Char;
  201.     szAppName: array[0..TAPIMAXAPPNAMESIZE - 1] of Char;
  202.     szCalledParty: array[0..TAPIMAXCALLEDPARTYSIZE - 1] of Char;
  203.     szComment: array[0..TAPIMAXCOMMENTSIZE - 1] of Char;
  204.   end;
  205.   {$EXTERNALSYM linereqmediacall_tag}
  206.   TLineReqMediaCall = linereqmediacall_tag;
  207.   LINEREQMEDIACALL = linereqmediacall_tag;
  208.   {$EXTERNALSYM LINEREQMEDIACALL}
  209. {$IFDEF TAPI20}
  210.   PLineReqMediaCallW = ^TLineReqMediaCallW;
  211.   linereqmediacallW_tag = packed record
  212.     hWnd: HWND;
  213.     wRequestID: WPARAM;
  214.     szDeviceClass: array[0..TAPIMAXDEVICECLASSSIZE - 1] of WideChar;
  215.     ucDeviceID: array[0..TAPIMAXDEVICEIDSIZE - 1] of Byte;
  216.     dwSize,
  217.     dwSecure: DWORD;
  218.     szDestAddress: array[0..TAPIMAXDESTADDRESSSIZE - 1] of WideChar;
  219.     szAppName: array[0..TAPIMAXAPPNAMESIZE - 1] of WideChar;
  220.     szCalledParty: array[0..TAPIMAXCALLEDPARTYSIZE - 1] of WideChar;
  221.     szComment: array[0..TAPIMAXCOMMENTSIZE - 1] of WideChar;
  222.   end;
  223.   {$EXTERNALSYM linereqmediacallW_tag}
  224.   TLineReqMediaCallW = linereqmediacallW_tag;
  225.   LINEREQMEDIACALLW = linereqmediacallW_tag;
  226.   {$EXTERNALSYM LINEREQMEDIACALLW}
  227. {$ENDIF}
  228.   PLineTermCaps = ^TLineTermCaps;
  229.   linetermcaps_tag = packed record
  230.     dwTermDev,
  231.     dwTermModes,
  232.     dwTermSharing: DWORD;
  233.   end;
  234.   {$EXTERNALSYM linetermcaps_tag}
  235.   TLineTermCaps = linetermcaps_tag;
  236.   LINETERMCAPS = linetermcaps_tag;
  237.   {$EXTERNALSYM LINETERMCAPS}
  238.   PLineTranslateCaps = ^TLineTranslateCaps;
  239.   linetranslatecaps_tag = packed record
  240.     dwTotalSize,
  241.     dwNeededSize,
  242.     dwUsedSize,
  243.     dwNumLocations,
  244.     dwLocationListSize,
  245.     dwLocationListOffset,
  246.     dwCurrentLocationID,
  247.     dwNumCards,
  248.     dwCardListSize,
  249.     dwCardListOffset,
  250.     dwCurrentPreferredCardID: DWORD;
  251.   end;
  252.   {$EXTERNALSYM linetranslatecaps_tag}
  253.   TLineTranslateCaps = linetranslatecaps_tag;
  254.   LINETRANSLATECAPS = linetranslatecaps_tag;
  255.   {$EXTERNALSYM LINETRANSLATECAPS}
  256.   PLineTranslateOutput = ^TLineTranslateOutput;
  257.   linetranslateoutput_tag = packed record
  258.     dwTotalSize,
  259.     dwNeededSize,
  260.     dwUsedSize,
  261.     dwDialableStringSize,
  262.     dwDialableStringOffset,
  263.     dwDisplayableStringSize,
  264.     dwDisplayableStringOffset,
  265.     dwCurrentCountry,
  266.     dwDestCountry,
  267.     dwTranslateResults: DWORD;
  268.   end;
  269.   {$EXTERNALSYM linetranslateoutput_tag}
  270.   TLineTranslateOutput = linetranslateoutput_tag;
  271.   LINETRANSLATEOUTPUT = linetranslateoutput_tag;
  272.   {$EXTERNALSYM LINETRANSLATEOUTPUT}
  273.   PPhoneButtonInfo = ^TPhoneButtonInfo;
  274.   phonebuttoninfo_tag = packed record
  275.     dwTotalSize,
  276.     dwNeededSize,
  277.     dwUsedSize,
  278.     dwButtonMode,
  279.     dwButtonFunction,
  280.     dwButtonTextSize,
  281.     dwButtonTextOffset,
  282.     dwDevSpecificSize,
  283.     dwDevSpecificOffset,
  284.     dwButtonState: DWORD;                                // TAPI v1.4
  285.   end;
  286.   {$EXTERNALSYM phonebuttoninfo_tag}
  287.   TPhoneButtonInfo = phonebuttoninfo_tag;
  288.   PHONEBUTTONINFO = phonebuttoninfo_tag;
  289.   {$EXTERNALSYM PHONEBUTTONINFO}
  290.   PPhoneCaps = ^TPhoneCaps;
  291.   phonecaps_tag = packed record
  292.     dwTotalSize,
  293.     dwNeededSize,
  294.     dwUsedSize,
  295.     dwProviderInfoSize,
  296.     dwProviderInfoOffset,
  297.     dwPhoneInfoSize,
  298.     dwPhoneInfoOffset,
  299.     dwPermanentPhoneID,
  300.     dwPhoneNameSize,
  301.     dwPhoneNameOffset,
  302.     dwStringFormat,
  303.     dwPhoneStates,
  304.     dwHookSwitchDevs,
  305.     dwHandsetHookSwitchModes,
  306.     dwSpeakerHookSwitchModes,
  307.     dwHeadsetHookSwitchModes,
  308.     dwVolumeFlags,
  309.     dwGainFlags,
  310.     dwDisplayNumRows,
  311.     dwDisplayNumColumns,
  312.     dwNumRingModes,
  313.     dwNumButtonLamps,
  314.     dwButtonModesSize,
  315.     dwButtonModesOffset,
  316.     dwButtonFunctionsSize,
  317.     dwButtonFunctionsOffset,
  318.     dwLampModesSize,
  319.     dwLampModesOffset,
  320.     dwNumSetData,
  321.     dwSetDataSize,
  322.     dwSetDataOffset,
  323.     dwNumGetData,
  324.     dwGetDataSize,
  325.     dwGetDataOffset,
  326.     dwDevSpecificSize,
  327.     dwDevSpecificOffset: DWORD;
  328. {$IFDEF TAPI20}
  329.     dwDeviceClassesSize,                                 // TAPI v2.0
  330.     dwDeviceClassesOffset,                               // TAPI v2.0
  331.     dwPhoneFeatures,                                     // TAPI v2.0
  332.     dwSettableHandsetHookSwitchModes,                    // TAPI v2.0
  333.     dwSettableSpeakerHookSwitchModes,                    // TAPI v2.0
  334.     dwSettableHeadsetHookSwitchModes,                    // TAPI v2.0
  335.     dwMonitoredHandsetHookSwitchModes,                   // TAPI v2.0
  336.     dwMonitoredSpeakerHookSwitchModes,                   // TAPI v2.0
  337.     dwMonitoredHeadsetHookSwitchModes: DWORD;            // TAPI v2.0
  338. {$ENDIF}
  339. {$IFDEF TAPI22}
  340.     PermanentPhoneGuid: TGUID;                           // TAPI v2.2
  341. {$ENDIF}
  342.   end;
  343.   {$EXTERNALSYM phonecaps_tag}
  344.   TPhoneCaps = phonecaps_tag;
  345.   PHONECAPS = phonecaps_tag;
  346.   {$EXTERNALSYM PHONECAPS}
  347.   PPhoneExtensionId = ^TPhoneExtensionId;
  348.   phoneextensionid_tag = packed record
  349.     dwExtensionID0,
  350.     dwExtensionID1,
  351.     dwExtensionID2,
  352.     dwExtensionID3: DWORD;
  353.   end;
  354.   {$EXTERNALSYM phoneextensionid_tag}
  355.   TPhoneExtensionId = phoneextensionid_tag;
  356.   PHONEEXTENSIONID = phoneextensionid_tag;
  357.   {$EXTERNALSYM PHONEEXTENSIONID}
  358. {$IFDEF TAPI20}
  359.   PPhoneInitializeExParams = ^TPhoneInitializeExParams;
  360.   phoneinitializeexparams_tag = packed record
  361.     dwTotalSize,                                         // TAPI v2.0
  362.     dwNeededSize,                                        // TAPI v2.0
  363.     dwUsedSize,                                          // TAPI v2.0
  364.     dwOptions: DWORD;                                    // TAPI v2.0
  365.     Handles: TTAPIHandleUnion;
  366.     dwCompletionKey: DWORD;                              // TAPI v2.0
  367.   end;
  368.   {$EXTERNALSYM phoneinitializeexparams_tag}
  369.   TPhoneInitializeExParams = phoneinitializeexparams_tag;
  370.   PHONEINITIALIZEEXPARAMS = phoneinitializeexparams_tag;
  371.   {$EXTERNALSYM PHONEINITIALIZEEXPARAMS}
  372.   PPhoneMessage = ^TPhoneMessage;
  373.   phonemessage_tag = packed record
  374.     hDevice,                                             // TAPI v2.0
  375.     dwMessageID,                                         // TAPI v2.0
  376.     dwCallbackInstance,                                  // TAPI v2.0
  377.     dwParam1,                                            // TAPI v2.0
  378.     dwParam2,                                            // TAPI v2.0
  379.     dwParam3: DWORD;                                     // TAPI v2.0
  380.   end;
  381.   {$EXTERNALSYM phonemessage_tag}
  382.   TPhoneMessage = phonemessage_tag;
  383.   PHONEMESSAGE = phonemessage_tag;
  384.   {$EXTERNALSYM PHONEMESSAGE}
  385. {$ENDIF}
  386.   PPhoneStatus = ^TPhoneStatus;
  387.   phonestatus_tag = packed record
  388.     dwTotalSize,
  389.     dwNeededSize,
  390.     dwUsedSize,
  391.     dwStatusFlags,
  392.     dwNumOwners,
  393.     dwNumMonitors,
  394.     dwRingMode,
  395.     dwRingVolume,
  396.     dwHandsetHookSwitchMode,
  397.     dwHandsetVolume,
  398.     dwHandsetGain,
  399.     dwSpeakerHookSwitchMode,
  400.     dwSpeakerVolume,
  401.     dwSpeakerGain,
  402.     dwHeadsetHookSwitchMode,
  403.     dwHeadsetVolume,
  404.     dwHeadsetGain,
  405.     dwDisplaySize,
  406.     dwDisplayOffset,
  407.     dwLampModesSize,
  408.     dwLampModesOffset,
  409.     dwOwnerNameSize,
  410.     dwOwnerNameOffset,
  411.     dwDevSpecificSize,
  412.     dwDevSpecificOffset: DWORD;
  413. {$IFDEF TAPI20}
  414.     dwPhoneFeatures: DWORD;                              // TAPI v2.0
  415. {$ENDIF}
  416.   end;
  417.   {$EXTERNALSYM phonestatus_tag}
  418.   TPhoneStatus = phonestatus_tag;
  419.   PHONESTATUS = phonestatus_tag;
  420.   {$EXTERNALSYM PHONESTATUS}
  421.   PVarString = ^TVarString;
  422.   varstring_tag = packed record
  423.     dwTotalSize,
  424.     dwNeededSize,
  425.     dwUsedSize,
  426.     dwStringFormat,
  427.     dwStringSize,
  428.     dwStringOffset: DWORD;
  429.   end;
  430.   {$EXTERNALSYM varstring_tag}
  431.   TVarString = varstring_tag;
  432.   VARSTRING = varstring_tag;
  433.   {$EXTERNALSYM VARSTRING}
  434. function lineAccept(hCall: HCALL; lpsUserUserInfo: LPCSTR;
  435.   dwSize: DWORD): Longint; stdcall;
  436. {$EXTERNALSYM lineAccept}
  437. {$IFNDEF TAPI10}
  438. function lineAddProviderA(lpszProviderFilename: PAnsiChar; hwndOwner: HWND;
  439.   var dwPermanentProviderID: DWORD): Longint; stdcall; // TAPI v1.4
  440. {$EXTERNALSYM lineAddProviderA}
  441. function lineAddProviderW(lpszProviderFilename: PWideChar; hwndOwner: HWND;
  442.   var dwPermanentProviderID: DWORD): Longint; stdcall; // TAPI v1.4
  443. {$EXTERNALSYM lineAddProviderW}
  444. function lineAddProvider(lpszProviderFilename: PChar; hwndOwner: HWND;
  445.   var dwPermanentProviderID: DWORD): Longint; stdcall; // TAPI v1.4
  446. {$EXTERNALSYM lineAddProvider}
  447. {$ELSE}
  448. function lineAddProvider(lpszProviderFilename: LPCSTR; hwndOwner: HWND;
  449.   var dwPermanentProviderID: DWORD): Longint; stdcall; // TAPI v1.4
  450. {$EXTERNALSYM lineAddProvider}
  451. {$IFDEF WIN32}
  452. function lineAddProviderA(lpszProviderFilename: LPCSTR; hwndOwner: HWND;
  453.   var dwPermanentProviderID: DWORD): Longint; stdcall; // TAPI v1.4
  454. {$EXTERNALSYM lineAddProviderA}
  455. function lineAddProviderW(lpszProviderFilename: LPCWSTR; hwndOwner: HWND;
  456.   var dwPermanentProviderID: DWORD): Longint; stdcall; // TAPI v1.4
  457. {$EXTERNALSYM lineAddProviderW}
  458. {$ENDIF}
  459. {$ENDIF}
  460. function lineAddToConference(hConfCall, hConsultCall: HCALL): Longint; stdcall;
  461. {$EXTERNALSYM lineAddToConference}
  462. {$IFDEF TAPI20}
  463. function lineAgentSpecific(hLine: HLINE; dwAddressID: DWORD;
  464.   dwAgentExtensionIDIndex: DWORD; lpParams: Pointer;
  465.   dwSize: DWORD): Longint; stdcall; // TAPI v2.0
  466. {$EXTERNALSYM lineAgentSpecific}
  467. {$ENDIF}
  468. function lineAnswer(hCall: HCALL; lpsUserUserInfo: LPCSTR;
  469.   dwSize: DWORD): Longint; stdcall;
  470. {$EXTERNALSYM lineAnswer}
  471. {$IFNDEF TAPI10}
  472. function lineBlindTransferA(hCall: HCALL; lpszDestAddress: PAnsiChar;
  473.   dwCountryCode: DWORD): Longint; stdcall;
  474. {$EXTERNALSYM lineBlindTransferA}
  475. function lineBlindTransferW(hCall: HCALL; lpszDestAddress: PWideChar;
  476.   dwCountryCode: DWORD): Longint; stdcall;
  477. {$EXTERNALSYM lineBlindTransferW}
  478. function lineBlindTransfer(hCall: HCALL; lpszDestAddress: PChar;
  479.   dwCountryCode: DWORD): Longint; stdcall;
  480. {$EXTERNALSYM lineBlindTransfer}
  481. {$ELSE}
  482. function lineBlindTransfer(hCall: HCALL; lpszDestAddress: LPCSTR;
  483.   dwCountryCode: DWORD): Longint; stdcall;
  484. {$EXTERNALSYM lineBlindTransfer}
  485. {$IFDEF WIN32}
  486. function lineBlindTransferA(hCall: HCALL; lpszDestAddress: LPCSTR;
  487.   dwCountryCode: DWORD): Longint; stdcall;
  488. {$EXTERNALSYM lineBlindTransferA}
  489. function lineBlindTransferW(hCall: HCALL; lpszDestAddress: LPCWSTR;
  490.   dwCountryCode: DWORD): Longint; stdcall;
  491. {$EXTERNALSYM lineBlindTransferW}
  492. {$ENDIF}
  493. {$ENDIF}
  494. function lineClose(hLine: HLINE): Longint; stdcall;
  495. {$EXTERNALSYM lineClose}
  496. function lineCompleteCall(hCall: HCALL; var dwCompletionID: DWORD;
  497.   dwCompletionMode, dwMessageID: DWORD): Longint; stdcall;
  498. {$EXTERNALSYM lineCompleteCall}
  499. function lineCompleteTransfer(hCall, hConsultCall: HCALL; lphConfCall: PHCall;
  500.   dwTransferMode: DWORD): Longint; stdcall;
  501. {$EXTERNALSYM lineCompleteTransfer}
  502. {$IFNDEF TAPI10}
  503. function lineConfigDialogA(dwDeviceID: DWORD; hwndOwner: HWND;
  504.   lpszDeviceClass: PAnsiChar): Longint; stdcall;
  505. {$EXTERNALSYM lineConfigDialogA}
  506. function lineConfigDialogW(dwDeviceID: DWORD; hwndOwner: HWND;
  507.   lpszDeviceClass: PWideChar): Longint; stdcall;
  508. {$EXTERNALSYM lineConfigDialogW}
  509. function lineConfigDialog(dwDeviceID: DWORD; hwndOwner: HWND;
  510.   lpszDeviceClass: PChar): Longint; stdcall;
  511. {$EXTERNALSYM lineConfigDialog}
  512. {$ELSE}
  513. function lineConfigDialog(dwDeviceID: DWORD; hwndOwner: HWND;
  514.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  515. {$EXTERNALSYM lineConfigDialog}
  516. {$IFDEF WIN32}
  517. function lineConfigDialogA(dwDeviceID: DWORD; hwndOwner: HWND;
  518.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  519. {$EXTERNALSYM lineConfigDialogA}
  520. function lineConfigDialogW(dwDeviceID: DWORD; hwndOwner: HWND;
  521.   lpszDeviceClass: LPCWSTR): Longint; stdcall;
  522. {$EXTERNALSYM lineConfigDialogW}
  523. {$ENDIF}
  524. {$ENDIF}
  525. {$IFNDEF TAPI10}
  526. function lineConfigDialogEditA(dwDeviceID: DWORD; hwndOwner: HWND;
  527.   lpszDeviceClass: PAnsiChar; lpDeviceConfigIn: Pointer; dwSize: DWORD;
  528.   lpDeviceConfigOut: PVarString): Longint; stdcall;
  529. {$EXTERNALSYM lineConfigDialogEditA}
  530. function lineConfigDialogEditW(dwDeviceID: DWORD; hwndOwner: HWND;
  531.   lpszDeviceClass: PWideChar; lpDeviceConfigIn: Pointer; dwSize: DWORD;
  532.   lpDeviceConfigOut: PVarString): Longint; stdcall;
  533. {$EXTERNALSYM lineConfigDialogEditW}
  534. function lineConfigDialogEdit(dwDeviceID: DWORD; hwndOwner: HWND;
  535.   lpszDeviceClass: PChar; lpDeviceConfigIn: Pointer; dwSize: DWORD;
  536.   lpDeviceConfigOut: PVarString): Longint; stdcall;
  537. {$EXTERNALSYM lineConfigDialogEdit}
  538. {$ELSE}
  539. function lineConfigDialogEdit(dwDeviceID: DWORD; hwndOwner: HWND;
  540.   lpszDeviceClass: LPCSTR; lpDeviceConfigIn: Pointer; dwSize: DWORD;
  541.   lpDeviceConfigOut: PVarString): Longint; stdcall;
  542. {$EXTERNALSYM lineConfigDialogEdit}
  543. {$IFDEF WIN32}
  544. function lineConfigDialogEditA(dwDeviceID: DWORD; hwndOwner: HWND;
  545.   lpszDeviceClass: LPCSTR; lpDeviceConfigIn: Pointer; dwSize: DWORD;
  546.   lpDeviceConfigOut: PVarString): Longint; stdcall;
  547. {$EXTERNALSYM lineConfigDialogEditA}
  548. function lineConfigDialogEditW(dwDeviceID: DWORD; hwndOwner: HWND;
  549.   lpszDeviceClass: LPCWSTR; lpDeviceConfigIn: Pointer; dwSize: DWORD;
  550.   lpDeviceConfigOut: PVarString): Longint; stdcall;
  551. {$EXTERNALSYM lineConfigDialogEditW}
  552. {$ENDIF}
  553. {$ENDIF}
  554. function lineConfigProvider(hwndOwner: HWND;
  555.   dwPermanentProviderID: DWORD): Longint; stdcall; // TAPI v1.4
  556. {$EXTERNALSYM lineConfigProvider}
  557. {$IFDEF TAPI22}
  558. function lineCreateAgentA(hLine: HLINE; lpszAgentID, lpszAgentPIN: PAnsiChar;
  559.   var lphAgent: HAGENT): Longint; stdcall; // TAPI v2.2
  560. {$EXTERNALSYM lineCreateAgentA}
  561. {#END} // TAPI22
  562. {#BEGIN}
  563. function lineCreateAgentSessionA(hLine: HLINE; hAgent: HAGENT;
  564.   lpszAgentPIN: PAnsiChar; dwWorkingAddressID: DWORD; lpGroupID: PGUID;
  565.   var lphAgentSession: HAGENTSESSION): Longint; stdcall; // TAPI v2.2
  566. {$EXTERNALSYM lineCreateAgentSessionA}
  567. function lineCreateAgentW(hLine: HLINE; lpszAgentID, lpszAgentPIN: PWideChar;
  568.   var lphAgent: HAGENT): Longint; stdcall; // TAPI v2.2
  569. {$EXTERNALSYM lineCreateAgentW}
  570. {#END} // TAPI22
  571. {#BEGIN}
  572. function lineCreateAgentSessionW(hLine: HLINE; hAgent: HAGENT;
  573.   lpszAgentPIN: PWideChar; dwWorkingAddressID: DWORD; lpGroupID: PGUID;
  574.   var lphAgentSession: HAGENTSESSION): Longint; stdcall; // TAPI v2.2
  575. {$EXTERNALSYM lineCreateAgentSessionW}
  576. function lineCreateAgent(hLine: HLINE; lpszAgentID, lpszAgentPIN: PChar;
  577.   var lphAgent: HAGENT): Longint; stdcall; // TAPI v2.2
  578. {$EXTERNALSYM lineCreateAgent}
  579. {#END} // TAPI22
  580. {#BEGIN}
  581. function lineCreateAgentSession(hLine: HLINE; hAgent: HAGENT;
  582.   lpszAgentPIN: PChar; dwWorkingAddressID: DWORD; lpGroupID: PGUID;
  583.   var lphAgentSession: HAGENTSESSION): Longint; stdcall; // TAPI v2.2
  584. {$EXTERNALSYM lineCreateAgentSession}
  585. {$ENDIF}
  586. function lineDeallocateCall(hCall: HCALL): Longint; stdcall;
  587. {$EXTERNALSYM lineDeallocateCall}
  588. function lineDevSpecific(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  589.   lpParams: Pointer; dwSize: DWORD): Longint; stdcall;
  590. {$EXTERNALSYM lineDevSpecific}
  591. function lineDevSpecificFeature(hLine: HLINE; dwFeature: DWORD;
  592.   lpParams: Pointer; dwSize: DWORD): Longint; stdcall;
  593. {$EXTERNALSYM lineDevSpecificFeature}
  594. {$IFNDEF TAPI10}
  595. function lineDialA(hCall: HCALL; lpszDestAddress: PAnsiChar;
  596.   dwCountryCode: DWORD): Longint; stdcall;
  597. {$EXTERNALSYM lineDialA}
  598. function lineDialW(hCall: HCALL; lpszDestAddress: PWideChar;
  599.   dwCountryCode: DWORD): Longint; stdcall;
  600. {$EXTERNALSYM lineDialW}
  601. function lineDial(hCall: HCALL; lpszDestAddress: PChar;
  602.   dwCountryCode: DWORD): Longint; stdcall;
  603. {$EXTERNALSYM lineDial}
  604. {$ELSE}
  605. function lineDial(hCall: HCALL; lpszDestAddress: LPCSTR;
  606.   dwCountryCode: DWORD): Longint; stdcall;
  607. {$EXTERNALSYM lineDial}
  608. {$IFDEF WIN32}
  609. function lineDialA(hCall: HCALL; lpszDestAddress: LPCSTR;
  610.   dwCountryCode: DWORD): Longint; stdcall;
  611. {$EXTERNALSYM lineDialA}
  612. function lineDialW(hCall: HCALL; lpszDestAddress: LPCWSTR;
  613.   dwCountryCode: DWORD): Longint; stdcall;
  614. {$EXTERNALSYM lineDialW}
  615. {$ENDIF}
  616. {$ENDIF}
  617. function lineDrop(hCall: HCALL; lpsUserUserInfo: LPCSTR;
  618.   dwSize: DWORD): Longint; stdcall;
  619. {$EXTERNALSYM lineDrop}
  620. {$IFNDEF TAPI10}
  621. function lineForwardA(hLine: HLINE; bAllAddresses, dwAddressID: DWORD;
  622.   ForwardList: PLineForwardList; dwNumRingsNoAnswer: DWORD;
  623.   lphConsultCall: PHCall; lcpCallParams: PLineCallParams): Longint; stdcall;
  624. {$EXTERNALSYM lineForwardA}
  625. function lineForwardW(hLine: HLINE; bAllAddresses, dwAddressID: DWORD;
  626.   ForwardList: PLineForwardList; dwNumRingsNoAnswer: DWORD;
  627.   lphConsultCall: PHCall; lcpCallParams: PLineCallParams): Longint; stdcall;
  628. {$EXTERNALSYM lineForwardW}
  629. function lineForward(hLine: HLINE; bAllAddresses, dwAddressID: DWORD;
  630.   ForwardList: PLineForwardList; dwNumRingsNoAnswer: DWORD;
  631.   lphConsultCall: PHCall; lcpCallParams: PLineCallParams): Longint; stdcall;
  632. {$EXTERNALSYM lineForward}
  633. {$ELSE}
  634. function lineForward(hLine: HLINE; bAllAddresses, dwAddressID: DWORD;
  635.   ForwardList: PLineForwardList; dwNumRingsNoAnswer: DWORD;
  636.   lphConsultCall: PHCall; lcpCallParams: PLineCallParams): Longint; stdcall;
  637. {$EXTERNALSYM lineForward}
  638. {$IFDEF WIN32}
  639. function lineForwardA(hLine: HLINE; bAllAddresses, dwAddressID: DWORD;
  640.   ForwardList: PLineForwardList; dwNumRingsNoAnswer: DWORD;
  641.   lphConsultCall: PHCall; lcpCallParams: PLineCallParams): Longint; stdcall;
  642. {$EXTERNALSYM lineForwardA}
  643. function lineForwardW(hLine: HLINE; bAllAddresses, dwAddressID: DWORD;
  644.   ForwardList: PLineForwardList; dwNumRingsNoAnswer: DWORD;
  645.   lphConsultCall: PHCall; lcpCallParams: PLineCallParams): Longint; stdcall;
  646. {$EXTERNALSYM lineForwardW}
  647. {$ENDIF}
  648. {$ENDIF}
  649. {$IFNDEF TAPI10}
  650. function lineGatherDigitsA(hCall: HCALL; dwDigitModes: DWORD;
  651.   lpsDigits: PAnsiChar; dwNumDigits: DWORD; lpszTerminationDigits: PAnsiChar;
  652.   dwFirstDigitTimeout, dwInterDigitTimeout: DWORD): Longint; stdcall;
  653. {$EXTERNALSYM lineGatherDigitsA}
  654. function lineGatherDigitsW(hCall: HCALL; dwDigitModes: DWORD;
  655.   lpsDigits: PWideChar; dwNumDigits: DWORD; lpszTerminationDigits: PWideChar;
  656.   dwFirstDigitTimeout, dwInterDigitTimeout: DWORD): Longint; stdcall;
  657. {$EXTERNALSYM lineGatherDigitsW}
  658. function lineGatherDigits(hCall: HCALL; dwDigitModes: DWORD;
  659.   lpsDigits: PChar; dwNumDigits: DWORD; lpszTerminationDigits: PChar;
  660.   dwFirstDigitTimeout, dwInterDigitTimeout: DWORD): Longint; stdcall;
  661. {$EXTERNALSYM lineGatherDigits}
  662. {$ELSE}
  663. function lineGatherDigits(hCall: HCALL; dwDigitModes: DWORD; lpsDigits: LPCSTR;
  664.   dwNumDigits: DWORD; lpszTerminationDigits: LPCSTR; dwFirstDigitTimeout,
  665.   dwInterDigitTimeout: DWORD): Longint; stdcall;
  666. {$EXTERNALSYM lineGatherDigits}
  667. {$IFDEF WIN32}
  668. function lineGatherDigitsA(hCall: HCALL; dwDigitModes: DWORD; lpsDigits: LPCSTR;
  669.   dwNumDigits: DWORD; lpszTerminationDigits: LPCSTR; dwFirstDigitTimeout,
  670.   dwInterDigitTimeout: DWORD): Longint; stdcall;
  671. {$EXTERNALSYM lineGatherDigitsA}
  672. function lineGatherDigitsW(hCall: HCALL; dwDigitModes: DWORD; lpsDigits: LPCWSTR;
  673.   dwNumDigits: DWORD; lpszTerminationDigits: LPCWSTR; dwFirstDigitTimeout,
  674.   dwInterDigitTimeout: DWORD): Longint; stdcall;
  675. {$EXTERNALSYM lineGatherDigitsW}
  676. {$ENDIF}
  677. {$ENDIF}
  678. {$IFNDEF TAPI10}
  679. function lineGenerateDigitsA(hCall: HCALL; dwDigitMode: DWORD;
  680.   lpszDigits: PAnsiChar; dwDuration: DWORD): Longint; stdcall;
  681. {$EXTERNALSYM lineGenerateDigitsA}
  682. function lineGenerateDigitsW(hCall: HCALL; dwDigitMode: DWORD;
  683.   lpszDigits: PWideChar; dwDuration: DWORD): Longint; stdcall;
  684. {$EXTERNALSYM lineGenerateDigitsW}
  685. function lineGenerateDigits(hCall: HCALL; dwDigitMode: DWORD;
  686.   lpszDigits: PChar; dwDuration: DWORD): Longint; stdcall;
  687. {$EXTERNALSYM lineGenerateDigits}
  688. {$ELSE}
  689. function lineGenerateDigits(hCall: HCALL; dwDigitMode: DWORD;
  690.   lpszDigits: LPCSTR; dwDuration: DWORD): Longint; stdcall;
  691. {$EXTERNALSYM lineGenerateDigits}
  692. {$IFDEF WIN32}
  693. function lineGenerateDigitsA(hCall: HCALL; dwDigitMode: DWORD;
  694.   lpszDigits: LPCSTR; dwDuration: DWORD): Longint; stdcall;
  695. {$EXTERNALSYM lineGenerateDigitsA}
  696. function lineGenerateDigitsW(hCall: HCALL; dwDigitMode: DWORD;
  697.   lpszDigits: LPCWSTR; dwDuration: DWORD): Longint; stdcall;
  698. {$EXTERNALSYM lineGenerateDigitsW}
  699. {$ENDIF}
  700. {$ENDIF}
  701. function lineGenerateTone(hCall: HCALL; dwToneMode, dwDuration,
  702.   dwNumTones: DWORD; Tones: PLineGenerateTone): Longint; stdcall;
  703. {$EXTERNALSYM lineGenerateTone}
  704. {$IFNDEF TAPI10}
  705. function lineGetAddressCapsA(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  706.   dwAPIVersion, dwExtVersion: DWORD;
  707.   lpAddressCaps: PLineAddressCaps): Longint; stdcall;
  708. {$EXTERNALSYM lineGetAddressCapsA}
  709. function lineGetAddressCapsW(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  710.   dwAPIVersion, dwExtVersion: DWORD;
  711.   lpAddressCaps: PLineAddressCaps): Longint; stdcall;
  712. {$EXTERNALSYM lineGetAddressCapsW}
  713. function lineGetAddressCaps(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  714.   dwAPIVersion, dwExtVersion: DWORD;
  715.   lpAddressCaps: PLineAddressCaps): Longint; stdcall;
  716. {$EXTERNALSYM lineGetAddressCaps}
  717. {$ELSE}
  718. function lineGetAddressCaps(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  719.   dwAPIVersion, dwExtVersion: DWORD;
  720.   lpAddressCaps: PLineAddressCaps): Longint; stdcall;
  721. {$EXTERNALSYM lineGetAddressCaps}
  722. {$IFDEF WIN32}
  723. function lineGetAddressCapsA(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  724.   dwAPIVersion, dwExtVersion: DWORD;
  725.   lpAddressCaps: PLineAddressCaps): Longint; stdcall;
  726. {$EXTERNALSYM lineGetAddressCapsA}
  727. function lineGetAddressCapsW(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  728.   dwAPIVersion, dwExtVersion: DWORD;
  729.   lpAddressCaps: PLineAddressCaps): Longint; stdcall;
  730. {$EXTERNALSYM lineGetAddressCapsW}
  731. {$ENDIF}
  732. {$ENDIF}
  733. {$IFNDEF TAPI10}
  734. function lineGetAddressIDA(hLine: HLINE; var dwAddressID: DWORD;
  735.   dwAddressMode: DWORD; lpsAddress: PAnsiChar; dwSize: DWORD): Longint; stdcall;
  736. {$EXTERNALSYM lineGetAddressIDA}
  737. function lineGetAddressIDW(hLine: HLINE; var dwAddressID: DWORD;
  738.   dwAddressMode: DWORD; lpsAddress: PWideChar; dwSize: DWORD): Longint; stdcall;
  739. {$EXTERNALSYM lineGetAddressIDW}
  740. function lineGetAddressID(hLine: HLINE; var dwAddressID: DWORD;
  741.   dwAddressMode: DWORD; lpsAddress: PChar; dwSize: DWORD): Longint; stdcall;
  742. {$EXTERNALSYM lineGetAddressID}
  743. {$ELSE}
  744. function lineGetAddressID(hLine: HLINE; var dwAddressID: DWORD;
  745.   dwAddressMode: DWORD; lpsAddress: LPCSTR; dwSize: DWORD): Longint; stdcall;
  746. {$EXTERNALSYM lineGetAddressID}
  747. {$IFDEF WIN32}
  748. function lineGetAddressIDA(hLine: HLINE; var dwAddressID: DWORD;
  749.   dwAddressMode: DWORD; lpsAddress: LPCSTR; dwSize: DWORD): Longint; stdcall;
  750. {$EXTERNALSYM lineGetAddressIDA}
  751. function lineGetAddressIDW(hLine: HLINE; var dwAddressID: DWORD;
  752.   dwAddressMode: DWORD; lpsAddress: LPCWSTR; dwSize: DWORD): Longint; stdcall;
  753. {$EXTERNALSYM lineGetAddressIDW}
  754. {$ENDIF}
  755. {$ENDIF}
  756. function lineGetAddressStatusA(hLine: HLINE; dwAddressID: DWORD;
  757.   lpAddressStatus: PLineAddressStatus): Longint; stdcall;
  758. {$EXTERNALSYM lineGetAddressStatusA}
  759. function lineGetAddressStatusW(hLine: HLINE; dwAddressID: DWORD;
  760.   lpAddressStatus: PLineAddressStatus): Longint; stdcall;
  761. {$EXTERNALSYM lineGetAddressStatusW}
  762. function lineGetAddressStatus(hLine: HLINE; dwAddressID: DWORD;
  763.   lpAddressStatus: PLineAddressStatus): Longint; stdcall;
  764. {$EXTERNALSYM lineGetAddressStatus}
  765. {$IFDEF TAPI20}
  766. function lineGetAgentActivityListA(hLine: HLINE; dwAddressID: DWORD;
  767.   lpAgentActivityList: PLineAgentActivityList): Longint; stdcall; // TAPI v2.0
  768. {$EXTERNALSYM lineGetAgentActivityListA}
  769. {#END} // TAPI20
  770. {#BEGIN}
  771. function lineGetAgentCapsA(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  772.   dwAppAPIVersion: DWORD; lpAgentCaps: PLineAgentCaps): Longint; stdcall; // TAPI v2.0
  773. {$EXTERNALSYM lineGetAgentCapsA}
  774. function lineGetAgentActivityListW(hLine: HLINE; dwAddressID: DWORD;
  775.   lpAgentActivityList: PLineAgentActivityList): Longint; stdcall; // TAPI v2.0
  776. {$EXTERNALSYM lineGetAgentActivityListW}
  777. {#END} // TAPI20
  778. {#BEGIN}
  779. function lineGetAgentCapsW(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  780.   dwAppAPIVersion: DWORD; lpAgentCaps: PLineAgentCaps): Longint; stdcall; // TAPI v2.0
  781. {$EXTERNALSYM lineGetAgentCapsW}
  782. function lineGetAgentActivityList(hLine: HLINE; dwAddressID: DWORD;
  783.   lpAgentActivityList: PLineAgentActivityList): Longint; stdcall; // TAPI v2.0
  784. {$EXTERNALSYM lineGetAgentActivityList}
  785. {#END} // TAPI20
  786. {#BEGIN}
  787. function lineGetAgentCaps(hLineApp: HLINEAPP; dwDeviceID, dwAddressID,
  788.   dwAppAPIVersion: DWORD; lpAgentCaps: PLineAgentCaps): Longint; stdcall; // TAPI v2.0
  789. {$EXTERNALSYM lineGetAgentCaps}
  790. function lineGetAgentGroupListA(hLine: HLINE; dwAddressID: DWORD;
  791.   lpAgentGroupList: PLineAgentGroupList): Longint; stdcall; // TAPI v2.0
  792. {$EXTERNALSYM lineGetAgentGroupListA}
  793. function lineGetAgentGroupListW(hLine: HLINE; dwAddressID: DWORD;
  794.   lpAgentGroupList: PLineAgentGroupList): Longint; stdcall; // TAPI v2.0
  795. {$EXTERNALSYM lineGetAgentGroupListW}
  796. function lineGetAgentGroupList(hLine: HLINE; dwAddressID: DWORD;
  797.   lpAgentGroupList: PLineAgentGroupList): Longint; stdcall; // TAPI v2.0
  798. {$EXTERNALSYM lineGetAgentGroupList}
  799. {$IFDEF TAPI22}
  800. function lineGetAgentInfo(hLine: HLINE; hAgent: HAGENT;
  801.   lpAgentInfo: PLineAgentInfo): Longint; stdcall; // TAPI v2.2
  802. {$EXTERNALSYM lineGetAgentInfo}
  803. function lineGetAgentSessionInfo(hLine: HLINE; hAgentSession: HAGENTSESSION;
  804.   lpAgentSessionInfo: PLineAgentSessionInfo): Longint; stdcall; // TAPI v2.2
  805. {$EXTERNALSYM lineGetAgentSessionInfo}
  806. function lineGetAgentSessionList(hLine: HLINE; hAgent: HAGENT;
  807.   lpAgentSessionList: PLineAgentSessionList): Longint; stdcall; // TAPI v2.2
  808. {$EXTERNALSYM lineGetAgentSessionList}
  809. {$ENDIF}
  810. function lineGetAgentStatusA(hLine: HLINE; dwAddressID: DWORD;
  811.   lpAgentStatus: PLineAgentStatus): Longint; stdcall; // TAPI v2.0
  812. {$EXTERNALSYM lineGetAgentStatusA}
  813. function lineGetAgentStatusW(hLine: HLINE; dwAddressID: DWORD;
  814.   lpAgentStatus: PLineAgentStatus): Longint; stdcall; // TAPI v2.0
  815. {$EXTERNALSYM lineGetAgentStatusW}
  816. function lineGetAgentStatus(hLine: HLINE; dwAddressID: DWORD;
  817.   lpAgentStatus: PLineAgentStatus): Longint; stdcall; // TAPI v2.0
  818. {$EXTERNALSYM lineGetAgentStatus}
  819. {$ENDIF}
  820. {$IFNDEF TAPI10}
  821. function lineGetAppPriorityA(lpszAppFilename: PAnsiChar; dwMediaMode: DWORD;
  822.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  823.   lpExtensionName: PVarString; var dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  824. {$EXTERNALSYM lineGetAppPriorityA}
  825. function lineGetAppPriorityW(lpszAppFilename: PWideChar; dwMediaMode: DWORD;
  826.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  827.   lpExtensionName: PVarString; var dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  828. {$EXTERNALSYM lineGetAppPriorityW}
  829. function lineGetAppPriority(lpszAppFilename: PChar; dwMediaMode: DWORD;
  830.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  831.   lpExtensionName: PVarString; var dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  832. {$EXTERNALSYM lineGetAppPriority}
  833. {$ELSE}
  834. function lineGetAppPriority(lpszAppFilename: LPCSTR; dwMediaMode: DWORD;
  835.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  836.   lpExtensionName: PVarString; var dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  837. {$EXTERNALSYM lineGetAppPriority}
  838. {$IFDEF WIN32}
  839. function lineGetAppPriorityA(lpszAppFilename: LPCSTR; dwMediaMode: DWORD;
  840.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  841.   lpExtensionName: PVarString; var dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  842. {$EXTERNALSYM lineGetAppPriorityA}
  843. function lineGetAppPriorityW(lpszAppFilename: LPCWSTR; dwMediaMode: DWORD;
  844.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  845.   lpExtensionName: PVarString; var dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  846. {$EXTERNALSYM lineGetAppPriorityW}
  847. {$ENDIF}
  848. {$ENDIF}
  849. {$IFNDEF TAPI10}
  850. function lineGetCallInfoA(hCall: HCALL; lpCallInfo: PLineCallInfo): Longint; stdcall;
  851. {$EXTERNALSYM lineGetCallInfoA}
  852. function lineGetCallInfoW(hCall: HCALL; lpCallInfo: PLineCallInfo): Longint; stdcall;
  853. {$EXTERNALSYM lineGetCallInfoW}
  854. function lineGetCallInfo(hCall: HCALL; lpCallInfo: PLineCallInfo): Longint; stdcall;
  855. {$EXTERNALSYM lineGetCallInfo}
  856. {$ELSE}
  857. function lineGetCallInfo(hCall: HCALL; lpCallInfo: PLineCallInfo): Longint; stdcall;
  858. {$EXTERNALSYM lineGetCallInfo}
  859. {$IFDEF WIN32}
  860. function lineGetCallInfoA(hCall: HCALL; lpCallInfo: PLineCallInfo): Longint; stdcall;
  861. {$EXTERNALSYM lineGetCallInfoA}
  862. function lineGetCallInfoW(hCall: HCALL; lpCallInfo: PLineCallInfo): Longint; stdcall;
  863. {$EXTERNALSYM lineGetCallInfoW}
  864. {$ENDIF}
  865. {$ENDIF}
  866. function lineGetCallStatus(hCall: HCALL;
  867.   lpCallStatus: PLineCallStatus): Longint; stdcall;
  868. {$EXTERNALSYM lineGetCallStatus}
  869. function lineGetConfRelatedCalls(hCall: HCALL;
  870.   lpCallList: PLineCallList): Longint; stdcall;
  871. {$EXTERNALSYM lineGetConfRelatedCalls}
  872. {$IFNDEF TAPI10}
  873. function lineGetCountryA(dwCountryID, dwAPIVersion: DWORD;
  874.   lpLineCountryList: PLineCountryList): Longint; stdcall; // TAPI v1.4
  875. {$EXTERNALSYM lineGetCountryA}
  876. function lineGetCountryW(dwCountryID, dwAPIVersion: DWORD;
  877.   lpLineCountryList: PLineCountryList): Longint; stdcall; // TAPI v1.4
  878. {$EXTERNALSYM lineGetCountryW}
  879. function lineGetCountry(dwCountryID, dwAPIVersion: DWORD;
  880.   lpLineCountryList: PLineCountryList): Longint; stdcall; // TAPI v1.4
  881. {$EXTERNALSYM lineGetCountry}
  882. {$ELSE}
  883. function lineGetCountry(dwCountryID, dwAPIVersion: DWORD;
  884.   lpLineCountryList: PLineCountryList): Longint; stdcall; // TAPI v1.4
  885. {$EXTERNALSYM lineGetCountry}
  886. {$IFDEF WIN32}
  887. function lineGetCountryA(dwCountryID, dwAPIVersion: DWORD;
  888.   lpLineCountryList: PLineCountryList): Longint; stdcall; // TAPI v1.4
  889. {$EXTERNALSYM lineGetCountryA}
  890. function lineGetCountryW(dwCountryID, dwAPIVersion: DWORD;
  891.   lpLineCountryList: PLineCountryList): Longint; stdcall; // TAPI v1.4
  892. {$EXTERNALSYM lineGetCountryW}
  893. {$ENDIF}
  894. {$ENDIF}
  895. {$IFNDEF TAPI10}
  896. function lineGetDevCapsA(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion,
  897.   dwExtVersion: DWORD; lpLineDevCaps: PLineDevCaps): Longint; stdcall;
  898. {$EXTERNALSYM lineGetDevCapsA}
  899. function lineGetDevCapsW(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion,
  900.   dwExtVersion: DWORD; lpLineDevCaps: PLineDevCaps): Longint; stdcall;
  901. {$EXTERNALSYM lineGetDevCapsW}
  902. function lineGetDevCaps(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion,
  903.   dwExtVersion: DWORD; lpLineDevCaps: PLineDevCaps): Longint; stdcall;
  904. {$EXTERNALSYM lineGetDevCaps}
  905. {$ELSE}
  906. function lineGetDevCaps(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion,
  907.   dwExtVersion: DWORD; lpLineDevCaps: PLineDevCaps): Longint; stdcall;
  908. {$EXTERNALSYM lineGetDevCaps}
  909. {$IFDEF WIN32}
  910. function lineGetDevCapsA(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion,
  911.   dwExtVersion: DWORD; lpLineDevCaps: PLineDevCaps): Longint; stdcall;
  912. {$EXTERNALSYM lineGetDevCapsA}
  913. function lineGetDevCapsW(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion,
  914.   dwExtVersion: DWORD; lpLineDevCaps: PLineDevCaps): Longint; stdcall;
  915. {$EXTERNALSYM lineGetDevCapsW}
  916. {$ENDIF}
  917. {$ENDIF}
  918. {$IFNDEF TAPI10}
  919. function lineGetDevConfigA(dwDeviceID: DWORD; lpDeviceConfig: PVarString;
  920.   lpszDeviceClass: PAnsiChar): Longint; stdcall;
  921. {$EXTERNALSYM lineGetDevConfigA}
  922. function lineGetDevConfigW(dwDeviceID: DWORD; lpDeviceConfig: PVarString;
  923.   lpszDeviceClass: PWideChar): Longint; stdcall;
  924. {$EXTERNALSYM lineGetDevConfigW}
  925. function lineGetDevConfig(dwDeviceID: DWORD; lpDeviceConfig: PVarString;
  926.   lpszDeviceClass: PChar): Longint; stdcall;
  927. {$EXTERNALSYM lineGetDevConfig}
  928. {$ELSE}
  929. function lineGetDevConfig(dwDeviceID: DWORD; lpDeviceConfig: PVarString;
  930.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  931. {$EXTERNALSYM lineGetDevConfig}
  932. {$IFDEF WIN32}
  933. function lineGetDevConfigA(dwDeviceID: DWORD; lpDeviceConfig: PVarString;
  934.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  935. {$EXTERNALSYM lineGetDevConfigW}
  936. function lineGetDevConfigW(dwDeviceID: DWORD; lpDeviceConfig: PVarString;
  937.   lpszDeviceClass: LPCWSTR): Longint; stdcall;
  938. {$EXTERNALSYM lineGetDevConfigW}
  939. {$ENDIF}
  940. {$ENDIF}
  941. {$IFDEF TAPI22}
  942. function lineGetGroupListA(hLine: HLINE;
  943.   lpGroupList: PLineAgentGroupList): Longint; stdcall; // TAPI v2.2
  944. {$EXTERNALSYM lineGetGroupListA}
  945. function lineGetGroupListW(hLine: HLINE;
  946.   lpGroupList: PLineAgentGroupList): Longint; stdcall; // TAPI v2.2
  947. {$EXTERNALSYM lineGetGroupListW}
  948. function lineGetGroupList(hLine: HLINE;
  949.   lpGroupList: PLineAgentGroupList): Longint; stdcall; // TAPI v2.2
  950. {$EXTERNALSYM lineGetGroupList}
  951. {$ENDIF}
  952. {$IFNDEF TAPI10}
  953. function lineGetIconA(dwDeviceID: DWORD;
  954.   lpszDeviceClass: PAnsiChar; lphIcon: PHICON): Longint; stdcall;
  955. {$EXTERNALSYM lineGetIconA}
  956. function lineGetIconW(dwDeviceID: DWORD;
  957.   lpszDeviceClass: PWideChar; lphIcon: PHICON): Longint; stdcall;
  958. {$EXTERNALSYM lineGetIconW}
  959. function lineGetIcon(dwDeviceID: DWORD;
  960.   lpszDeviceClass: PChar; lphIcon: PHICON): Longint; stdcall;
  961. {$EXTERNALSYM lineGetIcon}
  962. {$ELSE}
  963. function lineGetIcon(dwDeviceID: DWORD; lpszDeviceClass: LPCSTR;
  964.   lphIcon: PHICON): Longint; stdcall;
  965. {$EXTERNALSYM lineGetIcon}
  966. {$IFDEF WIN32}
  967. function lineGetIconA(dwDeviceID: DWORD; lpszDeviceClass: LPCSTR;
  968.   lphIcon: PHICON): Longint; stdcall;
  969. {$EXTERNALSYM lineGetIconA}
  970. function lineGetIconW(dwDeviceID: DWORD; lpszDeviceClass: LPCWSTR;
  971.   lphIcon: PHICON): Longint; stdcall;
  972. {$EXTERNALSYM lineGetIconW}
  973. {$ENDIF}
  974. {$ENDIF}
  975. {$IFNDEF TAPI10}
  976. function lineGetIDA(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  977.   dwSelect: DWORD; lpDeviceID: PVarString;
  978.   lpszDeviceClass: PAnsiChar): Longint stdcall;
  979. {$EXTERNALSYM lineGetIDA}
  980. function lineGetIDW(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  981.   dwSelect: DWORD; lpDeviceID: PVarString;
  982.   lpszDeviceClass: PWideChar): Longint stdcall;
  983. {$EXTERNALSYM lineGetIDW}
  984. function lineGetID(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  985.   dwSelect: DWORD; lpDeviceID: PVarString;
  986.   lpszDeviceClass: PChar): Longint stdcall;
  987. {$EXTERNALSYM lineGetID}
  988. {$ELSE}
  989. function lineGetID(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  990.   dwSelect: DWORD; lpDeviceID: PVarString;
  991.   lpszDeviceClass: LPCSTR): Longint stdcall;
  992. {$EXTERNALSYM lineGetID}
  993. {$IFDEF WIN32}
  994. function lineGetIDA(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  995.   dwSelect: DWORD; lpDeviceID: PVarString;
  996.   lpszDeviceClass: LPCSTR): Longint stdcall;
  997. {$EXTERNALSYM lineGetIDA}
  998. function lineGetIDW(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  999.   dwSelect: DWORD; lpDeviceID: PVarString;
  1000.   lpszDeviceClass: LPCWSTR): Longint stdcall;
  1001. {$EXTERNALSYM lineGetIDW}
  1002. {$ENDIF}
  1003. {$ENDIF}
  1004. {$IFNDEF TAPI10}
  1005. function lineGetLineDevStatusA(hLine: HLINE;
  1006.   lpLineDevStatus: PLineDevStatus): Longint; stdcall;
  1007. {$EXTERNALSYM lineGetLineDevStatusA}
  1008. function lineGetLineDevStatusW(hLine: HLINE;
  1009.   lpLineDevStatus: PLineDevStatus): Longint; stdcall;
  1010. {$EXTERNALSYM lineGetLineDevStatusW}
  1011. function lineGetLineDevStatus(hLine: HLINE;
  1012.   lpLineDevStatus: PLineDevStatus): Longint; stdcall;
  1013. {$EXTERNALSYM lineGetLineDevStatus}
  1014. {$ELSE}
  1015. function lineGetLineDevStatus(hLine: HLINE;
  1016.   lpLineDevStatus: PLineDevStatus): Longint; stdcall;
  1017. {$EXTERNALSYM lineGetLineDevStatus}
  1018. {$IFDEF WIN32}
  1019. function lineGetLineDevStatusA(hLine: HLINE;
  1020.   lpLineDevStatus: PLineDevStatus): Longint; stdcall;
  1021. {$EXTERNALSYM lineGetLineDevStatusA}
  1022. function lineGetLineDevStatusW(hLine: HLINE;
  1023.   lpLineDevStatus: PLineDevStatus): Longint; stdcall;
  1024. {$EXTERNALSYM lineGetLineDevStatusW}
  1025. {$ENDIF}
  1026. {$ENDIF}
  1027. {$IFDEF TAPI20}
  1028. function lineGetMessage(hLineApp: HLINEAPP; var lpMessage: TLineMessage;
  1029.   dwTimeout: DWORD): Longint; stdcall; // TAPI v2.0
  1030. {$EXTERNALSYM lineGetMessage}
  1031. {$ENDIF}
  1032. function lineGetNewCalls(hLine: HLINE; dwAddressID, dwSelect: DWORD;
  1033.   lpCallList: PLineCallList): Longint; stdcall;
  1034. {$EXTERNALSYM lineGetNewCalls}
  1035. function lineGetNumRings(hLine: HLINE; dwAddressID: DWORD;
  1036.   var dwNumRings: DWORD): Longint; stdcall;
  1037. {$EXTERNALSYM lineGetNumRings}
  1038. {$IFNDEF TAPI10}
  1039. function lineGetProviderListA(dwAPIVersion: DWORD;
  1040.   lpProviderList: PLineProviderList): Longint; stdcall; // TAPI v1.4
  1041. {$EXTERNALSYM lineGetProviderListA}
  1042. function lineGetProviderListW(dwAPIVersion: DWORD;
  1043.   lpProviderList: PLineProviderList): Longint; stdcall; // TAPI v1.4
  1044. {$EXTERNALSYM lineGetProviderListW}
  1045. function lineGetProviderList(dwAPIVersion: DWORD;
  1046.   lpProviderList: PLineProviderList): Longint; stdcall; // TAPI v1.4
  1047. {$EXTERNALSYM lineGetProviderList}
  1048. {$ELSE}
  1049. function lineGetProviderList(dwAPIVersion: DWORD;
  1050.   lpProviderList: PLineProviderList): Longint; stdcall; // TAPI v1.4
  1051. {$EXTERNALSYM lineGetProviderList}
  1052. {$IFDEF WIN32}
  1053. function lineGetProviderListA(dwAPIVersion: DWORD;
  1054.   lpProviderList: PLineProviderList): Longint; stdcall; // TAPI v1.4
  1055. {$EXTERNALSYM lineGetProviderListA}
  1056. function lineGetProviderListW(dwAPIVersion: DWORD;
  1057.   lpProviderList: PLineProviderList): Longint; stdcall; // TAPI v1.4
  1058. {$EXTERNALSYM lineGetProviderListW}
  1059. {$ENDIF}
  1060. {$ENDIF}
  1061. {$IFDEF TAPI22}
  1062. function lineGetProxyStatus(hLineApp: HLINEAPP;
  1063.   dwDeviceID, dwAppAPIVersion: DWORD;
  1064.   lpLineProxyReqestList: PLineProxyRequestList): Longint; stdcall; // TAPI v2.2
  1065. {$EXTERNALSYM lineGetProxyStatus}
  1066. function lineGetQueueInfo(hLine: HLINE; dwQueueID: DWORD;
  1067.   lpLineQueueInfo: PLineQueueInfo): Longint; stdcall; // TAPI v2.2
  1068. {$EXTERNALSYM lineGetQueueInfo}
  1069. function lineGetQueueListA(hLine: HLINE; lpGroupID: PGUID;
  1070.   lpQueueList: PLineQueueList): Longint; stdcall; // TAPI v2.2
  1071. {$EXTERNALSYM lineGetQueueListA}
  1072. function lineGetQueueListW(hLine: HLINE; lpGroupID: PGUID;
  1073.   lpQueueList: PLineQueueList): Longint; stdcall; // TAPI v2.2
  1074. {$EXTERNALSYM lineGetQueueListW}
  1075. function lineGetQueueList(hLine: HLINE; lpGroupID: PGUID;
  1076.   lpQueueList: PLineQueueList): Longint; stdcall; // TAPI v2.2
  1077. {$EXTERNALSYM lineGetQueueList}
  1078. {$ENDIF}
  1079. {$IFNDEF TAPI10}
  1080. function lineGetRequestA(hLineApp: HLINEAPP; dwRequestMode: DWORD;
  1081.   lpRequestBuffer: Pointer): Longint; stdcall;
  1082. {$EXTERNALSYM lineGetRequestA}
  1083. function lineGetRequestW(hLineApp: HLINEAPP; dwRequestMode: DWORD;
  1084.   lpRequestBuffer: Pointer): Longint; stdcall;
  1085. {$EXTERNALSYM lineGetRequestW}
  1086. function lineGetRequest(hLineApp: HLINEAPP; dwRequestMode: DWORD;
  1087.   lpRequestBuffer: Pointer): Longint; stdcall;
  1088. {$EXTERNALSYM lineGetRequest}
  1089. {$ELSE}
  1090. function lineGetRequest(hLineApp: HLINEAPP; dwRequestMode: DWORD;
  1091.   lpRequestBuffer: Pointer): Longint; stdcall;
  1092. {$EXTERNALSYM lineGetRequest}
  1093. {$IFDEF WIN32}
  1094. function lineGetRequestA(hLineApp: HLINEAPP; dwRequestMode: DWORD;
  1095.   lpRequestBuffer: Pointer): Longint; stdcall;
  1096. {$EXTERNALSYM lineGetRequestA}
  1097. function lineGetRequestW(hLineApp: HLINEAPP; dwRequestMode: DWORD;
  1098.   lpRequestBuffer: Pointer): Longint; stdcall;
  1099. {$EXTERNALSYM lineGetRequestW}
  1100. {$ENDIF}
  1101. {$ENDIF}
  1102. function lineGetStatusMessages(hLine: HLINE; var dwLineStates,
  1103.   dwAddressStates: DWORD): Longint; stdcall;
  1104. {$EXTERNALSYM lineGetStatusMessages}
  1105. {$IFNDEF TAPI10}
  1106. function lineGetTranslateCapsA(hLineApp: HLINEAPP; dwAPIVersion: DWORD;
  1107.   lpTranslateCaps: PLineTranslateCaps): Longint; stdcall;
  1108. {$EXTERNALSYM lineGetTranslateCapsA}
  1109. function lineGetTranslateCapsW(hLineApp: HLINEAPP; dwAPIVersion: DWORD;
  1110.   lpTranslateCaps: PLineTranslateCaps): Longint; stdcall;
  1111. {$EXTERNALSYM lineGetTranslateCapsW}
  1112. function lineGetTranslateCaps(hLineApp: HLINEAPP; dwAPIVersion: DWORD;
  1113.   lpTranslateCaps: PLineTranslateCaps): Longint; stdcall;
  1114. {$EXTERNALSYM lineGetTranslateCaps}
  1115. {$ELSE}
  1116. function lineGetTranslateCaps(hLineApp: HLINEAPP; dwAPIVersion: DWORD;
  1117.   lpTranslateCaps: PLineTranslateCaps): Longint; stdcall;
  1118. {$EXTERNALSYM lineGetTranslateCaps}
  1119. {$IFDEF WIN32}
  1120. function lineGetTranslateCapsA(hLineApp: HLINEAPP; dwAPIVersion: DWORD;
  1121.   lpTranslateCaps: PLineTranslateCaps): Longint; stdcall;
  1122. {$EXTERNALSYM lineGetTranslateCapsA}
  1123. function lineGetTranslateCapsW(hLineApp: HLINEAPP; dwAPIVersion: DWORD;
  1124.   lpTranslateCaps: PLineTranslateCaps): Longint; stdcall;
  1125. {$EXTERNALSYM lineGetTranslateCapsW}
  1126. {$ENDIF}
  1127. {$ENDIF}
  1128. {$IFNDEF TAPI10}
  1129. function lineHandoffA(hCall: HCALL; lpszFileName: PAnsiChar;
  1130.   dwMediaMode: DWORD): Longint; stdcall;
  1131. {$EXTERNALSYM lineHandoffA}
  1132. function lineHandoffW(hCall: HCALL; lpszFileName: PWideChar;
  1133.   dwMediaMode: DWORD): Longint; stdcall;
  1134. {$EXTERNALSYM lineHandoffW}
  1135. function lineHandoff(hCall: HCALL; lpszFileName: PChar;
  1136.   dwMediaMode: DWORD): Longint; stdcall;
  1137. {$EXTERNALSYM lineHandoff}
  1138. {$ELSE}
  1139. function lineHandoff(hCall: HCALL; lpszFileName: LPCSTR;
  1140.   dwMediaMode: DWORD): Longint; stdcall;
  1141. {$EXTERNALSYM lineHandoff}
  1142. {$IFDEF WIN32}
  1143. function lineHandoffA(hCall: HCALL; lpszFileName: LPCSTR;
  1144.   dwMediaMode: DWORD): Longint; stdcall;
  1145. {$EXTERNALSYM lineHandoffA}
  1146. function lineHandoffW(hCall: HCALL; lpszFileName: LPCWSTR;
  1147.   dwMediaMode: DWORD): Longint; stdcall;
  1148. {$EXTERNALSYM lineHandoffW}
  1149. {$ENDIF}
  1150. {$ENDIF}
  1151. function lineHold(hCall: HCALL): Longint; stdcall;
  1152. {$EXTERNALSYM lineHold}
  1153. function lineInitialize(lphLineApp: PHLineApp; hInstance: HINST;
  1154.   lpfnCallback: TLineCallback; lpszAppName: LPCSTR;
  1155.   var dwNumDevs: DWORD): Longint; stdcall;
  1156. {$EXTERNALSYM lineInitialize}
  1157. {$IFDEF TAPI20}
  1158. function lineInitializeExA(lphLineApp: PHLineApp; hInstance: HINST;
  1159.   lpfnCallback: TLineCallback; lpszAppName: PAnsiChar;
  1160.   var dwNumDevs, dwAPIVersion: DWORD;
  1161.   var LineInitializeExParams: TLineInitializeExParams): Longint; stdcall;
  1162. {$EXTERNALSYM lineInitializeExA}
  1163. function lineInitializeExW(lphLineApp: PHLineApp; hInstance: HINST;
  1164.   lpfnCallback: TLineCallback; lpszAppName: PWideChar;
  1165.   var dwNumDevs, dwAPIVersion: DWORD;
  1166.   var LineInitializeExParams: TLineInitializeExParams): Longint; stdcall;
  1167. {$EXTERNALSYM lineInitializeExW}
  1168. function lineInitializeEx(lphLineApp: PHLineApp; hInstance: HINST;
  1169.   lpfnCallback: TLineCallback; lpszAppName: PChar;
  1170.   var dwNumDevs, dwAPIVersion: DWORD;
  1171.   var LineInitializeExParams: TLineInitializeExParams): Longint; stdcall;
  1172. {$EXTERNALSYM lineInitializeEx}
  1173. {$ENDIF}
  1174. {$IFNDEF TAPI10}
  1175. function lineMakeCallA(hLine: HLINE; lphCall: PHCall; lpszDestAddress: PAnsiChar;
  1176.   dwCountryCode: DWORD; CallParams: PLineCallParams): Longint; stdcall;
  1177. {$EXTERNALSYM lineMakeCallA}
  1178. function lineMakeCallW(hLine: HLINE; lphCall: PHCall; lpszDestAddress: PWideChar;
  1179.   dwCountryCode: DWORD; CallParams: PLineCallParams): Longint; stdcall;
  1180. {$EXTERNALSYM lineMakeCallW}
  1181. function lineMakeCall(hLine: HLINE; lphCall: PHCall; lpszDestAddress: PChar;
  1182.   dwCountryCode: DWORD; CallParams: PLineCallParams): Longint; stdcall;
  1183. {$EXTERNALSYM lineMakeCall}
  1184. {$ELSE}
  1185. function lineMakeCall(hLine: HLINE; lphCall: PHCall; lpszDestAddress: LPCSTR;
  1186.   dwCountryCode: DWORD; CallParams: PLineCallParams): Longint; stdcall;
  1187. {$EXTERNALSYM lineMakeCall}
  1188. {$IFDEF WIN32}
  1189. function lineMakeCallA(hLine: HLINE; lphCall: PHCall; lpszDestAddress: LPCSTR;
  1190.   dwCountryCode: DWORD; CallParams: PLineCallParams): Longint; stdcall;
  1191. {$EXTERNALSYM lineMakeCallA}
  1192. function lineMakeCallW(hLine: HLINE; lphCall: PHCall; lpszDestAddress: LPCWSTR;
  1193.   dwCountryCode: DWORD; CallParams: PLineCallParams): Longint; stdcall;
  1194. {$EXTERNALSYM lineMakeCallW}
  1195. {$ENDIF}
  1196. {$ENDIF}
  1197. function lineMonitorDigits(hCall: HCALL; dwDigitModes: DWORD): Longint; stdcall;
  1198. {$EXTERNALSYM lineMonitorDigits}
  1199. function lineMonitorMedia(hCall: HCALL; dwMediaModes: DWORD): Longint; stdcall;
  1200. {$EXTERNALSYM lineMonitorMedia}
  1201. function lineMonitorTones(hCall: HCALL; lmtToneList: PLineMonitorTone;
  1202.   dwNumEntries: DWORD): Longint;  stdcall;
  1203. {$EXTERNALSYM lineMonitorTones}
  1204. function lineNegotiateAPIVersion(hLineApp: HLINEAPP; dwDeviceID, dwAPILowVersion,
  1205.   dwAPIHighVersion: DWORD; var dwAPIVersion: DWORD;
  1206.   var lpExtensionID: TLineExtensionID): Longint; stdcall;
  1207. {$EXTERNALSYM lineNegotiateAPIVersion}
  1208. function lineNegotiateExtVersion(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion,
  1209.   dwExtLowVersion, dwExtHighVersion: DWORD;
  1210.   var dwExtVersion: DWORD): Longint; stdcall;
  1211. {$EXTERNALSYM lineNegotiateExtVersion}
  1212. {$IFNDEF TAPI10}
  1213. function lineOpenA(hLineApp: HLINEAPP; dwDeviceID: DWORD; lphLine: PHLine;
  1214.   dwAPIVersion, dwExtVersion, dwCallbackInstance, dwPrivileges,
  1215.   dwMediaModes: DWORD; lpCallParams: PLineCallParams): Longint; stdcall;
  1216. {$EXTERNALSYM lineOpenA}
  1217. function lineOpenW(hLineApp: HLINEAPP; dwDeviceID: DWORD; lphLine: PHLine;
  1218.   dwAPIVersion, dwExtVersion, dwCallbackInstance, dwPrivileges,
  1219.   dwMediaModes: DWORD; lpCallParams: PLineCallParams): Longint; stdcall;
  1220. {$EXTERNALSYM lineOpenW}
  1221. function lineOpen(hLineApp: HLINEAPP; dwDeviceID: DWORD; lphLine: PHLine;
  1222.   dwAPIVersion, dwExtVersion, dwCallbackInstance, dwPrivileges,
  1223.   dwMediaModes: DWORD; lpCallParams: PLineCallParams): Longint; stdcall;
  1224. {$EXTERNALSYM lineOpen}
  1225. {$ELSE}
  1226. function lineOpen(hLineApp: HLINEAPP; dwDeviceID: DWORD; lphLine: PHLine;
  1227.   dwAPIVersion, dwExtVersion, dwCallbackInstance, dwPrivileges,
  1228.   dwMediaModes: DWORD; lpCallParams: PLineCallParams): Longint; stdcall;
  1229. {$EXTERNALSYM lineOpen}
  1230. {$IFDEF WIN32}
  1231. function lineOpenA(hLineApp: HLINEAPP; dwDeviceID: DWORD; lphLine: PHLine;
  1232.   dwAPIVersion, dwExtVersion, dwCallbackInstance, dwPrivileges,
  1233.   dwMediaModes: DWORD; lpCallParams: PLineCallParams): Longint; stdcall;
  1234. {$EXTERNALSYM lineOpenA}
  1235. function lineOpenW(hLineApp: HLINEAPP; dwDeviceID: DWORD; lphLine: PHLine;
  1236.   dwAPIVersion, dwExtVersion, dwCallbackInstance, dwPrivileges,
  1237.   dwMediaModes: DWORD; lpCallParams: PLineCallParams): Longint; stdcall;
  1238. {$EXTERNALSYM lineOpenW}
  1239. {$ENDIF}
  1240. {$ENDIF}
  1241. {$IFNDEF TAPI10}
  1242. function lineParkA(hCall: HCALL; dwParkMode: DWORD; lpszDirAddress: PAnsiChar;
  1243.   lpNonDirAddress: PVarString): Longint; stdcall;
  1244. {$EXTERNALSYM lineParkA}
  1245. function lineParkW(hCall: HCALL; dwParkMode: DWORD; lpszDirAddress: PWideChar;
  1246.   lpNonDirAddress: PVarString): Longint; stdcall;
  1247. {$EXTERNALSYM lineParkW}
  1248. function linePark(hCall: HCALL; dwParkMode: DWORD; lpszDirAddress: PChar;
  1249.   lpNonDirAddress: PVarString): Longint; stdcall;
  1250. {$EXTERNALSYM linePark}
  1251. {$ELSE}
  1252. function linePark(hCall: HCALL; dwParkMode: DWORD; lpszDirAddress: LPCSTR;
  1253.   lpNonDirAddress: PVarString): Longint; stdcall;
  1254. {$EXTERNALSYM linePark}
  1255. {$IFDEF WIN32}
  1256. function lineParkA(hCall: HCALL; dwParkMode: DWORD; lpszDirAddress: LPCSTR;
  1257.   lpNonDirAddress: PVarString): Longint; stdcall;
  1258. {$EXTERNALSYM lineParkA}
  1259. function lineParkW(hCall: HCALL; dwParkMode: DWORD; lpszDirAddress: LPCWSTR;
  1260.   lpNonDirAddress: PVarString): Longint; stdcall;
  1261. {$EXTERNALSYM lineParkW}
  1262. {$ENDIF}
  1263. {$ENDIF}
  1264. {$IFNDEF TAPI10}
  1265. function linePickupA(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCall;
  1266.   lpszDestAddress: PAnsiChar; lpszGroupID: PAnsiChar): Longint; stdcall;
  1267. {$EXTERNALSYM linePickupA}
  1268. function linePickupW(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCall;
  1269.   lpszDestAddress: PWideChar; lpszGroupID: PWideChar): Longint; stdcall;
  1270. {$EXTERNALSYM linePickupW}
  1271. function linePickup(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCall;
  1272.   lpszDestAddress: PChar; lpszGroupID: PChar): Longint; stdcall;
  1273. {$EXTERNALSYM linePickup}
  1274. {$ELSE}
  1275. function linePickup(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCall;
  1276.   lpszDestAddress: LPCSTR; lpszGroupID: LPCSTR): Longint; stdcall;
  1277. {$EXTERNALSYM linePickup}
  1278. {$IFDEF WIN32}
  1279. function linePickupA(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCall;
  1280.   lpszDestAddress: LPCSTR; lpszGroupID: LPCSTR): Longint; stdcall;
  1281. {$EXTERNALSYM linePickupA}
  1282. function linePickupW(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCall;
  1283.   lpszDestAddress: LPCWSTR; lpszGroupID: LPCWSTR): Longint; stdcall;
  1284. {$EXTERNALSYM linePickupW}
  1285. {$ENDIF}
  1286. {$ENDIF}
  1287. {$IFNDEF TAPI10}
  1288. function linePrepareAddToConferenceA(hConfCall: HCALL; lphConsultCall: PHCall;
  1289.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1290. {$EXTERNALSYM linePrepareAddToConferenceA}
  1291. function linePrepareAddToConferenceW(hConfCall: HCALL; lphConsultCall: PHCall;
  1292.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1293. {$EXTERNALSYM linePrepareAddToConferenceW}
  1294. function linePrepareAddToConference(hConfCall: HCALL; lphConsultCall: PHCall;
  1295.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1296. {$EXTERNALSYM linePrepareAddToConference}
  1297. {$ELSE}
  1298. function linePrepareAddToConference(hConfCall: HCALL; lphConsultCall: PHCall;
  1299.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1300. {$EXTERNALSYM linePrepareAddToConference}
  1301. {$IFDEF WIN32}
  1302. function linePrepareAddToConferenceA(hConfCall: HCALL; lphConsultCall: PHCall;
  1303.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1304. {$EXTERNALSYM linePrepareAddToConferenceA}
  1305. function linePrepareAddToConferenceW(hConfCall: HCALL; lphConsultCall: PHCall;
  1306.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1307. {$EXTERNALSYM linePrepareAddToConferenceW}
  1308. {$ENDIF}
  1309. {$ENDIF}
  1310. {$IFDEF TAPI20}
  1311. function lineProxyMessage(hLine: HLINE; hCall: HCALL; dwMsg, dwParam1, dwParam2,
  1312.   dwParam3: DWORD): Longint; stdcall; // TAPI v2.0
  1313. {$EXTERNALSYM lineProxyMessage}
  1314. function lineProxyResponse(hLine: HLINE; lpProxyRequest: PLineProxyRequest;
  1315.   dwResult: DWORD): Longint; stdcall; // TAPI v2.0
  1316. {$EXTERNALSYM lineProxyResponse}
  1317. {$ENDIF}
  1318. {$IFNDEF TAPI10}
  1319. function lineRedirectA(hCall: HCALL; lpszDestAddress: PAnsiChar;
  1320.   dwCountryCode: DWORD): Longint; stdcall;
  1321. {$EXTERNALSYM lineRedirectA}
  1322. function lineRedirectW(hCall: HCALL; lpszDestAddress: PWideChar;
  1323.   dwCountryCode: DWORD): Longint; stdcall;
  1324. {$EXTERNALSYM lineRedirectW}
  1325. function lineRedirect(hCall: HCALL; lpszDestAddress: PChar;
  1326.   dwCountryCode: DWORD): Longint; stdcall;
  1327. {$EXTERNALSYM lineRedirect}
  1328. {$ELSE}
  1329. function lineRedirect(hCall: HCALL; lpszDestAddress: LPCSTR;
  1330.   dwCountryCode: DWORD): Longint; stdcall;
  1331. {$EXTERNALSYM lineRedirect}
  1332. {$IFDEF WIN32}
  1333. function lineRedirectA(hCall: HCALL; lpszDestAddress: LPCSTR;
  1334.   dwCountryCode: DWORD): Longint; stdcall;
  1335. {$EXTERNALSYM lineRedirectA}
  1336. function lineRedirectW(hCall: HCALL; lpszDestAddress: LPCWSTR;
  1337.   dwCountryCode: DWORD): Longint; stdcall;
  1338. {$EXTERNALSYM lineRedirectW}
  1339. {$ENDIF}
  1340. {$ENDIF}
  1341. function lineRegisterRequestRecipient(hLineApp: HLINEAPP; dwRegistrationInstance,
  1342.   dwRequestMode, bEnable: DWORD): Longint; stdcall;
  1343. {$EXTERNALSYM lineRegisterRequestRecipient}
  1344. function lineReleaseUserUserInfo(hCall: HCALL): Longint; stdcall; // TAPI v1.4
  1345. {$EXTERNALSYM lineReleaseUserUserInfo}
  1346. function lineRemoveFromConference(hCall: HCALL): Longint; stdcall;
  1347. {$EXTERNALSYM lineRemoveFromConference}
  1348. function lineRemoveProvider(dwPermanentProviderID: DWORD;
  1349.   hwndOwner: HWND): Longint; stdcall; // TAPI v1.4
  1350. {$EXTERNALSYM lineRemoveProvider}
  1351. function lineSecureCall(hCall: HCALL): Longint; stdcall;
  1352. {$EXTERNALSYM lineSecureCall}
  1353. function lineSendUserUserInfo(hCall: HCALL; lpsUserUserInfo: LPCSTR;
  1354.   dwSize: DWORD): Longint; stdcall;
  1355. {$EXTERNALSYM lineSendUserUserInfo}
  1356. {$IFDEF TAPI20}
  1357. function lineSetAgentActivity(hLine: HLINE; dwAddressID,
  1358.   dwActivityID: DWORD): Longint; stdcall; // TAPI v2.0
  1359. {$EXTERNALSYM lineSetAgentActivity}
  1360. function lineSetAgentGroup(hLine: HLINE; dwAddressID: DWORD;
  1361.   lpAgentGroupList: PLineAgentGroupList): Longint; stdcall; // TAPI v2.0
  1362. {$EXTERNALSYM lineSetAgentGroup}
  1363. {$IFDEF TAPI22}
  1364. function lineSetAgentMeasurementPeriod(hLine: HLINE; hAgent: HAGENT;
  1365.   dwMeasurementPeriod: DWORD): Longint; stdcall; // TAPI v2.2
  1366. {$EXTERNALSYM lineSetAgentMeasurementPeriod}
  1367. function lineSetAgentSessionState(hLine: HLINE; hAgentSession: HAGENTSESSION;
  1368.   dwAgentSessionState, dwNextAgentSessionState: DWORD): Longint; stdcall; // TAPI v2.2
  1369. {$EXTERNALSYM lineSetAgentSessionState}
  1370. function lineSetAgentStateEx(hLine: HLINE; hAgent: HAGENT; dwAgentState,
  1371.   dwNextAgentState: DWORD): Longint; stdcall; // TAPI v2.2
  1372. {$EXTERNALSYM lineSetAgentStateEx}
  1373. {$ENDIF}
  1374. function lineSetAgentState(hLine: HLINE; dwAddressID, dwAgentState: DWORD;
  1375.   dwNextAgentState: DWORD): Longint; stdcall; // TAPI v2.0
  1376. {$EXTERNALSYM lineSetAgentState}
  1377. {$ENDIF}
  1378. {$IFNDEF TAPI10}
  1379. function lineSetAppPriorityA(lpszAppFilename: PAnsiChar; dwMediaMode: DWORD;
  1380.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  1381.   lpszExtensionName: PAnsiChar; dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  1382. {$EXTERNALSYM lineSetAppPriorityA}
  1383. function lineSetAppPriorityW(lpszAppFilename: PWideChar; dwMediaMode: DWORD;
  1384.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  1385.   lpszExtensionName: PWideChar; dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  1386. {$EXTERNALSYM lineSetAppPriorityW}
  1387. function lineSetAppPriority(lpszAppFilename: PChar; dwMediaMode: DWORD;
  1388.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  1389.   lpszExtensionName: PChar; dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  1390. {$EXTERNALSYM lineSetAppPriority}
  1391. {$ELSE}
  1392. function lineSetAppPriority(lpszAppFilename: LPCSTR; dwMediaMode: DWORD;
  1393.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  1394.   lpszExtensionName: LPCSTR; dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  1395. {$EXTERNALSYM lineSetAppPriority}
  1396. {$IFDEF WIN32}
  1397. function lineSetAppPriorityA(lpszAppFilename: LPCSTR; dwMediaMode: DWORD;
  1398.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  1399.   lpszExtensionName: LPCSTR; dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  1400. {$EXTERNALSYM lineSetAppPriorityA}
  1401. function lineSetAppPriorityW(lpszAppFilename: LPCWSTR; dwMediaMode: DWORD;
  1402.   lpExtensionID: PLineExtensionID; dwRequestMode: DWORD;
  1403.   lpszExtensionName: LPCWSTR; dwPriority: DWORD): Longint; stdcall; // TAPI v1.4
  1404. {$EXTERNALSYM lineSetAppPriorityW}
  1405. {$ENDIF}
  1406. {$ENDIF}
  1407. function lineSetAppSpecific(hCall: HCALL; dwAppSpecific: DWORD): Longint; stdcall;
  1408. {$EXTERNALSYM lineSetAppSpecific}
  1409. {$IFDEF TAPI20}
  1410. function lineSetCallData(hCall: HCALL; lpCallData: Pointer;
  1411.   dwSize: DWORD): Longint; stdcall; // TAPI v2.0
  1412. {$EXTERNALSYM lineSetCallData}
  1413. {$ENDIF}
  1414. function lineSetCallParams(hCall: HCALL; dwBearerMode, dwMinRate,
  1415.   dwMaxRate: DWORD; ldpDialParams: PLineDialParams): Longint; stdcall;
  1416. {$EXTERNALSYM lineSetCallParams}
  1417. function lineSetCallPrivilege(hCall: HCALL;
  1418.   dwCallPrivilege: DWORD): Longint; stdcall;
  1419. {$EXTERNALSYM lineSetCallPrivilege}
  1420. {$IFDEF TAPI20}
  1421. function lineSetCallQualityOfService(hCall: HCALL; lpSendingFlowspec: Pointer;
  1422.   dwSendingFlowspecSize: DWORD; lpReceivingFlowspec: Pointer;
  1423.   dwReceivingFlowspecSize: DWORD): Longint; stdcall; // TAPI v2.0
  1424. {$EXTERNALSYM lineSetCallQualityOfService}
  1425. function lineSetCallTreatment(hCall: HCALL;
  1426.   dwTreatment: DWORD): Longint; stdcall; // TAPI v2.0
  1427. {$EXTERNALSYM lineSetCallTreatment}
  1428. {$ENDIF}
  1429. function lineSetCurrentLocation(hLineApp: HLINEAPP;
  1430.   dwLocation: DWORD): Longint; stdcall;
  1431. {$EXTERNALSYM lineSetCurrentLocation}
  1432. {$IFNDEF TAPI10}
  1433. function lineSetDevConfigA(dwDeviceID: DWORD; lpDeviceConfig: Pointer;
  1434.   dwSize: DWORD; lpszDeviceClass: PAnsiChar): Longint; stdcall;
  1435. {$EXTERNALSYM lineSetDevConfigA}
  1436. function lineSetDevConfigW(dwDeviceID: DWORD; lpDeviceConfig: Pointer;
  1437.   dwSize: DWORD; lpszDeviceClass: PWideChar): Longint; stdcall;
  1438. {$EXTERNALSYM lineSetDevConfigW}
  1439. function lineSetDevConfig(dwDeviceID: DWORD; lpDeviceConfig: Pointer;
  1440.   dwSize: DWORD; lpszDeviceClass: PChar): Longint; stdcall;
  1441. {$EXTERNALSYM lineSetDevConfig}
  1442. {$ELSE}
  1443. function lineSetDevConfig(dwDeviceID: DWORD; lpDeviceConfig: Pointer;
  1444.   dwSize: DWORD; lpszDeviceClass: LPCSTR): Longint; stdcall;
  1445. {$EXTERNALSYM lineSetDevConfig}
  1446. {$IFDEF WIN32}
  1447. function lineSetDevConfigA(dwDeviceID: DWORD; lpDeviceConfig: Pointer;
  1448.   dwSize: DWORD; lpszDeviceClass: LPCSTR): Longint; stdcall;
  1449. {$EXTERNALSYM lineSetDevConfigA}
  1450. function lineSetDevConfigW(dwDeviceID: DWORD; lpDeviceConfig: Pointer;
  1451.   dwSize: DWORD; lpszDeviceClass: LPCWSTR): Longint; stdcall;
  1452. {$EXTERNALSYM lineSetDevConfigW}
  1453. {$ENDIF}
  1454. {$ENDIF}
  1455. {$IFDEF TAPI20}
  1456. function lineSetLineDevStatus(hLine: HLINE; dwStatusToChange,
  1457.   fStatus: DWORD): Longint; stdcall; // TAPI v2.0
  1458. {$EXTERNALSYM lineSetLineDevStatus}
  1459. {$ENDIF}
  1460. function lineSetMediaControl(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  1461.   dwSelect: DWORD; lmcdDigitList: PLineMediaControlDigit;
  1462.   dwDigitNumEntries: DWORD; lmcmMediaList: PLineMediaControlMedia;
  1463.   dwMediaNumEntries: DWORD; lmctToneList: PLineMediaControlTone;
  1464.   dwToneNumEntries: DWORD; lmccsCallStateList: PLineMediaControlCallState;
  1465.   dwCallStateNumEntries: DWORD): Longint; stdcall;
  1466. {$EXTERNALSYM lineSetMediaControl}
  1467. function lineSetMediaMode(hCall: HCALL; dwMediaModes: DWORD): Longint; stdcall;
  1468. {$EXTERNALSYM lineSetMediaMode}
  1469. {$IFDEF TAPI22}
  1470. function lineSetQueueMeasurementPeriod(hLine: HLINE; dwQueueID,
  1471.   dwMeasurementPeriod: DWORD): Longint; stdcall; // TAPI v2.2
  1472. {$EXTERNALSYM lineSetQueueMeasurementPeriod}
  1473. {$ENDIF}
  1474. function lineSetNumRings(hLine: HLINE; dwAddressID,
  1475.   dwNumRings: DWORD): Longint; stdcall;
  1476. {$EXTERNALSYM lineSetNumRings}
  1477. function lineSetStatusMessages(hLine: HLINE; dwLineStates,
  1478.   dwAddressStates: DWORD): Longint; stdcall;
  1479. {$EXTERNALSYM lineSetStatusMessages}
  1480. function lineSetTerminal(hLine: HLINE; dwAddressID: DWORD; hCall: HCALL;
  1481.   dwSelect, dwTerminalModes, dwTerminalID, bEnable: DWORD): Longint; stdcall;
  1482. {$EXTERNALSYM lineSetTerminal}
  1483. {$IFNDEF TAPI10}
  1484. function lineSetTollListA(hLineApp: HLINEAPP; dwDeviceID: DWORD;
  1485.   lpszAddressIn: PAnsiChar; dwTollListOption: DWORD): Longint; stdcall;
  1486. {$EXTERNALSYM lineSetTollListA}
  1487. function lineSetTollListW(hLineApp: HLINEAPP; dwDeviceID: DWORD;
  1488.   lpszAddressIn: PWideChar; dwTollListOption: DWORD): Longint; stdcall;
  1489. {$EXTERNALSYM lineSetTollListW}
  1490. function lineSetTollList(hLineApp: HLINEAPP; dwDeviceID: DWORD;
  1491.   lpszAddressIn: PChar; dwTollListOption: DWORD): Longint; stdcall;
  1492. {$EXTERNALSYM lineSetTollList}
  1493. {$ELSE}
  1494. function lineSetTollList(hLineApp: HLINEAPP; dwDeviceID: DWORD;
  1495.   lpszAddressIn: LPCSTR; dwTollListOption: DWORD): Longint; stdcall;
  1496. {$EXTERNALSYM lineSetTollList}
  1497. {$IFDEF WIN32}
  1498. function lineSetTollListA(hLineApp: HLINEAPP; dwDeviceID: DWORD;
  1499.   lpszAddressIn: LPCSTR; dwTollListOption: DWORD): Longint; stdcall;
  1500. {$EXTERNALSYM lineSetTollListA}
  1501. function lineSetTollListW(hLineApp: HLINEAPP; dwDeviceID: DWORD;
  1502.   lpszAddressIn: LPCWSTR; dwTollListOption: DWORD): Longint; stdcall;
  1503. {$EXTERNALSYM lineSetTollListW}
  1504. {$ENDIF}
  1505. {$ENDIF}
  1506. {$IFNDEF TAPI10}
  1507. function lineSetupConferenceA(hCall: HCALL; hLine: HLINE; lphConfCall: PHCall;
  1508.   lphConsultCall: PHCall; dwNumParties: DWORD;
  1509.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1510. {$EXTERNALSYM lineSetupConferenceA}
  1511. function lineSetupConferenceW(hCall: HCALL; hLine: HLINE; lphConfCall: PHCall;
  1512.   lphConsultCall: PHCall; dwNumParties: DWORD;
  1513.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1514. {$EXTERNALSYM lineSetupConferenceW}
  1515. function lineSetupConference(hCall: HCALL; hLine: HLINE; lphConfCall: PHCall;
  1516.   lphConsultCall: PHCall; dwNumParties: DWORD;
  1517.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1518. {$EXTERNALSYM lineSetupConference}
  1519. {$ELSE}
  1520. function lineSetupConference(hCall: HCALL; hLine: HLINE; lphConfCall: PHCall;
  1521.   lphConsultCall: PHCall; dwNumParties: DWORD;
  1522.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1523. {$EXTERNALSYM lineSetupConference}
  1524. {$IFDEF WIN32}
  1525. function lineSetupConferenceA(hCall: HCALL; hLine: HLINE; lphConfCall: PHCall;
  1526.   lphConsultCall: PHCall; dwNumParties: DWORD;
  1527.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1528. {$EXTERNALSYM lineSetupConferenceA}
  1529. function lineSetupConferenceW(hCall: HCALL; hLine: HLINE; lphConfCall: PHCall;
  1530.   lphConsultCall: PHCall; dwNumParties: DWORD;
  1531.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1532. {$EXTERNALSYM lineSetupConferenceW}
  1533. {$ENDIF}
  1534. {$ENDIF}
  1535. {$IFNDEF TAPI10}
  1536. function lineSetupTransferA(hCall: HCALL; lphConsultCall: PHCall;
  1537.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1538. {$EXTERNALSYM lineSetupTransferA}
  1539. function lineSetupTransferW(hCall: HCALL; lphConsultCall: PHCall;
  1540.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1541. {$EXTERNALSYM lineSetupTransferW}
  1542. function lineSetupTransfer(hCall: HCALL; lphConsultCall: PHCall;
  1543.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1544. {$EXTERNALSYM lineSetupTransfer}
  1545. {$ELSE}
  1546. function lineSetupTransfer(hCall: HCALL; lphConsultCall: PHCall;
  1547.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1548. {$EXTERNALSYM lineSetupTransfer}
  1549. {$IFDEF WIN32}
  1550. function lineSetupTransferA(hCall: HCALL; lphConsultCall: PHCall;
  1551.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1552. {$EXTERNALSYM lineSetupTransferA}
  1553. function lineSetupTransferW(hCall: HCALL; lphConsultCall: PHCall;
  1554.   lcpCallParams: PLineCallParams): Longint; stdcall;
  1555. {$EXTERNALSYM lineSetupTransferW}
  1556. {$ENDIF}
  1557. {$ENDIF}
  1558. function lineShutdown(hLineApp: HLINEAPP): Longint; stdcall;
  1559. {$EXTERNALSYM lineShutdown}
  1560. function lineSwapHold(hActiveCall, hHeldCall: HCALL): Longint; stdcall;
  1561. {$EXTERNALSYM lineSwapHold}
  1562. {$IFNDEF TAPI10}
  1563. function lineTranslateAddressA(hLineApp: HLINEAPP; dwDeviceID,
  1564.   dwAPIVersion: DWORD; lpszAddressIn: PAnsiChar; dwCard, dwTranslateOptions: DWORD;
  1565.   lpTranslateOutput: PLineTranslateOutput): Longint; stdcall;
  1566. {$EXTERNALSYM lineTranslateAddressA}
  1567. function lineTranslateAddressW(hLineApp: HLINEAPP; dwDeviceID,
  1568.   dwAPIVersion: DWORD; lpszAddressIn: PWideChar; dwCard, dwTranslateOptions: DWORD;
  1569.   lpTranslateOutput: PLineTranslateOutput): Longint; stdcall;
  1570. {$EXTERNALSYM lineTranslateAddressW}
  1571. function lineTranslateAddress(hLineApp: HLINEAPP; dwDeviceID,
  1572.   dwAPIVersion: DWORD; lpszAddressIn: PChar; dwCard, dwTranslateOptions: DWORD;
  1573.   lpTranslateOutput: PLineTranslateOutput): Longint; stdcall;
  1574. {$EXTERNALSYM lineTranslateAddress}
  1575. {$ELSE}
  1576. function lineTranslateAddress(hLineApp: HLINEAPP; dwDeviceID,
  1577.   dwAPIVersion: DWORD; lpszAddressIn: LPCSTR; dwCard, dwTranslateOptions: DWORD;
  1578.   lpTranslateOutput: PLineTranslateOutput): Longint; stdcall;
  1579. {$EXTERNALSYM lineTranslateAddress}
  1580. {$IFDEF WIN32}
  1581. function lineTranslateAddressA(hLineApp: HLINEAPP; dwDeviceID,
  1582.   dwAPIVersion: DWORD; lpszAddressIn: LPCSTR; dwCard, dwTranslateOptions: DWORD;
  1583.   lpTranslateOutput: PLineTranslateOutput): Longint; stdcall;
  1584. {$EXTERNALSYM lineTranslateAddressA}
  1585. function lineTranslateAddressW(hLineApp: HLINEAPP; dwDeviceID,
  1586.   dwAPIVersion: DWORD; lpszAddressIn: LPCWSTR; dwCard, dwTranslateOptions: DWORD;
  1587.   lpTranslateOutput: PLineTranslateOutput): Longint; stdcall;
  1588. {$EXTERNALSYM lineTranslateAddressW}
  1589. {$ENDIF}
  1590. {$ENDIF}
  1591. {$IFNDEF TAPI10}
  1592. function lineTranslateDialogA(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion: DWORD;
  1593.   hwndOwner: HWND; lpszAddressIn: PAnsiChar): Longint; stdcall; // TAPI v1.4
  1594. {$EXTERNALSYM lineTranslateDialogA}
  1595. function lineTranslateDialogW(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion: DWORD;
  1596.   hwndOwner: HWND; lpszAddressIn: PWideChar): Longint; stdcall; // TAPI v1.4
  1597. {$EXTERNALSYM lineTranslateDialogW}
  1598. function lineTranslateDialog(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion: DWORD;
  1599.   hwndOwner: HWND; lpszAddressIn: PChar): Longint; stdcall; // TAPI v1.4
  1600. {$EXTERNALSYM lineTranslateDialog}
  1601. {$ELSE}
  1602. function lineTranslateDialog(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion: DWORD;
  1603.   hwndOwner: HWND; lpszAddressIn: LPCSTR): Longint; stdcall; // TAPI v1.4
  1604. {$EXTERNALSYM lineTranslateDialog}
  1605. {$IFDEF WIN32}
  1606. function lineTranslateDialogA(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion: DWORD;
  1607.   hwndOwner: HWND; lpszAddressIn: LPCSTR): Longint; stdcall; // TAPI v1.4
  1608. {$EXTERNALSYM lineTranslateDialogA}
  1609. function lineTranslateDialogW(hLineApp: HLINEAPP; dwDeviceID, dwAPIVersion: DWORD;
  1610.   hwndOwner: HWND; lpszAddressIn: LPCWSTR): Longint; stdcall; // TAPI v1.4
  1611. {$EXTERNALSYM lineTranslateDialogW}
  1612. {$ENDIF}
  1613. {$ENDIF}
  1614. function lineUncompleteCall(hLine: HLINE; dwCompletionID: DWORD): Longint; stdcall;
  1615. {$EXTERNALSYM lineUncompleteCall}
  1616. function lineUnhold(hCall: HCALL): Longint; stdcall;
  1617. {$EXTERNALSYM lineUnhold}
  1618. {$IFNDEF TAPI10}
  1619. function lineUnparkA(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCALL;
  1620.   lpszDestAddress: PAnsiChar): Longint; stdcall;
  1621. {$EXTERNALSYM lineUnparkA}
  1622. function lineUnparkW(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCALL;
  1623.   lpszDestAddress: PWideChar): Longint; stdcall;
  1624. {$EXTERNALSYM lineUnparkW}
  1625. function lineUnpark(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCALL;
  1626.   lpszDestAddress: PChar): Longint; stdcall;
  1627. {$EXTERNALSYM lineUnpark}
  1628. {$ELSE}
  1629. function lineUnpark(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCALL;
  1630.   lpszDestAddress: LPCSTR): Longint; stdcall;
  1631. {$EXTERNALSYM lineUnpark}
  1632. {$IFDEF WIN32}
  1633. function lineUnparkA(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCALL;
  1634.   lpszDestAddress: LPCSTR): Longint; stdcall;
  1635. {$EXTERNALSYM lineUnparkA}
  1636. function lineUnparkW(hLine: HLINE; dwAddressID: DWORD; lphCall: PHCALL;
  1637.   lpszDestAddress: LPCWSTR): Longint; stdcall;
  1638. {$EXTERNALSYM lineUnparkW}
  1639. {$ENDIF}
  1640. {$ENDIF}
  1641. function phoneClose(hPhone: HPHONE): Longint; stdcall;
  1642. {$EXTERNALSYM phoneClose}
  1643. {$IFNDEF TAPI10}
  1644. function phoneConfigDialogA(dwDeviceID: DWORD; hwndOwner: HWND;
  1645.   lpszDeviceClass: PAnsiChar): Longint; stdcall;
  1646. {$EXTERNALSYM phoneConfigDialogA}
  1647. function phoneConfigDialogW(dwDeviceID: DWORD; hwndOwner: HWND;
  1648.   lpszDeviceClass: PWideChar): Longint; stdcall;
  1649. {$EXTERNALSYM phoneConfigDialogW}
  1650. function phoneConfigDialog(dwDeviceID: DWORD; hwndOwner: HWND;
  1651.   lpszDeviceClass: PChar): Longint; stdcall;
  1652. {$EXTERNALSYM phoneConfigDialog}
  1653. {$ELSE}
  1654. function phoneConfigDialog(dwDeviceID: DWORD; hwndOwner: HWND;
  1655.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  1656. {$EXTERNALSYM phoneConfigDialog}
  1657. {$IFDEF WIN32}
  1658. function phoneConfigDialogA(dwDeviceID: DWORD; hwndOwner: HWND;
  1659.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  1660. {$EXTERNALSYM phoneConfigDialogA}
  1661. function phoneConfigDialogW(dwDeviceID: DWORD; hwndOwner: HWND;
  1662.   lpszDeviceClass: LPCWSTR): Longint; stdcall;
  1663. {$EXTERNALSYM phoneConfigDialogW}
  1664. {$ENDIF}
  1665. {$ENDIF}
  1666. function phoneDevSpecific(hPhone: HPHONE; lpParams: Pointer;
  1667.   dwSize: DWORD): Longint; stdcall;
  1668. {$EXTERNALSYM phoneDevSpecific}
  1669. {$IFNDEF TAPI10}
  1670. function phoneGetButtonInfoA(hPhone: HPHONE; dwButtonLampID: DWORD;
  1671.   lpButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1672. {$EXTERNALSYM phoneGetButtonInfoA}
  1673. function phoneGetButtonInfoW(hPhone: HPHONE; dwButtonLampID: DWORD;
  1674.   lpButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1675. {$EXTERNALSYM phoneGetButtonInfoW}
  1676. function phoneGetButtonInfo(hPhone: HPHONE; dwButtonLampID: DWORD;
  1677.   lpButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1678. {$EXTERNALSYM phoneGetButtonInfo}
  1679. {$ELSE}
  1680. function phoneGetButtonInfo(hPhone: HPHONE; dwButtonLampID: DWORD;
  1681.   lpButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1682. {$EXTERNALSYM phoneGetButtonInfo}
  1683. {$IFDEF WIN32}
  1684. function phoneGetButtonInfoA(hPhone: HPHONE; dwButtonLampID: DWORD;
  1685.   lpButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1686. {$EXTERNALSYM phoneGetButtonInfoA}
  1687. function phoneGetButtonInfoW(hPhone: HPHONE; dwButtonLampID: DWORD;
  1688.   lpButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1689. {$EXTERNALSYM phoneGetButtonInfoW}
  1690. {$ENDIF}
  1691. {$ENDIF}
  1692. function phoneGetData(hPhone: HPHONE; dwDataID: DWORD; lpData: Pointer;
  1693.   dwSize: DWORD): Longint; stdcall;
  1694. {$EXTERNALSYM phoneGetData}
  1695. {$IFNDEF TAPI10}
  1696. function phoneGetDevCapsA(hPhoneApp: HPHONEAPP; dwDeviceID, dwAPIVersion,
  1697.   dwExtVersion: DWORD; lpPhoneCaps: PPhoneCaps): Longint; stdcall;
  1698. {$EXTERNALSYM phoneGetDevCapsA}
  1699. function phoneGetDevCapsW(hPhoneApp: HPHONEAPP; dwDeviceID, dwAPIVersion,
  1700.   dwExtVersion: DWORD; lpPhoneCaps: PPhoneCaps): Longint; stdcall;
  1701. {$EXTERNALSYM phoneGetDevCapsW}
  1702. function phoneGetDevCaps(hPhoneApp: HPHONEAPP; dwDeviceID, dwAPIVersion,
  1703.   dwExtVersion: DWORD; lpPhoneCaps: PPhoneCaps): Longint; stdcall;
  1704. {$EXTERNALSYM phoneGetDevCaps}
  1705. {$ELSE}
  1706. function phoneGetDevCaps(hPhoneApp: HPHONEAPP; dwDeviceID, dwAPIVersion,
  1707.   dwExtVersion: DWORD; lpPhoneCaps: PPhoneCaps): Longint; stdcall;
  1708. {$EXTERNALSYM phoneGetDevCaps}
  1709. {$IFDEF WIN32}
  1710. function phoneGetDevCapsA(hPhoneApp: HPHONEAPP; dwDeviceID, dwAPIVersion,
  1711.   dwExtVersion: DWORD; lpPhoneCaps: PPhoneCaps): Longint; stdcall;
  1712. {$EXTERNALSYM phoneGetDevCapsA}
  1713. function phoneGetDevCapsW(hPhoneApp: HPHONEAPP; dwDeviceID, dwAPIVersion,
  1714.   dwExtVersion: DWORD; lpPhoneCaps: PPhoneCaps): Longint; stdcall;
  1715. {$EXTERNALSYM phoneGetDevCapsW}
  1716. {$ENDIF}
  1717. {$ENDIF}
  1718. function phoneGetDisplay(hPhone: HPHONE; lpDisplay: PVarString): Longint; stdcall;
  1719. {$EXTERNALSYM phoneGetDisplay}
  1720. function phoneGetGain(hPhone: HPHONE; dwHookSwitchDev: DWORD;
  1721.   var dwGain: DWORD): Longint; stdcall;
  1722. {$EXTERNALSYM phoneGetGain}
  1723. function phoneGetHookSwitch(hPhone: HPHONE;
  1724.   var dwHookSwitchDevs: DWORD): Longint; stdcall;
  1725. {$EXTERNALSYM phoneGetHookSwitch}
  1726. {$IFNDEF TAPI10}
  1727. function phoneGetIconA(dwDeviceID: DWORD; lpszDeviceClass: PAnsiChar;
  1728.   var hIcon: HIcon): Longint; stdcall;
  1729. {$EXTERNALSYM phoneGetIconA}
  1730. function phoneGetIconW(dwDeviceID: DWORD; lpszDeviceClass: PWideChar;
  1731.   var hIcon: HIcon): Longint; stdcall;
  1732. {$EXTERNALSYM phoneGetIconW}
  1733. function phoneGetIcon(dwDeviceID: DWORD; lpszDeviceClass: PChar;
  1734.   var hIcon: HIcon): Longint; stdcall;
  1735. {$EXTERNALSYM phoneGetIcon}
  1736. {$ELSE}
  1737. function phoneGetIcon(dwDeviceID: DWORD; lpszDeviceClass: LPCSTR;
  1738.   var hIcon: HIcon): Longint; stdcall;
  1739. {$EXTERNALSYM phoneGetIcon}
  1740. {$IFDEF WIN32}
  1741. function phoneGetIconA(dwDeviceID: DWORD; lpszDeviceClass: LPCSTR;
  1742.   var hIcon: HIcon): Longint; stdcall;
  1743. {$EXTERNALSYM phoneGetIconA}
  1744. function phoneGetIconW(dwDeviceID: DWORD; lpszDeviceClass: LPCWSTR;
  1745.   var hIcon: HIcon): Longint; stdcall;
  1746. {$EXTERNALSYM phoneGetIconW}
  1747. {$ENDIF}
  1748. {$ENDIF}
  1749. {$IFNDEF TAPI10}
  1750. function phoneGetIDA(hPhone: HPHONE; lpDeviceID: PVarString;
  1751.   lpszDeviceClass: PAnsiChar): Longint; stdcall;
  1752. {$EXTERNALSYM phoneGetIDA}
  1753. function phoneGetIDW(hPhone: HPHONE; lpDeviceID: PVarString;
  1754.   lpszDeviceClass: PWideChar): Longint; stdcall;
  1755. {$EXTERNALSYM phoneGetIDW}
  1756. function phoneGetID(hPhone: HPHONE; lpDeviceID: PVarString;
  1757.   lpszDeviceClass: PChar): Longint; stdcall;
  1758. {$EXTERNALSYM phoneGetID}
  1759. {$ELSE}
  1760. function phoneGetID(hPhone: HPHONE; lpDeviceID: PVarString;
  1761.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  1762. {$EXTERNALSYM phoneGetID}
  1763. {$IFDEF WIN32}
  1764. function phoneGetIDA(hPhone: HPHONE; lpDeviceID: PVarString;
  1765.   lpszDeviceClass: LPCSTR): Longint; stdcall;
  1766. {$EXTERNALSYM phoneGetIDA}
  1767. function phoneGetIDW(hPhone: HPHONE; lpDeviceID: PVarString;
  1768.   lpszDeviceClass: LPCWSTR): Longint; stdcall;
  1769. {$EXTERNALSYM phoneGetIDW}
  1770. {$ENDIF}
  1771. {$ENDIF}
  1772. function phoneGetLamp(hPhone: HPHONE; dwButtonLampID: DWORD;
  1773.   var dwLampMode: DWORD): Longint; stdcall;
  1774. {$EXTERNALSYM phoneGetLamp}
  1775. {$IFDEF TAPI20}
  1776. function phoneGetMessage(hPhoneApp: HPHONEAPP; var lpMessage: TPhoneMessage;
  1777.   dwTimeout: DWORD): Longint; stdcall; // TAPI v2.0
  1778. {$EXTERNALSYM phoneGetMessage}
  1779. {$ENDIF}
  1780. function phoneGetRing(hPhone: HPHONE; var dwRingMode,
  1781.   dwVolume: DWORD): Longint; stdcall;
  1782. {$EXTERNALSYM phoneGetRing}
  1783. {$IFNDEF TAPI10}
  1784. function phoneGetStatusA(hPhone: HPHONE;
  1785.   lpPhoneStatus: PPhoneStatus): Longint; stdcall;
  1786. {$EXTERNALSYM phoneGetStatusA}
  1787. function phoneGetStatusW(hPhone: HPHONE;
  1788.   lpPhoneStatus: PPhoneStatus): Longint; stdcall;
  1789. {$EXTERNALSYM phoneGetStatusW}
  1790. function phoneGetStatus(hPhone: HPHONE;
  1791.   lpPhoneStatus: PPhoneStatus): Longint; stdcall;
  1792. {$EXTERNALSYM phoneGetStatus}
  1793. {$ELSE}
  1794. function phoneGetStatus(hPhone: HPHONE;
  1795.   lpPhoneStatus: PPhoneStatus): Longint; stdcall;
  1796. {$EXTERNALSYM phoneGetStatus}
  1797. {$IFDEF WIN32}
  1798. function phoneGetStatusA(hPhone: HPHONE;
  1799.   lpPhoneStatus: PPhoneStatus): Longint; stdcall;
  1800. {$EXTERNALSYM phoneGetStatusA}
  1801. function phoneGetStatusW(hPhone: HPHONE;
  1802.   lpPhoneStatus: PPhoneStatus): Longint; stdcall;
  1803. {$EXTERNALSYM phoneGetStatusW}
  1804. {$ENDIF}
  1805. {$ENDIF}
  1806. function phoneGetStatusMessages(hPhone: HPHONE; var lpdwPhoneStates,
  1807.   lpdwButtonModes, lpdwButtonStates: DWORD): Longint; stdcall;
  1808. {$EXTERNALSYM phoneGetStatusMessages}
  1809. function phoneGetVolume(hPhone: HPHONE; dwHookSwitchDev: DWORD;
  1810.   var dwVolume: DWORD): Longint; stdcall;
  1811. {$EXTERNALSYM phoneGetVolume}
  1812. function phoneInitialize(var hPhoneApp: HPHONEAPP; hInstance: HINST;
  1813.   lpfnCallback: TPhoneCallback;lpszAppName: LPCSTR;
  1814.   var dwNumDevs: DWORD): Longint; stdcall;
  1815. {$EXTERNALSYM phoneInitialize}
  1816. {$IFDEF TAPI20}
  1817. function phoneInitializeExA(var hPhoneApp: HPHONEAPP; hInstance: HINST;
  1818.   lpfnCallback: TPhoneCallback; lpszFriendlyAppName: PAnsiChar;
  1819.   var dwNumDevs, dwAPIVersion: DWORD;
  1820.   var PhoneInitializeExParams: TPhoneInitializeExParams): Longint; stdcall; // TAPI v2.0
  1821. {$EXTERNALSYM phoneInitializeExA}
  1822. function phoneInitializeExW(var hPhoneApp: HPHONEAPP; hInstance: HINST;
  1823.   lpfnCallback: TPhoneCallback; lpszFriendlyAppName: PWideChar;
  1824.   var dwNumDevs, dwAPIVersion: DWORD;
  1825.   var PhoneInitializeExParams: TPhoneInitializeExParams): Longint; stdcall; // TAPI v2.0
  1826. {$EXTERNALSYM phoneInitializeExW}
  1827. function phoneInitializeEx(var hPhoneApp: HPHONEAPP; hInstance: HINST;
  1828.   lpfnCallback: TPhoneCallback; lpszFriendlyAppName: PChar;
  1829.   var dwNumDevs, dwAPIVersion: DWORD;
  1830.   var PhoneInitializeExParams: TPhoneInitializeExParams): Longint; stdcall; // TAPI v2.0
  1831. {$EXTERNALSYM phoneInitializeEx}
  1832. {$ENDIF}
  1833. function phoneNegotiateAPIVersion(hPhoneApp: HPHONEAPP; dwDeviceID,
  1834.   dwAPILowVersion, dwAPIHighVersion: DWORD; var dwAPIVersion: DWORD;
  1835.   var lpExtensionID: TPhoneExtensionID): Longint; stdcall;
  1836. {$EXTERNALSYM phoneNegotiateAPIVersion}
  1837. function phoneNegotiateExtVersion(hPhoneApp: HPHONEAPP; dwDeviceID,
  1838.   dwAPIVersion, dwExtLowVersion, dwExtHighVersion: DWORD;
  1839.   var dwExtVersion: DWORD): Longint; stdcall;
  1840. {$EXTERNALSYM phoneNegotiateExtVersion}
  1841. function phoneOpen(hPhoneApp: HPHONEAPP; dwDeviceID: DWORD; var hPhone: HPHONE;
  1842.   dwAPIVersion, dwExtVersion, dwCallbackInstance,
  1843.   dwPrivilege: DWORD): Longint; stdcall;
  1844. {$EXTERNALSYM phoneOpen}
  1845. {$IFNDEF TAPI10}
  1846. function phoneSetButtonInfoA(hPhone: HPHONE; dwButtonLampID: DWORD;
  1847.   pbiButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1848. {$EXTERNALSYM phoneSetButtonInfoA}
  1849. function phoneSetButtonInfoW(hPhone: HPHONE; dwButtonLampID: DWORD;
  1850.   pbiButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1851. {$EXTERNALSYM phoneSetButtonInfoW}
  1852. function phoneSetButtonInfo(hPhone: HPHONE; dwButtonLampID: DWORD;
  1853.   pbiButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1854. {$EXTERNALSYM phoneSetButtonInfo}
  1855. {$ELSE}
  1856. function phoneSetButtonInfo(hPhone: HPHONE; dwButtonLampID: DWORD;
  1857.   pbiButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1858. {$EXTERNALSYM phoneSetButtonInfo}
  1859. {$IFDEF WIN32}
  1860. function phoneSetButtonInfoA(hPhone: HPHONE; dwButtonLampID: DWORD;
  1861.   pbiButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1862. {$EXTERNALSYM phoneSetButtonInfoA}
  1863. function phoneSetButtonInfoW(hPhone: HPHONE; dwButtonLampID: DWORD;
  1864.   pbiButtonInfo: PPhoneButtonInfo): Longint; stdcall;
  1865. {$EXTERNALSYM phoneSetButtonInfoW}
  1866. {$ENDIF}
  1867. {$ENDIF}
  1868. function phoneSetData(hPhone: HPHONE; dwDataID: DWORD; lpData: Pointer;
  1869.   dwSize: DWORD): Longint; stdcall;
  1870. {$EXTERNALSYM phoneSetData}
  1871. function phoneSetDisplay(hPhone: HPHONE; dwRow, dwColumn: DWORD;
  1872.   lpsDisplay: LPCSTR; dwSize: DWORD): Longint; stdcall;
  1873. {$EXTERNALSYM phoneSetDisplay}
  1874. function phoneSetGain(hPhone: HPHONE; dwHookSwitchDev: DWORD;
  1875.   dwGain: DWORD): Longint; stdcall;
  1876. {$EXTERNALSYM phoneSetGain}
  1877. function phoneSetHookSwitch(hPhone: HPHONE; dwHookSwitchDevs,
  1878.   dwHookSwitchMode: DWORD): Longint; stdcall;
  1879. {$EXTERNALSYM phoneSetHookSwitch}
  1880. function phoneSetLamp(hPhone: HPHONE; dwButtonLampID,
  1881.   dwLampMode: DWORD): Longint; stdcall;
  1882. {$EXTERNALSYM phoneSetLamp}
  1883. function phoneSetRing(hPhone: HPHONE; dwRingMode,
  1884.   dwVolume: DWORD): Longint; stdcall;
  1885. {$EXTERNALSYM phoneSetRing}
  1886. function phoneSetStatusMessages(hPhone: HPHONE; dwPhoneStates, dwButtonModes,
  1887.   dwButtonStates: DWORD): Longint; stdcall;
  1888. {$EXTERNALSYM phoneSetStatusMessages}
  1889. function phoneSetVolume(hPhone: HPHONE; dwHookSwitchDev,
  1890.   dwVolume: DWORD): Longint; stdcall;
  1891. {$EXTERNALSYM phoneSetVolume}
  1892. function phoneShutdown(hPhoneApp: HPHONEAPP): Longint; stdcall;
  1893. {$EXTERNALSYM phoneShutdown}
  1894. {$IFNDEF TAPI10}
  1895. function tapiGetLocationInfoA(lpszCountryCode,
  1896.   lpszCityCode: PAnsiChar): Longint; stdcall;
  1897. {$EXTERNALSYM tapiGetLocationInfoA}
  1898. function tapiGetLocationInfoW(lpszCountryCode,
  1899.   lpszCityCode: PWideChar): Longint; stdcall;
  1900. {$EXTERNALSYM tapiGetLocationInfoW}
  1901. function tapiGetLocationInfo(lpszCountryCode,
  1902.   lpszCityCode: PChar): Longint; stdcall;
  1903. {$EXTERNALSYM tapiGetLocationInfo}
  1904. {$ELSE}
  1905. function tapiGetLocationInfo(lpszCountryCode,
  1906.   lpszCityCode: LPCSTR): Longint; stdcall;
  1907. {$EXTERNALSYM tapiGetLocationInfo}
  1908. {$IFDEF WIN32}
  1909. function tapiGetLocationInfoA(lpszCountryCode,
  1910.   lpszCityCode: LPCSTR): Longint; stdcall;
  1911. {$EXTERNALSYM tapiGetLocationInfoA}
  1912. function tapiGetLocationInfoW(lpszCountryCode,
  1913.   lpszCityCode: LPCWSTR): Longint; stdcall;
  1914. {$EXTERNALSYM tapiGetLocationInfoW}
  1915. {$ENDIF}
  1916. {$ENDIF}
  1917. function tapiRequestDrop(hwnd: HWND; wRequestID: WPARAM): Longint; stdcall;
  1918. {$EXTERNALSYM tapiRequestDrop}
  1919. {$IFNDEF TAPI10}
  1920. function tapiRequestMakeCallA(lpszDestAddress, lpszAppName, lpszCalledParty,
  1921.   lpszComment: PAnsiChar): Longint; stdcall;
  1922. {$EXTERNALSYM tapiRequestMakeCallA}
  1923. function tapiRequestMakeCallW(lpszDestAddress, lpszAppName, lpszCalledParty,
  1924.   lpszComment: PWideChar): Longint; stdcall;
  1925. {$EXTERNALSYM tapiRequestMakeCallW}
  1926. function tapiRequestMakeCall(lpszDestAddress, lpszAppName, lpszCalledParty,
  1927.   lpszComment: PChar): Longint; stdcall;
  1928. {$EXTERNALSYM tapiRequestMakeCall}
  1929. {$ELSE}
  1930. function tapiRequestMakeCall(lpszDestAddress, lpszAppName, lpszCalledParty,
  1931.   lpszComment: LPCSTR): Longint; stdcall;
  1932. {$EXTERNALSYM tapiRequestMakeCall}
  1933. {$IFDEF WIN32}
  1934. function tapiRequestMakeCallA(lpszDestAddress, lpszAppName, lpszCalledParty,
  1935.   lpszComment: LPCSTR): Longint; stdcall;
  1936. {$EXTERNALSYM tapiRequestMakeCallA}
  1937. function tapiRequestMakeCallW(lpszDestAddress, lpszAppName, lpszCalledParty,
  1938.   lpszComment: LPCWSTR): Longint; stdcall;
  1939. {$EXTERNALSYM tapiRequestMakeCallW}
  1940. {$ENDIF}
  1941. {$ENDIF}
  1942. {$IFNDEF TAPI10}
  1943. function tapiRequestMediaCallA(hwnd: HWND; wRequestID: WPARAM; lpszDeviceClass,
  1944.   lpDeviceID: PAnsiChar; dwSize, dwSecure: DWORD; lpszDestAddress, lpszAppName,
  1945.   lpszCalledParty, lpszComment: PAnsiChar): Longint; stdcall;
  1946. {$EXTERNALSYM tapiRequestMediaCallA}
  1947. function tapiRequestMediaCallW(hwnd: HWND; wRequestID: WPARAM; lpszDeviceClass,
  1948.   lpDeviceID: PWideChar; dwSize, dwSecure: DWORD; lpszDestAddress, lpszAppName,
  1949.   lpszCalledParty, lpszComment: PWideChar): Longint; stdcall;
  1950. {$EXTERNALSYM tapiRequestMediaCallW}
  1951. function tapiRequestMediaCall(hwnd: HWND; wRequestID: WPARAM; lpszDeviceClass,
  1952.   lpDeviceID: PChar; dwSize, dwSecure: DWORD; lpszDestAddress, lpszAppName,
  1953.   lpszCalledParty, lpszComment: PChar): Longint; stdcall;
  1954. {$EXTERNALSYM tapiRequestMediaCall}
  1955. {$ELSE}
  1956. function tapiRequestMediaCall(hwnd: HWND; wRequestID: WPARAM; lpszDeviceClass,
  1957.   lpDeviceID: LPCSTR; dwSize, dwSecure: DWORD; lpszDestAddress, lpszAppName,
  1958.   lpszCalledParty, lpszComment: LPCSTR): Longint; stdcall;
  1959. {$EXTERNALSYM tapiRequestMediaCall}
  1960. {$IFDEF WIN32}
  1961. function tapiRequestMediaCallA(hwnd: HWND; wRequestID: WPARAM; lpszDeviceClass,
  1962.   lpDeviceID: LPCSTR; dwSize, dwSecure: DWORD; lpszDestAddress, lpszAppName,
  1963.   lpszCalledParty, lpszComment: LPCSTR): Longint; stdcall;
  1964. {$EXTERNALSYM tapiRequestMediaCallA}
  1965. function tapiRequestMediaCallW(hwnd: HWND; wRequestID: WPARAM; lpszDeviceClass,
  1966.   lpDeviceID: LPCWSTR; dwSize, dwSecure: DWORD; lpszDestAddress, lpszAppName,
  1967.   lpszCalledParty, lpszComment: LPCWSTR): Longint; stdcall;
  1968. {$EXTERNALSYM tapiRequestMediaCallW}
  1969. {$ENDIF}
  1970. {$ENDIF}
  1971. (*
  1972.  * TAPIERROR_FORMATMESSAGE - macro to convert a TAPI error constant
  1973.  *                           into a constant that FormatMessage will accept
  1974.  *
  1975.  *      TAPIERR : Negative numbers and 0
  1976.  *          Map to : strip off high WORD
  1977.  *          Example: 0xFFFFFFFF (-1) becomes 0x0000FFFF
  1978.  *      LINEERR : Start at 0x80000000
  1979.  *          Map to : strip off 0x80000000 and add 0xE000
  1980.  *          Example: 0x80000004 becomes 0x0000E004
  1981.  *      PHONEERR: Start at 0x90000000
  1982.  *          Map to : strip off 0x90000000 and add 0xF000
  1983.  *          Example: 0x9000000A becomes 0x0000F00A
  1984.  *
  1985.  *      pseudocode:
  1986.  *
  1987.  *      if (__ErrCode__ is a TAPIERR)
  1988.  *          strip off high word
  1989.  *
  1990.  *          else if (__ErrCode__ is a PHONEERR)
  1991.  *              strip off 0x90000000
  1992.  *              add 0xE000
  1993.  *
  1994.  *              else
  1995.  *                  strip off 0x80000000
  1996.  *                  add 0xF000
  1997.  *)
  1998. function TapiErrorFormatMessage(ErrCode: DWORD): Longint;
  1999. function TAPIERROR_FORMATMESSAGE(ErrCode: DWORD): Longint;
  2000. {$EXTERNALSYM TAPIERROR_FORMATMESSAGE}
  2001. implementation
  2002. const
  2003.   TapiDll = 'tapi32.dll';
  2004. function lineAccept; external TapiDll name 'lineAccept';
  2005. {$IFNDEF TAPI10}
  2006. function lineAddProviderA; external TapiDll name 'lineAddProviderA';
  2007. function lineAddProviderW; external TapiDll name 'lineAddProviderW';
  2008. function lineAddProvider; external TapiDll name 'lineAddProviderA';
  2009. {$ELSE}
  2010. function lineAddProvider; external TapiDll name 'lineAddProvider';
  2011. {$IFDEF WIN32}
  2012. function lineAddProviderA; external TapiDll name 'lineAddProviderA';
  2013. function lineAddProviderW; external TapiDll name 'lineAddProviderW';
  2014. {$ENDIF}
  2015. {$ENDIF}
  2016. function lineAddToConference; external TapiDll name 'lineAddToConference';
  2017. {$IFDEF TAPI20}
  2018. function lineAgentSpecific; external TapiDll name 'lineAgentSpecific';
  2019. {$ENDIF}
  2020. function lineAnswer; external TapiDll name 'lineAnswer';
  2021. {$IFNDEF TAPI10}
  2022. function lineBlindTransferA; external TapiDll name 'lineBlindTransferA';
  2023. function lineBlindTransferW; external TapiDll name 'lineBlindTransferW';
  2024. function lineBlindTransfer; external TapiDll name 'lineBlindTransferA';
  2025. {$ELSE}
  2026. function lineBlindTransfer; external TapiDll name 'lineBlindTransfer';
  2027. {$IFDEF WIN32}
  2028. function lineBlindTransferA; external TapiDll name 'lineBlindTransferA';
  2029. function lineBlindTransferW; external TapiDll name 'lineBlindTransferW';
  2030. {$ENDIF}
  2031. {$ENDIF}
  2032. function lineClose; external TapiDll name 'lineClose';
  2033. function lineCompleteCall; external TapiDll name 'lineCompleteCall';
  2034. function lineCompleteTransfer; external TapiDll name 'lineCompleteTransfer';
  2035. {$IFNDEF TAPI10}
  2036. function lineConfigDialogA; external TapiDll name 'lineConfigDialogA';
  2037. function lineConfigDialogW; external TapiDll name 'lineConfigDialogW';
  2038. function lineConfigDialog; external TapiDll name 'lineConfigDialogA';
  2039. {$ELSE}
  2040. function lineConfigDialog; external TapiDll name 'lineConfigDialog';
  2041. {$IFDEF WIN32}
  2042. function lineConfigDialogA; external TapiDll name 'lineConfigDialogA';
  2043. function lineConfigDialogW; external TapiDll name 'lineConfigDialogW';
  2044. {$ENDIF}
  2045. {$ENDIF}
  2046. {$IFNDEF TAPI10}
  2047. function lineConfigDialogEditA; external TapiDll name 'lineConfigDialogEditA';
  2048. function lineConfigDialogEditW; external TapiDll name 'lineConfigDialogEditW';
  2049. function lineConfigDialogEdit; external TapiDll name 'lineConfigDialogEditA';
  2050. {$ELSE}
  2051. function lineConfigDialogEdit; external TapiDll name 'lineConfigDialogEdit';
  2052. {$IFDEF WIN32}
  2053. function lineConfigDialogEditA; external TapiDll name 'lineConfigDialogEditA';
  2054. function lineConfigDialogEditW; external TapiDll name 'lineConfigDialogEditW';
  2055. {$ENDIF}
  2056. {$ENDIF}
  2057. function lineConfigProvider; external TapiDll name 'lineConfigProvider';
  2058. {$IFDEF TAPI22}
  2059. function lineCreateAgentA; external TapiDll name 'lineCreateAgentA';
  2060. function lineCreateAgentW; external TapiDll name 'lineCreateAgentW';
  2061. function lineCreateAgent; external TapiDll name 'lineCreateAgentA';
  2062. function lineCreateAgentSessionA; external TapiDll name 'lineCreateAgentSessionA';
  2063. function lineCreateAgentSessionW; external TapiDll name 'lineCreateAgentSessionW';
  2064. function lineCreateAgentSession; external TapiDll name 'lineCreateAgentSessionA';
  2065. {$ENDIF}
  2066. function lineDeallocateCall; external TapiDll name 'lineDeallocateCall';
  2067. function lineDevSpecific; external TapiDll name 'lineDevSpecific';
  2068. function lineDevSpecificFeature; external TapiDll name 'lineDevSpecificFeature';
  2069. {$IFNDEF TAPI10}
  2070. function lineDialA; external TapiDll name 'lineDialA';
  2071. function lineDialW; external TapiDll name 'lineDialW';
  2072. function lineDial; external TapiDll name 'lineDialA';
  2073. {$ELSE}
  2074. function lineDial; external TapiDll name 'lineDial';
  2075. {$IFDEF WIN32}
  2076. function lineDialA; external TapiDll name 'lineDialA';
  2077. function lineDialW; external TapiDll name 'lineDialW';
  2078. {$ENDIF}
  2079. {$ENDIF}
  2080. function lineDrop; external TapiDll name 'lineDrop';
  2081. {$IFNDEF TAPI10}
  2082. function lineForwardA; external TapiDll name 'lineForwardA';
  2083. function lineForwardW; external TapiDll name 'lineForwardW';
  2084. function lineForward; external TapiDll name 'lineForwardA';
  2085. {$ELSE}
  2086. function lineForward; external TapiDll name 'lineForward';
  2087. {$IFDEF WIN32}
  2088. function lineForwardA; external TapiDll name 'lineForwardA';
  2089. function lineForwardW; external TapiDll name 'lineForwardW';
  2090. {$ENDIF}
  2091. {$ENDIF}
  2092. {$IFNDEF TAPI10}
  2093. function lineGatherDigitsA; external TapiDll name 'lineGatherDigitsA';
  2094. function lineGatherDigitsW; external TapiDll name 'lineGatherDigitsW';
  2095. function lineGatherDigits; external TapiDll name 'lineGatherDigitsA';
  2096. {$ELSE}
  2097. function lineGatherDigits; external TapiDll name 'lineGatherDigits';
  2098. {$IFDEF WIN32}
  2099. function lineGatherDigitsA; external TapiDll name 'lineGatherDigitsA';
  2100. function lineGatherDigitsW; external TapiDll name 'lineGatherDigitsW';
  2101. {$ENDIF}
  2102. {$ENDIF}
  2103. {$IFNDEF TAPI10}
  2104. function lineGenerateDigitsA; external TapiDll name 'lineGenerateDigitsA';
  2105. function lineGenerateDigitsW; external TapiDll name 'lineGenerateDigitsW';
  2106. function lineGenerateDigits; external TapiDll name 'lineGenerateDigitsA';
  2107. {$ELSE}
  2108. function lineGenerateDigits; external TapiDll name 'lineGenerateDigits';
  2109. {$IFDEF WIN32}
  2110. function lineGenerateDigitsA; external TapiDll name 'lineGenerateDigitsA';
  2111. function lineGenerateDigitsW; external TapiDll name 'lineGenerateDigitsW';
  2112. {$ENDIF}
  2113. {$ENDIF}
  2114. function lineGenerateTone; external TapiDll name 'lineGenerateTone';
  2115. {$IFNDEF TAPI10}
  2116. function lineGetAddressCapsA; external TapiDll name 'lineGetAddressCapsA';
  2117. function lineGetAddressCapsW; external TapiDll name 'lineGetAddressCapsW';
  2118. function lineGetAddressCaps; external TapiDll name 'lineGetAddressCapsA';
  2119. {$ELSE}
  2120. function lineGetAddressCaps; external TapiDll name 'lineGetAddressCaps';
  2121. {$IFDEF WIN32}
  2122. function lineGetAddressCapsA; external TapiDll name 'lineGetAddressCapsA';
  2123. function lineGetAddressCapsW; external TapiDll name 'lineGetAddressCapsW';
  2124. {$ENDIF}
  2125. {$ENDIF}
  2126. {$IFNDEF TAPI10}
  2127. function lineGetAddressIDA; external TapiDll name 'lineGetAddressIDA';
  2128. function lineGetAddressIDW; external TapiDll name 'lineGetAddressIDW';
  2129. function lineGetAddressID; external TapiDll name 'lineGetAddressIDA';
  2130. {$ELSE}
  2131. function lineGetAddressID; external TapiDll name 'lineGetAddressID';
  2132. {$IFDEF WIN32}
  2133. function lineGetAddressIDA; external TapiDll name 'lineGetAddressIDA';
  2134. function lineGetAddressIDW; external TapiDll name 'lineGetAddressIDW';
  2135. {$ENDIF}
  2136. {$ENDIF}
  2137. function lineGetAddressStatusA; external TapiDll name 'lineGetAddressStatusA';
  2138. function lineGetAddressStatusW; external TapiDll name 'lineGetAddressStatusW';
  2139. function lineGetAddressStatus; external TapiDll name 'lineGetAddressStatusA';
  2140. {$IFDEF TAPI20}
  2141. function lineGetAgentActivityListA; external TapiDll name 'lineGetAgentActivityListA';
  2142. function lineGetAgentActivityListW; external TapiDll name 'lineGetAgentActivityListW';
  2143. function lineGetAgentActivityList; external TapiDll name 'lineGetAgentActivityListA';
  2144. function lineGetAgentCapsA; external TapiDll name 'lineGetAgentCapsA';
  2145. function lineGetAgentCapsW; external TapiDll name 'lineGetAgentCapsW';
  2146. function lineGetAgentCaps; external TapiDll name 'lineGetAgentCapsA';
  2147. function lineGetAgentGroupListA; external TapiDll name 'lineGetAgentGroupListA';
  2148. function lineGetAgentGroupListW; external TapiDll name 'lineGetAgentGroupListW';
  2149. function lineGetAgentGroupList; external TapiDll name 'lineGetAgentGroupListA';
  2150. {$IFDEF TAPI22}
  2151. function lineGetAgentInfo; external TapiDll name 'lineGetAgentInfo';
  2152. function lineGetAgentSessionInfo; external TapiDll name 'lineGetAgentSessionInfo';
  2153. function lineGetAgentSessionList; external TapiDll name 'lineGetAgentSessionList';
  2154. {$ENDIF}
  2155. function lineGetAgentStatusA; external TapiDll name 'lineGetAgentStatusA';
  2156. function lineGetAgentStatusW; external TapiDll name 'lineGetAgentStatusW';
  2157. function lineGetAgentStatus; external TapiDll name 'lineGetAgentStatusA';
  2158. {$ENDIF}
  2159. {$IFNDEF TAPI10}
  2160. function lineGetAppPriorityA; external TapiDll name 'lineGetAppPriorityA';
  2161. function lineGetAppPriorityW; external TapiDll name 'lineGetAppPriorityW';
  2162. function lineGetAppPriority; external TapiDll name 'lineGetAppPriorityA';
  2163. {$ELSE}
  2164. function lineGetAppPriority; external TapiDll name 'lineGetAppPriority';
  2165. {$IFDEF WIN32}
  2166. function lineGetAppPriorityA; external TapiDll name 'lineGetAppPriorityA';
  2167. function lineGetAppPriorityW; external TapiDll name 'lineGetAppPriorityW';
  2168. {$ENDIF}
  2169. {$ENDIF}
  2170. {$IFNDEF TAPI10}
  2171. function lineGetCallInfoA; external TapiDll name 'lineGetCallInfoA';
  2172. function lineGetCallInfoW; external TapiDll name 'lineGetCallInfoW';
  2173. function lineGetCallInfo; external TapiDll name 'lineGetCallInfoA';
  2174. {$ELSE}
  2175. function lineGetCallInfo; external TapiDll name 'lineGetCallInfo';
  2176. {$IFDEF WIN32}
  2177. function lineGetCallInfoA; external TapiDll name 'lineGetCallInfoA';
  2178. function lineGetCallInfoW; external TapiDll name 'lineGetCallInfoW';
  2179. {$ENDIF}
  2180. {$ENDIF}
  2181. function lineGetCallStatus; external TapiDll name 'lineGetCallStatus';
  2182. function lineGetConfRelatedCalls; external TapiDll name 'lineGetConfRelatedCalls';
  2183. {$IFNDEF TAPI10}
  2184. function lineGetCountryA; external TapiDll name 'lineGetCountryA';
  2185. function lineGetCountryW; external TapiDll name 'lineGetCountryW';
  2186. function lineGetCountry; external TapiDll name 'lineGetCountryA';
  2187. {$ELSE}
  2188. function lineGetCountry; external TapiDll name 'lineGetCountry';
  2189. {$IFDEF WIN32}
  2190. function lineGetCountryA; external TapiDll name 'lineGetCountryA';
  2191. function lineGetCountryW; external TapiDll name 'lineGetCountryW';
  2192. {$ENDIF}
  2193. {$ENDIF}
  2194. {$IFNDEF TAPI10}
  2195. function lineGetDevCapsA; external TapiDll name 'lineGetDevCapsA';
  2196. function lineGetDevCapsW; external TapiDll name 'lineGetDevCapsW';
  2197. function lineGetDevCaps; external TapiDll name 'lineGetDevCapsA';
  2198. {$ELSE}
  2199. function lineGetDevCaps; external TapiDll name 'lineGetDevCaps';
  2200. {$IFDEF WIN32}
  2201. function lineGetDevCapsA; external TapiDll name 'lineGetDevCapsA';
  2202. function lineGetDevCapsW; external TapiDll name 'lineGetDevCapsW';
  2203. {$ENDIF}
  2204. {$ENDIF}
  2205. {$IFNDEF TAPI10}
  2206. function lineGetDevConfigA; external TapiDll name 'lineGetDevConfigA';
  2207. function lineGetDevConfigW; external TapiDll name 'lineGetDevConfigW';
  2208. function lineGetDevConfig; external TapiDll name 'lineGetDevConfigA';
  2209. {$ELSE}
  2210. function lineGetDevConfig; external TapiDll name 'lineGetDevConfig';
  2211. {$IFDEF WIN32}
  2212. function lineGetDevConfigA; external TapiDll name 'lineGetDevConfigA';
  2213. function lineGetDevConfigW; external TapiDll name 'lineGetDevConfigW';
  2214. {$ENDIF}
  2215. {$ENDIF}
  2216. {$IFDEF TAPI22}
  2217. function lineGetGroupListA; external TapiDll name 'lineGetGroupListA';
  2218. function lineGetGroupListW; external TapiDll name 'lineGetGroupListW';
  2219. function lineGetGroupList; external TapiDll name 'lineGetGroupListA';
  2220. {$ENDIF}
  2221. function lineGetNewCalls; external TapiDll name 'lineGetNewCalls';
  2222. {$IFNDEF TAPI10}
  2223. function lineGetIconA; external TapiDll name 'lineGetIconA';
  2224. function lineGetIconW; external TapiDll name 'lineGetIconW';
  2225. function lineGetIcon; external TapiDll name 'lineGetIconA';
  2226. {$ELSE}
  2227. function lineGetIcon; external TapiDll name 'lineGetIcon';
  2228. {$IFDEF WIN32}
  2229. function lineGetIconA; external TapiDll name 'lineGetIconA';
  2230. function lineGetIconW; external TapiDll name 'lineGetIconW';
  2231. {$ENDIF}
  2232. {$ENDIF}
  2233. {$IFNDEF TAPI10}
  2234. function lineGetIDA; external TapiDll name 'lineGetIDA';
  2235. function lineGetIDW; external TapiDll name 'lineGetIDW';
  2236. function lineGetID; external TapiDll name 'lineGetIDA';
  2237. {$ELSE}
  2238. function lineGetID; external TapiDll name 'lineGetID';
  2239. {$IFDEF WIN32}
  2240. function lineGetIDA; external TapiDll name 'lineGetIDA';
  2241. function lineGetIDW; external TapiDll name 'lineGetIDW';
  2242. {$ENDIF}
  2243. {$ENDIF}
  2244. {$IFNDEF TAPI10}
  2245. function lineGetLineDevStatusA; external TapiDll name 'lineGetLineDevStatusA';
  2246. function lineGetLineDevStatusW; external TapiDll name 'lineGetLineDevStatusW';
  2247. function lineGetLineDevStatus; external TapiDll name 'lineGetLineDevStatusA';
  2248. {$ELSE}
  2249. function lineGetLineDevStatus; external TapiDll name 'lineGetLineDevStatus';
  2250. {$IFDEF WIN32}
  2251. function lineGetLineDevStatusA; external TapiDll name 'lineGetLineDevStatusA';
  2252. function lineGetLineDevStatusW; external TapiDll name 'lineGetLineDevStatusW';
  2253. {$ENDIF}
  2254. {$ENDIF}
  2255. {$IFDEF TAPI20}
  2256. function lineGetMessage; external TapiDll name 'lineGetMessage';
  2257. {$ENDIF}
  2258. function lineGetNumRings; external TapiDll name 'lineGetNumRings';
  2259. {$IFNDEF TAPI10}
  2260. function lineGetProviderListA; external TapiDll name 'lineGetProviderListA';
  2261. function lineGetProviderListW; external TapiDll name 'lineGetProviderListW';
  2262. function lineGetProviderList; external TapiDll name 'lineGetProviderListA';
  2263. {$ELSE}
  2264. function lineGetProviderList; external TapiDll name 'lineGetProviderList';
  2265. {$IFDEF WIN32}
  2266. function lineGetProviderListA; external TapiDll name 'lineGetProviderListA';
  2267. function lineGetProviderListW; external TapiDll name 'lineGetProviderListW';
  2268. {$ENDIF}
  2269. {$ENDIF}
  2270. {$IFDEF TAPI22}
  2271. function lineGetProxyStatus; external TapiDll name 'lineGetProxyStatus';
  2272. function lineGetQueueInfo; external TapiDll name 'lineGetQueueInfo';
  2273. function lineGetQueueListA; external TapiDll name 'lineGetQueueListA';
  2274. function lineGetQueueListW; external TapiDll name 'lineGetQueueListW';
  2275. function lineGetQueueList; external TapiDll name 'lineGetQueueListA';
  2276. {$ENDIF}
  2277. {$IFNDEF TAPI10}
  2278. function lineGetRequestA; external TapiDll name 'lineGetRequestA';
  2279. function lineGetRequestW; external TapiDll name 'lineGetRequestW';
  2280. function lineGetRequest; external TapiDll name 'lineGetRequestA';
  2281. {$ELSE}
  2282. function lineGetRequest; external TapiDll name 'lineGetRequest';
  2283. {$IFDEF WIN32}
  2284. function lineGetRequestA; external TapiDll name 'lineGetRequestA';
  2285. function lineGetRequestW; external TapiDll name 'lineGetRequestW';
  2286. {$ENDIF}
  2287. {$ENDIF}
  2288. function lineGetStatusMessages; external TapiDll name 'lineGetStatusMessages';
  2289. {$IFNDEF TAPI10}
  2290. function lineGetTranslateCapsA; external TapiDll name 'lineGetTranslateCapsA';
  2291. function lineGetTranslateCapsW; external TapiDll name 'lineGetTranslateCapsW';
  2292. function lineGetTranslateCaps; external TapiDll name 'lineGetTranslateCapsA';
  2293. {$ELSE}
  2294. function lineGetTranslateCaps; external TapiDll name 'lineGetTranslateCaps';
  2295. {$IFDEF WIN32}
  2296. function lineGetTranslateCapsA; external TapiDll name 'lineGetTranslateCapsA';
  2297. function lineGetTranslateCapsW; external TapiDll name 'lineGetTranslateCapsW';
  2298. {$ENDIF}
  2299. {$ENDIF}
  2300. {$IFNDEF TAPI10}
  2301. function lineHandoffA; external TapiDll name 'lineHandoffA';
  2302. function lineHandoffW; external TapiDll name 'lineHandoffW';
  2303. function lineHandoff; external TapiDll name 'lineHandoffA';
  2304. {$ELSE}
  2305. function lineHandoff; external TapiDll name 'lineHandoff';
  2306. {$IFDEF WIN32}
  2307. function lineHandoffA; external TapiDll name 'lineHandoffA';
  2308. function lineHandoffW; external TapiDll name 'lineHandoffW';
  2309. {$ENDIF}
  2310. {$ENDIF}
  2311. function lineHold; external TapiDll name 'lineHold';
  2312. function lineInitialize; external TapiDll name 'lineInitialize';
  2313. {$IFDEF TAPI20}
  2314. function lineInitializeExA; external TapiDll name 'lineInitializeExA';
  2315. function lineInitializeExW; external TapiDll name 'lineInitializeExW';
  2316. function lineInitializeEx; external TapiDll name 'lineInitializeExA';
  2317. {$ENDIF}
  2318. {$IFNDEF TAPI10}
  2319. function lineMakeCallA; external TapiDll name 'lineMakeCallA';
  2320. function lineMakeCallW; external TapiDll name 'lineMakeCallW';
  2321. function lineMakeCall; external TapiDll name 'lineMakeCallA';
  2322. {$ELSE}
  2323. function lineMakeCall; external TapiDll name 'lineMakeCall';
  2324. {$IFDEF WIN32}
  2325. function lineMakeCallA; external TapiDll name 'lineMakeCallA';
  2326. function lineMakeCallW; external TapiDll name 'lineMakeCallW';
  2327. {$ENDIF}
  2328. {$ENDIF}
  2329. function lineMonitorDigits; external TapiDll name 'lineMonitorDigits';
  2330. function lineMonitorMedia; external TapiDll name 'lineMonitorMedia';
  2331. function lineMonitorTones; external TapiDll name 'lineMonitorTones';
  2332. function lineNegotiateAPIVersion; external TapiDll name 'lineNegotiateAPIVersion';
  2333. function lineNegotiateExtVersion; external TapiDll name 'lineNegotiateExtVersion';
  2334. {$IFNDEF TAPI10}
  2335. function lineOpenA; external TapiDll name 'lineOpenA';
  2336. function lineOpenW; external TapiDll name 'lineOpenW';
  2337. function lineOpen; external TapiDll name 'lineOpenA';
  2338. {$ELSE}
  2339. function lineOpen; external TapiDll name 'lineOpen';
  2340. {$IFDEF WIN32}
  2341. function lineOpenA; external TapiDll name 'lineOpenA';
  2342. function lineOpenW; external TapiDll name 'lineOpenW';
  2343. {$ENDIF}
  2344. {$ENDIF}
  2345. {$IFNDEF TAPI10}
  2346. function lineParkA; external TapiDll name 'lineParkA';
  2347. function lineParkW; external TapiDll name 'lineParkW';
  2348. function linePark; external TapiDll name 'lineParkA';
  2349. {$ELSE}
  2350. function linePark; external TapiDll name 'linePark';
  2351. {$IFDEF WIN32}
  2352. function lineParkA; external TapiDll name 'lineParkA';
  2353. function lineParkW; external TapiDll name 'lineParkW';
  2354. {$ENDIF}
  2355. {$ENDIF}
  2356. {$IFNDEF TAPI10}
  2357. function linePickupA; external TapiDll name 'linePickupA';
  2358. function linePickupW; external TapiDll name 'linePickupW';
  2359. function linePickup; external TapiDll name 'linePickupA';
  2360. {$ELSE}
  2361. function linePickup; external TapiDll name 'linePickup';
  2362. {$IFDEF WIN32}
  2363. function linePickupA; external TapiDll name 'linePickupA';
  2364. function linePickupW; external TapiDll name 'linePickupW';
  2365. {$ENDIF}
  2366. {$ENDIF}
  2367. {$IFNDEF TAPI10}
  2368. function linePrepareAddToConferenceA; external TapiDll name 'linePrepareAddToConferenceA';
  2369. function linePrepareAddToConferenceW; external TapiDll name 'linePrepareAddToConferenceW';
  2370. function linePrepareAddToConference; external TapiDll name 'linePrepareAddToConferenceA';
  2371. {$ELSE}
  2372. function linePrepareAddToConference; external TapiDll name 'linePrepareAddToConference';
  2373. {$IFDEF WIN32}
  2374. function linePrepareAddToConferenceA; external TapiDll name 'linePrepareAddToConferenceA';
  2375. function linePrepareAddToConferenceW; external TapiDll name 'linePrepareAddToConferenceW';
  2376. {$ENDIF}
  2377. {$ENDIF}
  2378. {$IFDEF TAPI20}
  2379. function lineProxyMessage; external TapiDll name 'lineProxyMessage';
  2380. function lineProxyResponse; external TapiDll name 'lineProxyResponse';
  2381. {$ENDIF}
  2382. {$IFNDEF TAPI10}
  2383. function lineRedirectA; external TapiDll name 'lineRedirectA';
  2384. function lineRedirectW; external TapiDll name 'lineRedirectW';
  2385. function lineRedirect; external TapiDll name 'lineRedirectA';
  2386. {$ELSE}
  2387. function lineRedirect; external TapiDll name 'lineRedirect';
  2388. {$IFDEF WIN32}
  2389. function lineRedirectA; external TapiDll name 'lineRedirectA';
  2390. function lineRedirectW; external TapiDll name 'lineRedirectW';
  2391. {$ENDIF}
  2392. {$ENDIF}
  2393. function lineRegisterRequestRecipient; external TapiDll name 'lineRegisterRequestRecipient';
  2394. function lineReleaseUserUserInfo; external TapiDll name 'lineReleaseUserUserInfo';
  2395. function lineRemoveFromConference; external TapiDll name 'lineRemoveFromConference';
  2396. function lineRemoveProvider; external TapiDll name 'lineRemoveProvider';
  2397. function lineSecureCall; external TapiDll name 'lineSecureCall';
  2398. function lineSendUserUserInfo; external TapiDll name 'lineSendUserUserInfo';
  2399. {$IFDEF TAPI20}
  2400. function lineSetAgentActivity; external TapiDll name 'lineSetAgentActivity';
  2401. function lineSetAgentGroup; external TapiDll name 'lineSetAgentGroup';
  2402. {$IFDEF TAPI22}
  2403. function lineSetAgentMeasurementPeriod; external TapiDll name 'lineSetAgentMeasurementPeriod';
  2404. function lineSetAgentSessionState; external TapiDll name 'lineSetAgentSessionState';
  2405. function lineSetAgentStateEx; external TapiDll name 'lineSetAgentStateEx';
  2406. {$ENDIF}
  2407. function lineSetAgentState; external TapiDll name 'lineSetAgentState';
  2408. {$ENDIF}
  2409. {$IFNDEF TAPI10}
  2410. function lineSetAppPriorityA; external TapiDll name 'lineSetAppPriorityA';
  2411. function lineSetAppPriorityW; external TapiDll name 'lineSetAppPriorityW';
  2412. function lineSetAppPriority; external TapiDll name 'lineSetAppPriorityA';
  2413. {$ELSE}
  2414. function lineSetAppPriority; external TapiDll name 'lineSetAppPriority';
  2415. {$IFDEF WIN32}
  2416. function lineSetAppPriorityA; external TapiDll name 'lineSetAppPriorityA';
  2417. function lineSetAppPriorityW; external TapiDll name 'lineSetAppPriorityW';
  2418. {$ENDIF}
  2419. {$ENDIF}
  2420. function lineSetAppSpecific; external TapiDll name 'lineSetAppSpecific';
  2421. {$IFDEF TAPI20}
  2422. function lineSetCallData; external TapiDll name 'lineSetCallData';
  2423. {$ENDIF}
  2424. function lineSetCallParams; external TapiDll name 'lineSetCallParams';
  2425. function lineSetCallPrivilege; external TapiDll name 'lineSetCallPrivilege';
  2426. {$IFDEF TAPI20}
  2427. function lineSetCallQualityOfService; external TapiDll name 'lineSetCallQualityOfService';
  2428. function lineSetCallTreatment; external TapiDll name 'lineSetCallTreatment';
  2429. {$ENDIF}
  2430. function lineSetCurrentLocation; external TapiDll name 'lineSetCurrentLocation';
  2431. {$IFNDEF TAPI10}
  2432. function lineSetDevConfigA; external TapiDll name 'lineSetDevConfigA';
  2433. function lineSetDevConfigW; external TapiDll name 'lineSetDevConfigW';
  2434. function lineSetDevConfig; external TapiDll name 'lineSetDevConfigA';
  2435. {$ELSE}
  2436. function lineSetDevConfig; external TapiDll name 'lineSetDevConfig';
  2437. {$IFDEF WIN32}
  2438. function lineSetDevConfigA; external TapiDll name 'lineSetDevConfigA';
  2439. function lineSetDevConfigW; external TapiDll name 'lineSetDevConfigW';
  2440. {$ENDIF}
  2441. {$ENDIF}
  2442. {$IFDEF TAPI20}
  2443. function lineSetLineDevStatus; external TapiDll name 'lineSetLineDevStatus';
  2444. {$ENDIF}
  2445. function lineSetMediaControl; external TapiDll name 'lineSetMediaControl';
  2446. function lineSetMediaMode; external TapiDll name 'lineSetMediaMode';
  2447. {$IFDEF TAPI22}
  2448. function lineSetQueueMeasurementPeriod; external TapiDll name 'lineSetQueueMeasurementPeriod';
  2449. {$ENDIF}
  2450. function lineSetNumRings; external TapiDll name 'lineSetNumRings';
  2451. function lineSetStatusMessages; external TapiDll name 'lineSetStatusMessages';
  2452. function lineSetTerminal; external TapiDll name 'lineSetTerminal';
  2453. {$IFNDEF TAPI10}
  2454. function lineSetTollListA; external TapiDll name 'lineSetTollListA';
  2455. function lineSetTollListW; external TapiDll name 'lineSetTollListW';
  2456. function lineSetTollList; external TapiDll name 'lineSetTollListA';
  2457. {$ELSE}
  2458. function lineSetTollList; external TapiDll name 'lineSetTollList';
  2459. {$IFDEF WIN32}
  2460. function lineSetTollListA; external TapiDll name 'lineSetTollListA';
  2461. function lineSetTollListW; external TapiDll name 'lineSetTollListW';
  2462. {$ENDIF}
  2463. {$ENDIF}
  2464. {$IFNDEF TAPI10}
  2465. function lineSetupConferenceA; external TapiDll name 'lineSetupConferenceA';
  2466. function lineSetupConferenceW; external TapiDll name 'lineSetupConferenceW';
  2467. function lineSetupConference; external TapiDll name 'lineSetupConferenceA';
  2468. {$ELSE}
  2469. function lineSetupConference; external TapiDll name 'lineSetupConference';
  2470. {$IFDEF WIN32}
  2471. function lineSetupConferenceA; external TapiDll name 'lineSetupConferenceA';
  2472. function lineSetupConferenceW; external TapiDll name 'lineSetupConferenceW';
  2473. {$ENDIF}
  2474. {$ENDIF}
  2475. {$IFNDEF TAPI10}
  2476. function lineSetupTransferA; external TapiDll name 'lineSetupTransferA';
  2477. function lineSetupTransferW; external TapiDll name 'lineSetupTransferW';
  2478. function lineSetupTransfer; external TapiDll name 'lineSetupTransferA';
  2479. {$ELSE}
  2480. function lineSetupTransfer; external TapiDll name 'lineSetupTransfer';
  2481. {$IFDEF WIN32}
  2482. function lineSetupTransferA; external TapiDll name 'lineSetupTransferA';
  2483. function lineSetupTransferW; external TapiDll name 'lineSetupTransferW';
  2484. {$ENDIF}
  2485. {$ENDIF}
  2486. function lineShutdown; external TapiDll name 'lineShutdown';
  2487. function lineSwapHold; external TapiDll name 'lineSwapHold';
  2488. {$IFNDEF TAPI10}
  2489. function lineTranslateAddressA; external TapiDll name 'lineTranslateAddressA';
  2490. function lineTranslateAddressW; external TapiDll name 'lineTranslateAddressW';
  2491. function lineTranslateAddress; external TapiDll name 'lineTranslateAddressA';
  2492. {$ELSE}
  2493. function lineTranslateAddress; external TapiDll name 'lineTranslateAddress';
  2494. {$IFDEF WIN32}
  2495. function lineTranslateAddressA; external TapiDll name 'lineTranslateAddressA';
  2496. function lineTranslateAddressW; external TapiDll name 'lineTranslateAddressW';
  2497. {$ENDIF}
  2498. {$ENDIF}
  2499. {$IFNDEF TAPI10}
  2500. function lineTranslateDialogA; external TapiDll name 'lineTranslateDialogA';
  2501. function lineTranslateDialogW; external TapiDll name 'lineTranslateDialogW';
  2502. function lineTranslateDialog; external TapiDll name 'lineTranslateDialogA';
  2503. {$ELSE}
  2504. function lineTranslateDialog; external TapiDll name 'lineTranslateDialog';
  2505. {$IFDEF WIN32}
  2506. function lineTranslateDialogA; external TapiDll name 'lineTranslateDialogA';
  2507. function lineTranslateDialogW; external TapiDll name 'lineTranslateDialogW';
  2508. {$ENDIF}
  2509. {$ENDIF}
  2510. function lineUncompleteCall; external TapiDll name 'lineUncompleteCall';
  2511. function lineUnhold; external TapiDll name 'lineUnhold';
  2512. {$IFNDEF TAPI10}
  2513. function lineUnparkA; external TapiDll name 'lineUnparkA';
  2514. function lineUnparkW; external TapiDll name 'lineUnparkW';
  2515. function lineUnpark; external TapiDll name 'lineUnparkA';
  2516. {$ELSE}
  2517. function lineUnpark; external TapiDll name 'lineUnpark'
  2518. {$IFDEF WIN32}
  2519. function lineUnparkA; external TapiDll name 'lineUnparkA'
  2520. function lineUnparkW; external TapiDll name 'lineUnparkW'
  2521. {$ENDIF}
  2522. {$ENDIF}
  2523. function phoneClose; external TapiDll name 'phoneClose';
  2524. {$IFNDEF TAPI10}
  2525. function phoneConfigDialogA; external TapiDll name 'phoneConfigDialogA';
  2526. function phoneConfigDialogW; external TapiDll name 'phoneConfigDialogW';
  2527. function phoneConfigDialog; external TapiDll name 'phoneConfigDialogA';
  2528. {$ELSE}
  2529. function phoneConfigDialog; external TapiDll name 'phoneConfigDialog';
  2530. {$IFDEF WIN32}
  2531. function phoneConfigDialogA; external TapiDll name 'phoneConfigDialogA';
  2532. function phoneConfigDialogW; external TapiDll name 'phoneConfigDialogW';
  2533. {$ENDIF}
  2534. {$ENDIF}
  2535. function phoneDevSpecific; external TapiDll name 'phoneDevSpecific';
  2536. {$IFNDEF TAPI10}
  2537. function phoneGetButtonInfoA; external TapiDll name 'phoneGetButtonInfoA';
  2538. function phoneGetButtonInfoW; external TapiDll name 'phoneGetButtonInfoW';
  2539. function phoneGetButtonInfo; external TapiDll name 'phoneGetButtonInfoA';
  2540. {$ELSE}
  2541. function phoneGetButtonInfo; external TapiDll name 'phoneGetButtonInfo';
  2542. {$IFDEF WIN32}
  2543. function phoneGetButtonInfoA; external TapiDll name 'phoneGetButtonInfoA';
  2544. function phoneGetButtonInfoW; external TapiDll name 'phoneGetButtonInfoW';
  2545. {$ENDIF}
  2546. {$ENDIF}
  2547. function phoneGetData; external TapiDll name 'phoneGetData';
  2548. {$IFNDEF TAPI10}
  2549. function phoneGetDevCapsA; external TapiDll name 'phoneGetDevCapsA';
  2550. function phoneGetDevCapsW; external TapiDll name 'phoneGetDevCapsW';
  2551. function phoneGetDevCaps; external TapiDll name 'phoneGetDevCapsA';
  2552. {$ELSE}
  2553. function phoneGetDevCaps; external TapiDll name 'phoneGetDevCaps';
  2554. {$IFDEF WIN32}
  2555. function phoneGetDevCapsA; external TapiDll name 'phoneGetDevCapsA';
  2556. function phoneGetDevCapsW; external TapiDll name 'phoneGetDevCapsW';
  2557. {$ENDIF}
  2558. {$ENDIF}
  2559. function phoneGetDisplay; external TapiDll name 'phoneGetDisplay';
  2560. function phoneGetGain; external TapiDll name 'phoneGetGain';
  2561. function phoneGetHookSwitch; external TapiDll name 'phoneGetHookSwitch';
  2562. {$IFNDEF TAPI10}
  2563. function phoneGetIconA; external TapiDll name 'phoneGetIconA';
  2564. function phoneGetIconW; external TapiDll name 'phoneGetIconW';
  2565. function phoneGetIcon; external TapiDll name 'phoneGetIconA';
  2566. {$ELSE}
  2567. function phoneGetIcon; external TapiDll name 'phoneGetIcon';
  2568. {$IFDEF WIN32}
  2569. function phoneGetIconA; external TapiDll name 'phoneGetIconA';
  2570. function phoneGetIconW; external TapiDll name 'phoneGetIconW';
  2571. {$ENDIF}
  2572. {$ENDIF}
  2573. {$IFNDEF TAPI10}
  2574. function phoneGetIDA; external TapiDll name 'phoneGetIDA';
  2575. function phoneGetIDW; external TapiDll name 'phoneGetIDW';
  2576. function phoneGetID; external TapiDll name 'phoneGetIDA';
  2577. {$ELSE}
  2578. function phoneGetID; external TapiDll name 'phoneGetID';
  2579. {$IFDEF WIN32}
  2580. function phoneGetIDA; external TapiDll name 'phoneGetIDA';
  2581. function phoneGetIDW; external TapiDll name 'phoneGetIDW';
  2582. {$ENDIF}
  2583. {$ENDIF}
  2584. function phoneGetLamp; external TapiDll name 'phoneGetLamp';
  2585. {$IFDEF TAPI20}
  2586. function phoneGetMessage; external TapiDll name 'phoneGetMessage';
  2587. {$ENDIF}
  2588. function phoneGetRing; external TapiDll name 'phoneGetRing';
  2589. {$IFNDEF TAPI10}
  2590. function phoneGetStatusA; external TapiDll name 'phoneGetStatusA';
  2591. function phoneGetStatusW; external TapiDll name 'phoneGetStatusW';
  2592. function phoneGetStatus; external TapiDll name 'phoneGetStatusA';
  2593. {$ELSE}
  2594. function phoneGetStatus; external TapiDll name 'phoneGetStatus';
  2595. {$IFDEF WIN32}
  2596. function phoneGetStatusA; external TapiDll name 'phoneGetStatusA';
  2597. function phoneGetStatusW; external TapiDll name 'phoneGetStatusW';
  2598. {$ENDIF}
  2599. {$ENDIF}
  2600. function phoneGetStatusMessages; external TapiDll name 'phoneGetStatusMessages';
  2601. function phoneGetVolume; external TapiDll name 'phoneGetVolume';
  2602. function phoneInitialize; external TapiDll name 'phoneInitialize';
  2603. {$IFDEF TAPI20}
  2604. function phoneInitializeExA; external TapiDll name 'phoneInitializeExA';
  2605. function phoneInitializeExW; external TapiDll name 'phoneInitializeExW';
  2606. function phoneInitializeEx; external TapiDll name 'phoneInitializeExA';
  2607. {$ENDIF}
  2608. function phoneNegotiateAPIVersion; external TapiDll name 'phoneNegotiateAPIVersion';
  2609. function phoneNegotiateExtVersion; external TapiDll name 'phoneNegotiateExtVersion';
  2610. function phoneOpen; external TapiDll name 'phoneOpen';
  2611. {$IFNDEF TAPI10}
  2612. function phoneSetButtonInfoA; external TapiDll name 'phoneSetButtonInfoA';
  2613. function phoneSetButtonInfoW; external TapiDll name 'phoneSetButtonInfoW';
  2614. function phoneSetButtonInfo; external TapiDll name 'phoneSetButtonInfoA';
  2615. {$ELSE}
  2616. function phoneSetButtonInfo; external TapiDll name 'phoneSetButtonInfo';
  2617. {$IFDEF WIN32}
  2618. function phoneSetButtonInfoA; external TapiDll name 'phoneSetButtonInfoA';
  2619. function phoneSetButtonInfoW; external TapiDll name 'phoneSetButtonInfoW';
  2620. {$ENDIF}
  2621. {$ENDIF}
  2622. function phoneSetData; external TapiDll name 'phoneSetData';
  2623. function phoneSetDisplay; external TapiDll name 'phoneSetDisplay';
  2624. function phoneSetGain; external TapiDll name 'phoneSetGain';
  2625. function phoneSetHookSwitch; external TapiDll name 'phoneSetHookSwitch';
  2626. function phoneSetLamp; external TapiDll name 'phoneSetLamp';
  2627. function phoneSetRing; external TapiDll name 'phoneSetRing';
  2628. function phoneSetStatusMessages; external TapiDll name 'phoneSetStatusMessages';
  2629. function phoneSetVolume; external TapiDll name 'phoneSetVolume';
  2630. function phoneShutdown; external TapiDll name 'phoneShutdown';
  2631. {$IFNDEF TAPI10}
  2632. function tapiGetLocationInfoA; external TapiDll name 'tapiGetLocationInfoA';
  2633. function tapiGetLocationInfoW; external TapiDll name 'tapiGetLocationInfoW';
  2634. function tapiGetLocationInfo; external TapiDll name 'tapiGetLocationInfoA';
  2635. {$ELSE}
  2636. function tapiGetLocationInfo; external TapiDll name 'tapiGetLocationInfo';
  2637. {$IFDEF WIN32}
  2638. function tapiGetLocationInfoA; external TapiDll name 'tapiGetLocationInfoA';
  2639. function tapiGetLocationInfoW; external TapiDll name 'tapiGetLocationInfoW';
  2640. {$ENDIF}
  2641. {$ENDIF}
  2642. function tapiRequestDrop; external TapiDll name 'tapiRequestDrop';
  2643. {$IFNDEF TAPI10}
  2644. function tapiRequestMakeCallA; external TapiDll name 'tapiRequestMakeCallA';
  2645. function tapiRequestMakeCallW; external TapiDll name 'tapiRequestMakeCallW';
  2646. function tapiRequestMakeCall; external TapiDll name 'tapiRequestMakeCallA';
  2647. {$ELSE}
  2648. function tapiRequestMakeCall; external TapiDll name 'tapiRequestMakeCall';
  2649. {$IFDEF WIN32}
  2650. function tapiRequestMakeCallA; external TapiDll name 'tapiRequestMakeCallA';
  2651. function tapiRequestMakeCallW; external TapiDll name 'tapiRequestMakeCallW';
  2652. {$ENDIF}
  2653. {$ENDIF}
  2654. {$IFNDEF TAPI10}
  2655. function tapiRequestMediaCallA; external TapiDll name 'tapiRequestMediaCallA';
  2656. function tapiRequestMediaCallW; external TapiDll name 'tapiRequestMediaCallW';
  2657. function tapiRequestMediaCall; external TapiDll name 'tapiRequestMediaCallA';
  2658. {$ELSE}
  2659. function tapiRequestMediaCall; external TapiDll name 'tapiRequestMediaCall';
  2660. {$IFDEF WIN32}
  2661. function tapiRequestMediaCallA; external TapiDll name 'tapiRequestMediaCallA';
  2662. function tapiRequestMediaCallW; external TapiDll name 'tapiRequestMediaCallW';
  2663. {$ENDIF}
  2664. {$ENDIF}
  2665. function TAPIERROR_FORMATMESSAGE(ErrCode: DWORD): Longint;
  2666. begin
  2667.   if ErrCode > $FFFF0000 then
  2668.     Result := ErrCode and $0000FFFF
  2669.   else begin
  2670.     if ErrCode and $10000000 <> 0 then
  2671.       Result := ErrCode - $90000000 + $0000F000
  2672.     else
  2673.       Result := ErrCode - $80000000 + $0000E000;
  2674.   end;
  2675. end;
  2676. function TapiErrorFormatMessage(ErrCode: DWORD): Longint;
  2677. begin
  2678.   if ErrCode > $FFFF0000 then
  2679.     Result := ErrCode and $0000FFFF
  2680.   else begin
  2681.     if ErrCode and $10000000 <> 0 then
  2682.       Result := ErrCode - $90000000 + $0000F000
  2683.     else
  2684.       Result := ErrCode - $80000000 + $0000E000;
  2685.   end;
  2686. end;
  2687. end.