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

TAPI编程

开发平台:

Delphi

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