Tapi.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:171k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #define lineConfigDialogEdit lineConfigDialogEditA
  2. #endif
  3. #endif
  4. #endif
  5. LONG
  6. WINAPI
  7. lineConfigProvider(                                             // TAPI v1.4
  8.     HWND                hwndOwner,
  9.     DWORD               dwPermanentProviderID
  10.     );
  11. #if (TAPI_CURRENT_VERSION >= 0x00020002)
  12. LONG
  13. WINAPI
  14. lineCreateAgentW(                                               // TAPI v2.2
  15.     HLINE               hLine,
  16.     LPWSTR              lpszAgentID,
  17.     LPWSTR              lpszAgentPIN,
  18.     LPHAGENT            lphAgent
  19.     );
  20. LONG
  21. WINAPI
  22. lineCreateAgentA(                                               // TAPI v2.2
  23.     HLINE               hLine,
  24.     LPSTR               lpszAgentID,
  25.     LPSTR               lpszAgentPIN,
  26.     LPHAGENT            lphAgent
  27.     );
  28. #ifdef UNICODE
  29. #define lineCreateAgent lineCreateAgentW
  30. #else
  31. #define lineCreateAgent lineCreateAgentA
  32. #endif
  33. LONG
  34. WINAPI
  35. lineCreateAgentSessionW(                                        // TAPI v2.2
  36.     HLINE               hLine,
  37.     HAGENT              hAgent,
  38.     LPWSTR              lpszAgentPIN,
  39.     DWORD               dwWorkingAddressID,
  40.     LPGUID              lpGroupID,
  41.     LPHAGENTSESSION     lphAgentSession
  42.     );
  43. LONG
  44. WINAPI
  45. lineCreateAgentSessionA(                                        // TAPI v2.2
  46.     HLINE               hLine,
  47.     HAGENT              hAgent,
  48.     LPSTR               lpszAgentPIN,
  49.     DWORD               dwWorkingAddressID,
  50.     LPGUID              lpGroupID,
  51.     LPHAGENTSESSION     lphAgentSession
  52.     );
  53. #ifdef UNICODE
  54. #define lineCreateAgent lineCreateAgentW
  55. #else
  56. #define lineCreateAgent lineCreateAgentA
  57. #endif
  58. #endif
  59. LONG
  60. WINAPI
  61. lineDeallocateCall(
  62.     HCALL               hCall
  63.     );
  64. LONG
  65. WINAPI
  66. lineDevSpecific(
  67.     HLINE               hLine,
  68.     DWORD               dwAddressID,
  69.     HCALL               hCall,
  70.     LPVOID              lpParams,
  71.     DWORD               dwSize
  72.     );
  73. LONG
  74. WINAPI
  75. lineDevSpecificFeature(
  76.     HLINE               hLine,
  77.     DWORD               dwFeature,
  78.     LPVOID              lpParams,
  79.     DWORD               dwSize
  80.     );
  81. LONG
  82. WINAPI
  83. lineDial(
  84.     HCALL               hCall,
  85.     LPCSTR              lpszDestAddress,
  86.     DWORD               dwCountryCode
  87.     );
  88. #if WIN32
  89. LONG
  90. WINAPI
  91. lineDialA(
  92.     HCALL               hCall,
  93.     LPCSTR              lpszDestAddress,
  94.     DWORD               dwCountryCode
  95.     );
  96. LONG
  97. WINAPI
  98. lineDialW(
  99.     HCALL               hCall,
  100.     LPCWSTR             lpszDestAddress,
  101.     DWORD               dwCountryCode
  102.     );
  103. #ifdef UNICODE
  104. #define lineDial lineDialW
  105. #else
  106. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  107. #define lineDial lineDialA
  108. #endif
  109. #endif
  110. #endif
  111. LONG
  112. WINAPI
  113. lineDrop(
  114.     HCALL               hCall,
  115.     LPCSTR              lpsUserUserInfo,
  116.     DWORD               dwSize
  117.     );
  118. LONG
  119. WINAPI
  120. lineForward(
  121.     HLINE               hLine,
  122.     DWORD               bAllAddresses,
  123.     DWORD               dwAddressID,
  124.     LPLINEFORWARDLIST   const lpForwardList,
  125.     DWORD               dwNumRingsNoAnswer,
  126.     LPHCALL             lphConsultCall,
  127.     LPLINECALLPARAMS    const lpCallParams
  128.     );
  129. #if WIN32
  130. LONG
  131. WINAPI
  132. lineForwardA(
  133.     HLINE               hLine,
  134.     DWORD               bAllAddresses,
  135.     DWORD               dwAddressID,
  136.     LPLINEFORWARDLIST   const lpForwardList,
  137.     DWORD               dwNumRingsNoAnswer,
  138.     LPHCALL             lphConsultCall,
  139.     LPLINECALLPARAMS    const lpCallParams
  140.     );
  141. LONG
  142. WINAPI
  143. lineForwardW(
  144.     HLINE               hLine,
  145.     DWORD               bAllAddresses,
  146.     DWORD               dwAddressID,
  147.     LPLINEFORWARDLIST   const lpForwardList,
  148.     DWORD               dwNumRingsNoAnswer,
  149.     LPHCALL             lphConsultCall,
  150.     LPLINECALLPARAMS    const lpCallParams
  151.     );
  152. #ifdef UNICODE
  153. #define lineForward lineForwardW
  154. #else
  155. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  156. #define lineForward lineForwardA
  157. #endif
  158. #endif
  159. #endif
  160. LONG
  161. WINAPI
  162. lineGatherDigits(
  163.     HCALL               hCall,
  164.     DWORD               dwDigitModes,
  165.     LPSTR               lpsDigits,
  166.     DWORD               dwNumDigits,
  167.     LPCSTR              lpszTerminationDigits,
  168.     DWORD               dwFirstDigitTimeout,
  169.     DWORD               dwInterDigitTimeout
  170.     );
  171. #if WIN32
  172. LONG
  173. WINAPI
  174. lineGatherDigitsA(
  175.     HCALL               hCall,
  176.     DWORD               dwDigitModes,
  177.     LPSTR               lpsDigits,
  178.     DWORD               dwNumDigits,
  179.     LPCSTR              lpszTerminationDigits,
  180.     DWORD               dwFirstDigitTimeout,
  181.     DWORD               dwInterDigitTimeout
  182.     );
  183. LONG
  184. WINAPI
  185. lineGatherDigitsW(
  186.     HCALL               hCall,
  187.     DWORD               dwDigitModes,
  188.     LPWSTR              lpsDigits,
  189.     DWORD               dwNumDigits,
  190.     LPCWSTR             lpszTerminationDigits,
  191.     DWORD               dwFirstDigitTimeout,
  192.     DWORD               dwInterDigitTimeout
  193.     );
  194. #ifdef UNICODE
  195. #define lineGatherDigits lineGatherDigitsW
  196. #else
  197. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  198. #define lineGatherDigits lineGatherDigitsA
  199. #endif
  200. #endif
  201. #endif
  202. LONG
  203. WINAPI
  204. lineGenerateDigits(
  205.     HCALL               hCall,
  206.     DWORD               dwDigitMode,
  207.     LPCSTR              lpszDigits,
  208.     DWORD               dwDuration
  209.     );
  210. #if WIN32
  211. LONG
  212. WINAPI
  213. lineGenerateDigitsA(
  214.     HCALL               hCall,
  215.     DWORD               dwDigitMode,
  216.     LPCSTR              lpszDigits,
  217.     DWORD               dwDuration
  218.     );
  219. LONG
  220. WINAPI
  221. lineGenerateDigitsW(
  222.     HCALL               hCall,
  223.     DWORD               dwDigitMode,
  224.     LPCWSTR             lpszDigits,
  225.     DWORD               dwDuration
  226.     );
  227. #ifdef UNICODE
  228. #define lineGenerateDigits lineGenerateDigitsW
  229. #else
  230. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  231. #define lineGenerateDigits lineGenerateDigitsA
  232. #endif
  233. #endif
  234. #endif
  235. LONG
  236. WINAPI
  237. lineGenerateTone(
  238.     HCALL               hCall,
  239.     DWORD               dwToneMode,
  240.     DWORD               dwDuration,
  241.     DWORD               dwNumTones,
  242.     LPLINEGENERATETONE  const lpTones
  243.     );
  244. LONG
  245. WINAPI
  246. lineGetAddressCaps(
  247.     HLINEAPP            hLineApp,
  248.     DWORD               dwDeviceID,
  249.     DWORD               dwAddressID,
  250.     DWORD               dwAPIVersion,
  251.     DWORD               dwExtVersion,
  252.     LPLINEADDRESSCAPS   lpAddressCaps
  253.     );
  254. #if WIN32
  255. LONG
  256. WINAPI
  257. lineGetAddressCapsA(
  258.     HLINEAPP            hLineApp,
  259.     DWORD               dwDeviceID,
  260.     DWORD               dwAddressID,
  261.     DWORD               dwAPIVersion,
  262.     DWORD               dwExtVersion,
  263.     LPLINEADDRESSCAPS   lpAddressCaps
  264.     );
  265. LONG
  266. WINAPI
  267. lineGetAddressCapsW(
  268.     HLINEAPP            hLineApp,
  269.     DWORD               dwDeviceID,
  270.     DWORD               dwAddressID,
  271.     DWORD               dwAPIVersion,
  272.     DWORD               dwExtVersion,
  273.     LPLINEADDRESSCAPS   lpAddressCaps
  274.     );
  275. #ifdef UNICODE
  276. #define lineGetAddressCaps lineGetAddressCapsW
  277. #else
  278. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  279. #define lineGetAddressCaps lineGetAddressCapsA
  280. #endif
  281. #endif
  282. #endif
  283. LONG
  284. WINAPI
  285. lineGetAddressID(
  286.     HLINE               hLine,
  287.     LPDWORD             lpdwAddressID,
  288.     DWORD               dwAddressMode,
  289.     LPCSTR              lpsAddress,
  290.     DWORD               dwSize
  291.     );
  292. #if WIN32
  293. LONG
  294. WINAPI
  295. lineGetAddressIDA(
  296.     HLINE               hLine,
  297.     LPDWORD             lpdwAddressID,
  298.     DWORD               dwAddressMode,
  299.     LPCSTR              lpsAddress,
  300.     DWORD               dwSize
  301.     );
  302. LONG
  303. WINAPI
  304. lineGetAddressIDW(
  305.     HLINE               hLine,
  306.     LPDWORD             lpdwAddressID,
  307.     DWORD               dwAddressMode,
  308.     LPCWSTR             lpsAddress,
  309.     DWORD               dwSize
  310.     );
  311. #ifdef UNICODE
  312. #define lineGetAddressID lineGetAddressIDW
  313. #else
  314. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  315. #define lineGetAddressID lineGetAddressIDA
  316. #endif
  317. #endif
  318. #endif
  319. LONG
  320. WINAPI
  321. lineGetAddressStatus(
  322.     HLINE               hLine,
  323.     DWORD               dwAddressID,
  324.     LPLINEADDRESSSTATUS lpAddressStatus
  325.     );
  326. #if WIN32
  327. LONG
  328. WINAPI
  329. lineGetAddressStatusA(
  330.     HLINE               hLine,
  331.     DWORD               dwAddressID,
  332.     LPLINEADDRESSSTATUS lpAddressStatus
  333.     );
  334. LONG
  335. WINAPI
  336. lineGetAddressStatusW(
  337.     HLINE               hLine,
  338.     DWORD               dwAddressID,
  339.     LPLINEADDRESSSTATUS lpAddressStatus
  340.     );
  341. #ifdef UNICODE
  342. #define lineGetAddressStatus lineGetAddressStatusW
  343. #else
  344. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  345. #define lineGetAddressStatus lineGetAddressStatusA
  346. #endif
  347. #endif
  348. #endif
  349. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  350. LONG
  351. WINAPI
  352. lineGetAgentActivityListA(                                      // TAPI v2.0
  353.     HLINE                   hLine,
  354.     DWORD                   dwAddressID,
  355.     LPLINEAGENTACTIVITYLIST lpAgentActivityList
  356.     );
  357. LONG
  358. WINAPI
  359. lineGetAgentActivityListW(                                      // TAPI v2.0
  360.     HLINE                   hLine,
  361.     DWORD                   dwAddressID,
  362.     LPLINEAGENTACTIVITYLIST lpAgentActivityList
  363.     );
  364. #ifdef UNICODE
  365. #define lineGetAgentActivityList lineGetAgentActivityListW
  366. #else
  367. #define lineGetAgentActivityList lineGetAgentActivityListA
  368. #endif
  369. LONG
  370. WINAPI
  371. lineGetAgentCapsA(                                              // TAPI v2.0
  372.     HLINEAPP            hLineApp,
  373.     DWORD               dwDeviceID,
  374.     DWORD               dwAddressID,
  375.     DWORD               dwAppAPIVersion,
  376.     LPLINEAGENTCAPS     lpAgentCaps
  377.     );
  378. LONG
  379. WINAPI
  380. lineGetAgentCapsW(                                              // TAPI v2.0
  381.     HLINEAPP            hLineApp,
  382.     DWORD               dwDeviceID,
  383.     DWORD               dwAddressID,
  384.     DWORD               dwAppAPIVersion,
  385.     LPLINEAGENTCAPS     lpAgentCaps
  386.     );
  387. #ifdef UNICODE
  388. #define lineGetAgentCaps lineGetAgentCapsW
  389. #else
  390. #define lineGetAgentCaps lineGetAgentCapsA
  391. #endif
  392. LONG
  393. WINAPI
  394. lineGetAgentGroupListA(                                         // TAPI v2.0
  395.     HLINE                   hLine,
  396.     DWORD                   dwAddressID,
  397.     LPLINEAGENTGROUPLIST    lpAgentGroupList
  398.     );
  399. LONG
  400. WINAPI
  401. lineGetAgentGroupListW(                                         // TAPI v2.0
  402.     HLINE                   hLine,
  403.     DWORD                   dwAddressID,
  404.     LPLINEAGENTGROUPLIST    lpAgentGroupList
  405.     );
  406. #ifdef UNICODE
  407. #define lineGetAgentGroupList lineGetAgentGroupListW
  408. #else
  409. #define lineGetAgentGroupList lineGetAgentGroupListA
  410. #endif
  411. #if (TAPI_CURRENT_VERSION >= 0x00020002)
  412. LONG
  413. WINAPI
  414. lineGetAgentInfo(                                               // TAPI v2.2
  415.     HLINE               hLine,
  416.     HAGENT              hAgent,
  417.     LPLINEAGENTINFO     lpAgentInfo
  418.     );
  419. LONG
  420. WINAPI
  421. lineGetAgentSessionInfo(                                        // TAPI v2.2
  422.     HLINE                   hLine,
  423.     HAGENTSESSION           hAgentSession,
  424.     LPLINEAGENTSESSIONINFO  lpAgentSessionInfo
  425.     );
  426. LONG
  427. WINAPI
  428. lineGetAgentSessionList(                                        // TAPI v2.2
  429.     HLINE                   hLine,
  430.     HAGENT                  hAgent,
  431.     LPLINEAGENTSESSIONLIST  lpAgentSessionList
  432.     );
  433. #endif
  434. LONG
  435. WINAPI
  436. lineGetAgentStatusA(                                            // TAPI v2.0
  437.     HLINE               hLine,
  438.     DWORD               dwAddressID,
  439.     LPLINEAGENTSTATUS   lpAgentStatus
  440.     );
  441. LONG
  442. WINAPI
  443. lineGetAgentStatusW(                                            // TAPI v2.0
  444.     HLINE               hLine,
  445.     DWORD               dwAddressID,
  446.     LPLINEAGENTSTATUS   lpAgentStatus
  447.     );
  448. #ifdef UNICODE
  449. #define lineGetAgentStatus lineGetAgentStatusW
  450. #else
  451. #define lineGetAgentStatus lineGetAgentStatusA
  452. #endif
  453. #endif
  454. LONG
  455. WINAPI
  456. lineGetAppPriority(                                             // TAPI v1.4
  457.     LPCSTR              lpszAppFilename,
  458.     DWORD               dwMediaMode,
  459.     LPLINEEXTENSIONID   lpExtensionID,
  460.     DWORD               dwRequestMode,
  461.     LPVARSTRING         lpExtensionName,
  462.     LPDWORD             lpdwPriority
  463.     );
  464. #if WIN32
  465. LONG
  466. WINAPI
  467. lineGetAppPriorityA(                                            // TAPI v1.4
  468.     LPCSTR              lpszAppFilename,
  469.     DWORD               dwMediaMode,
  470.     LPLINEEXTENSIONID   lpExtensionID,
  471.     DWORD               dwRequestMode,
  472.     LPVARSTRING         lpExtensionName,
  473.     LPDWORD             lpdwPriority
  474.     );
  475. LONG
  476. WINAPI
  477. lineGetAppPriorityW(                                            // TAPI v1.4
  478.     LPCWSTR             lpszAppFilename,
  479.     DWORD               dwMediaMode,
  480.     LPLINEEXTENSIONID   lpExtensionID,
  481.     DWORD               dwRequestMode,
  482.     LPVARSTRING         lpExtensionName,
  483.     LPDWORD             lpdwPriority
  484.     );
  485. #ifdef UNICODE
  486. #define lineGetAppPriority lineGetAppPriorityW
  487. #else
  488. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  489. #define lineGetAppPriority lineGetAppPriorityA
  490. #endif
  491. #endif
  492. #endif
  493. LONG
  494. WINAPI
  495. lineGetCallInfo(
  496.     HCALL               hCall,
  497.     LPLINECALLINFO      lpCallInfo
  498.     );
  499. #if WIN32
  500. LONG
  501. WINAPI
  502. lineGetCallInfoA(
  503.     HCALL               hCall,
  504.     LPLINECALLINFO      lpCallInfo
  505.     );
  506. LONG
  507. WINAPI
  508. lineGetCallInfoW(
  509.     HCALL               hCall,
  510.     LPLINECALLINFO      lpCallInfo
  511.     );
  512. #ifdef UNICODE
  513. #define lineGetCallInfo lineGetCallInfoW
  514. #else
  515. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  516. #define lineGetCallInfo lineGetCallInfoA
  517. #endif
  518. #endif
  519. #endif
  520. LONG
  521. WINAPI
  522. lineGetCallStatus(
  523.     HCALL               hCall,
  524.     LPLINECALLSTATUS    lpCallStatus
  525.     );
  526. LONG
  527. WINAPI
  528. lineGetConfRelatedCalls(
  529.     HCALL               hCall,
  530.     LPLINECALLLIST      lpCallList
  531.     );
  532. LONG
  533. WINAPI
  534. lineGetCountry(                                                 // TAPI v1.4
  535.     DWORD               dwCountryID,
  536.     DWORD               dwAPIVersion,
  537.     LPLINECOUNTRYLIST   lpLineCountryList
  538.     );
  539. #if WIN32
  540. LONG
  541. WINAPI
  542. lineGetCountryA(                                                // TAPI v1.4
  543.     DWORD               dwCountryID,
  544.     DWORD               dwAPIVersion,
  545.     LPLINECOUNTRYLIST   lpLineCountryList
  546.     );
  547. LONG
  548. WINAPI
  549. lineGetCountryW(                                                // TAPI v1.4
  550.     DWORD               dwCountryID,
  551.     DWORD               dwAPIVersion,
  552.     LPLINECOUNTRYLIST   lpLineCountryList
  553.     );
  554. #ifdef UNICODE
  555. #define lineGetCountry lineGetCountryW
  556. #else
  557. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  558. #define lineGetCountry lineGetCountryA
  559. #endif
  560. #endif
  561. #endif
  562. LONG
  563. WINAPI
  564. lineGetDevCaps(
  565.     HLINEAPP            hLineApp,
  566.     DWORD               dwDeviceID,
  567.     DWORD               dwAPIVersion,
  568.     DWORD               dwExtVersion,
  569.     LPLINEDEVCAPS       lpLineDevCaps
  570.     );
  571. #if WIN32
  572. LONG
  573. WINAPI
  574. lineGetDevCapsA(
  575.     HLINEAPP            hLineApp,
  576.     DWORD               dwDeviceID,
  577.     DWORD               dwAPIVersion,
  578.     DWORD               dwExtVersion,
  579.     LPLINEDEVCAPS       lpLineDevCaps
  580.     );
  581. LONG
  582. WINAPI
  583. lineGetDevCapsW(
  584.     HLINEAPP            hLineApp,
  585.     DWORD               dwDeviceID,
  586.     DWORD               dwAPIVersion,
  587.     DWORD               dwExtVersion,
  588.     LPLINEDEVCAPS       lpLineDevCaps
  589.     );
  590. #ifdef UNICODE
  591. #define lineGetDevCaps lineGetDevCapsW
  592. #else
  593. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  594. #define lineGetDevCaps lineGetDevCapsA
  595. #endif
  596. #endif
  597. #endif
  598. LONG
  599. WINAPI
  600. lineGetDevConfig(
  601.     DWORD               dwDeviceID,
  602.     LPVARSTRING         lpDeviceConfig,
  603.     LPCSTR              lpszDeviceClass
  604.     );
  605. #if WIN32
  606. LONG
  607. WINAPI
  608. lineGetDevConfigA(
  609.     DWORD               dwDeviceID,
  610.     LPVARSTRING         lpDeviceConfig,
  611.     LPCSTR              lpszDeviceClass
  612.     );
  613. LONG
  614. WINAPI
  615. lineGetDevConfigW(
  616.     DWORD               dwDeviceID,
  617.     LPVARSTRING         lpDeviceConfig,
  618.     LPCWSTR             lpszDeviceClass
  619.     );
  620. #ifdef UNICODE
  621. #define lineGetDevConfig lineGetDevConfigW
  622. #else
  623. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  624. #define lineGetDevConfig lineGetDevConfigA
  625. #endif
  626. #endif
  627. #endif
  628. #if (TAPI_CURRENT_VERSION >= 0x00020002)
  629. LONG
  630. WINAPI
  631. lineGetGroupListA(                                              // TAPI v2.2
  632.     HLINE                   hLine,
  633.     LPLINEAGENTGROUPLIST    lpGroupList
  634.     );
  635. LONG
  636. WINAPI
  637. lineGetGroupListW(                                              // TAPI v2.2
  638.     HLINE                   hLine,
  639.     LPLINEAGENTGROUPLIST    lpGroupList
  640.     );
  641. #ifdef UNICODE
  642. #define lineGetGroupList lineGetGroupListW
  643. #else
  644. #define lineGetGroupList lineGetGroupListA
  645. #endif
  646. #endif
  647. LONG
  648. WINAPI
  649. lineGetIcon(
  650.     DWORD               dwDeviceID,
  651.     LPCSTR              lpszDeviceClass,
  652.     LPHICON             lphIcon
  653.     );
  654. #if WIN32
  655. LONG
  656. WINAPI
  657. lineGetIconA(
  658.     DWORD               dwDeviceID,
  659.     LPCSTR              lpszDeviceClass,
  660.     LPHICON             lphIcon
  661.     );
  662. LONG
  663. WINAPI
  664. lineGetIconW(
  665.     DWORD               dwDeviceID,
  666.     LPCWSTR             lpszDeviceClass,
  667.     LPHICON             lphIcon
  668.     );
  669. #ifdef UNICODE
  670. #define lineGetIcon lineGetIconW
  671. #else
  672. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  673. #define lineGetIcon lineGetIconA
  674. #endif
  675. #endif
  676. #endif
  677. LONG
  678. WINAPI
  679. lineGetID(
  680.     HLINE               hLine,
  681.     DWORD               dwAddressID,
  682.     HCALL               hCall,
  683.     DWORD               dwSelect,
  684.     LPVARSTRING         lpDeviceID,
  685.     LPCSTR              lpszDeviceClass
  686.     );
  687. #if WIN32
  688. LONG
  689. WINAPI
  690. lineGetIDA(
  691.     HLINE               hLine,
  692.     DWORD               dwAddressID,
  693.     HCALL               hCall,
  694.     DWORD               dwSelect,
  695.     LPVARSTRING         lpDeviceID,
  696.     LPCSTR              lpszDeviceClass
  697.     );
  698. LONG
  699. WINAPI
  700. lineGetIDW(
  701.     HLINE               hLine,
  702.     DWORD               dwAddressID,
  703.     HCALL               hCall,
  704.     DWORD               dwSelect,
  705.     LPVARSTRING         lpDeviceID,
  706.     LPCWSTR             lpszDeviceClass
  707.     );
  708. #ifdef UNICODE
  709. #define lineGetID lineGetIDW
  710. #else
  711. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  712. #define lineGetID lineGetIDA
  713. #endif
  714. #endif
  715. #endif
  716. LONG
  717. WINAPI
  718. lineGetLineDevStatus(
  719.     HLINE               hLine,
  720.     LPLINEDEVSTATUS     lpLineDevStatus
  721.     );
  722. #if WIN32
  723. LONG
  724. WINAPI
  725. lineGetLineDevStatusA(
  726.     HLINE               hLine,
  727.     LPLINEDEVSTATUS     lpLineDevStatus
  728.     );
  729. LONG
  730. WINAPI
  731. lineGetLineDevStatusW(
  732.     HLINE               hLine,
  733.     LPLINEDEVSTATUS     lpLineDevStatus
  734.     );
  735. #ifdef UNICODE
  736. #define lineGetDevStatus lineGetDevStatusW
  737. #else
  738. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  739. #define lineGetDevStatus lineGetDevStatusA
  740. #endif
  741. #endif
  742. #endif
  743. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  744. LONG
  745. WINAPI
  746. lineGetMessage(                                                 // TAPI v2.0
  747.     HLINEAPP        hLineApp,
  748.     LPLINEMESSAGE   lpMessage,
  749.     DWORD           dwTimeout
  750.     );
  751. #endif
  752. LONG
  753. WINAPI
  754. lineGetNewCalls(
  755.     HLINE               hLine,
  756.     DWORD               dwAddressID,
  757.     DWORD               dwSelect,
  758.     LPLINECALLLIST      lpCallList
  759.     );
  760. LONG
  761. WINAPI
  762. lineGetNumRings(
  763.     HLINE               hLine,
  764.     DWORD               dwAddressID,
  765.     LPDWORD             lpdwNumRings
  766.     );
  767. LONG
  768. WINAPI
  769. lineGetProviderList(                                            // TAPI v1.4
  770.     DWORD               dwAPIVersion,
  771.     LPLINEPROVIDERLIST  lpProviderList
  772.     );
  773. #if WIN32
  774. LONG
  775. WINAPI
  776. lineGetProviderListA(
  777.     DWORD               dwAPIVersion,
  778.     LPLINEPROVIDERLIST  lpProviderList
  779.     );
  780. LONG
  781. WINAPI
  782. lineGetProviderListW(
  783.     DWORD               dwAPIVersion,
  784.     LPLINEPROVIDERLIST  lpProviderList
  785.     );
  786. #ifdef UNICODE
  787. #define lineGetProviderList lineGetProviderListW
  788. #else
  789. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  790. #define lineGetProviderList lineGetProviderListA
  791. #endif
  792. #endif
  793. #endif
  794. #if (TAPI_CURRENT_VERSION >= 0x00020002)
  795. LONG
  796. WINAPI
  797. lineGetProxyStatus(                                             // TAPI v2.2
  798.     HLINEAPP                hLineApp,
  799.     DWORD                   dwDeviceID,
  800.     DWORD                   dwAppAPIVersion,
  801.     LPLINEPROXYREQUESTLIST  lpLineProxyReqestList
  802.     );
  803. LONG
  804. WINAPI
  805. lineGetQueueInfo(                                               // TAPI v2.2
  806.     HLINE               hLine,
  807.     DWORD               dwQueueID,
  808.     LPLINEQUEUEINFO     lpLineQueueInfo
  809.     );
  810. LONG
  811. WINAPI
  812. lineGetQueueListA(                                              // TAPI v2.2
  813.     HLINE               hLine,
  814.     LPGUID              lpGroupID,
  815.     LPLINEQUEUELIST     lpQueueList
  816.     );
  817. LONG
  818. WINAPI
  819. lineGetQueueListW(                                              // TAPI v2.2
  820.     HLINE               hLine,
  821.     LPGUID              lpGroupID,
  822.     LPLINEQUEUELIST     lpQueueList
  823.     );
  824. #ifdef UNICODE
  825. #define lineGetQueueList lineGetQueueListW
  826. #else
  827. #define lineGetQueueList lineGetQueueListA
  828. #endif
  829. #endif
  830. LONG
  831. WINAPI
  832. lineGetRequest(
  833.     HLINEAPP            hLineApp,
  834.     DWORD               dwRequestMode,
  835.     LPVOID              lpRequestBuffer
  836.     );
  837. #if WIN32
  838. LONG
  839. WINAPI
  840. lineGetRequestA(
  841.     HLINEAPP            hLineApp,
  842.     DWORD               dwRequestMode,
  843.     LPVOID              lpRequestBuffer
  844.     );
  845. LONG
  846. WINAPI
  847. lineGetRequestW(
  848.     HLINEAPP            hLineApp,
  849.     DWORD               dwRequestMode,
  850.     LPVOID              lpRequestBuffer
  851.     );
  852. #ifdef UNICODE
  853. #define lineGetRequest lineGetRequestW
  854. #else
  855. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  856. #define lineGetRequest lineGetRequestA
  857. #endif
  858. #endif
  859. #endif
  860. LONG
  861. WINAPI
  862. lineGetStatusMessages(
  863.     HLINE               hLine,
  864.     LPDWORD             lpdwLineStates,
  865.     LPDWORD             lpdwAddressStates
  866.     );
  867. LONG
  868. WINAPI
  869. lineGetTranslateCaps(
  870.     HLINEAPP hLineApp,
  871.     DWORD dwAPIVersion,
  872.     LPLINETRANSLATECAPS lpTranslateCaps
  873.     );
  874. #if WIN32
  875. LONG
  876. WINAPI
  877. lineGetTranslateCapsA(
  878.     HLINEAPP hLineApp,
  879.     DWORD dwAPIVersion,
  880.     LPLINETRANSLATECAPS lpTranslateCaps
  881.     );
  882. LONG
  883. WINAPI
  884. lineGetTranslateCapsW(
  885.     HLINEAPP hLineApp,
  886.     DWORD dwAPIVersion,
  887.     LPLINETRANSLATECAPS lpTranslateCaps
  888.     );
  889. #ifdef UNICODE
  890. #define lineGetTranslateCaps lineGetTranslateCapsW
  891. #else
  892. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  893. #define lineGetTranslateCaps lineGetTranslateCapsA
  894. #endif
  895. #endif
  896. #endif
  897. LONG
  898. WINAPI
  899. lineHandoff(
  900.     HCALL               hCall,
  901.     LPCSTR              lpszFileName,
  902.     DWORD               dwMediaMode
  903.     );
  904. #if WIN32
  905. LONG
  906. WINAPI
  907. lineHandoffA(
  908.     HCALL               hCall,
  909.     LPCSTR              lpszFileName,
  910.     DWORD               dwMediaMode
  911.     );
  912. LONG
  913. WINAPI
  914. lineHandoffW(
  915.     HCALL               hCall,
  916.     LPCWSTR             lpszFileName,
  917.     DWORD               dwMediaMode
  918.     );
  919. #ifdef UNICODE
  920. #define lineHandoff lineHandoffW
  921. #else
  922. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  923. #define lineHandoff lineHandoffA
  924. #endif
  925. #endif
  926. #endif
  927. LONG
  928. WINAPI
  929. lineHold(
  930.     HCALL               hCall
  931.     );
  932. LONG
  933. WINAPI
  934. lineInitialize(
  935.     LPHLINEAPP          lphLineApp,
  936.     HINSTANCE           hInstance,
  937.     LINECALLBACK        lpfnCallback,
  938.     LPCSTR              lpszAppName,
  939.     LPDWORD             lpdwNumDevs
  940.     );
  941. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  942. LONG
  943. WINAPI
  944. lineInitializeExA(                                               // TAPI v2.0
  945.     LPHLINEAPP                  lphLineApp,
  946.     HINSTANCE                   hInstance,
  947.     LINECALLBACK                lpfnCallback,
  948.     LPCSTR                      lpszFriendlyAppName,
  949.     LPDWORD                     lpdwNumDevs,
  950.     LPDWORD                     lpdwAPIVersion,
  951.     LPLINEINITIALIZEEXPARAMS    lpLineInitializeExParams
  952.     );
  953. LONG
  954. WINAPI
  955. lineInitializeExW(                                               // TAPI v2.0
  956.     LPHLINEAPP                  lphLineApp,
  957.     HINSTANCE                   hInstance,
  958.     LINECALLBACK                lpfnCallback,
  959.     LPCWSTR                     lpszFriendlyAppName,
  960.     LPDWORD                     lpdwNumDevs,
  961.     LPDWORD                     lpdwAPIVersion,
  962.     LPLINEINITIALIZEEXPARAMS    lpLineInitializeExParams
  963.     );
  964. #ifdef UNICODE
  965. #define lineInitializeEx lineInitializeExW
  966. #else
  967. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  968. #define lineInitializeEx lineInitializeExA
  969. #endif
  970. #endif
  971. #endif
  972. LONG
  973. WINAPI
  974. lineMakeCall(
  975.     HLINE               hLine,
  976.     LPHCALL             lphCall,
  977.     LPCSTR              lpszDestAddress,
  978.     DWORD               dwCountryCode,
  979.     LPLINECALLPARAMS    const lpCallParams
  980.     );
  981. #if WIN32
  982. LONG
  983. WINAPI
  984. lineMakeCallA(
  985.     HLINE               hLine,
  986.     LPHCALL             lphCall,
  987.     LPCSTR              lpszDestAddress,
  988.     DWORD               dwCountryCode,
  989.     LPLINECALLPARAMS    const lpCallParams
  990.     );
  991. LONG
  992. WINAPI
  993. lineMakeCallW(
  994.     HLINE               hLine,
  995.     LPHCALL             lphCall,
  996.     LPCWSTR             lpszDestAddress,
  997.     DWORD               dwCountryCode,
  998.     LPLINECALLPARAMS    const lpCallParams
  999.     );
  1000. #ifdef UNICODE
  1001. #define lineMakeCall lineMakeCallW
  1002. #else
  1003. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1004. #define lineMakeCall lineMakeCallA
  1005. #endif
  1006. #endif
  1007. #endif
  1008. LONG
  1009. WINAPI
  1010. lineMonitorDigits(
  1011.     HCALL               hCall,
  1012.     DWORD               dwDigitModes
  1013.     );
  1014. LONG
  1015. WINAPI
  1016. lineMonitorMedia(
  1017.     HCALL               hCall,
  1018.     DWORD               dwMediaModes
  1019.     );
  1020. LONG
  1021. WINAPI
  1022. lineMonitorTones(
  1023.     HCALL               hCall,
  1024.     LPLINEMONITORTONE   const lpToneList,
  1025.     DWORD               dwNumEntries
  1026.     );
  1027. LONG
  1028. WINAPI
  1029. lineNegotiateAPIVersion(
  1030.     HLINEAPP            hLineApp,
  1031.     DWORD               dwDeviceID,
  1032.     DWORD               dwAPILowVersion,
  1033.     DWORD               dwAPIHighVersion,
  1034.     LPDWORD             lpdwAPIVersion,
  1035.     LPLINEEXTENSIONID   lpExtensionID
  1036.     );
  1037. LONG
  1038. WINAPI
  1039. lineNegotiateExtVersion(
  1040.     HLINEAPP            hLineApp,
  1041.     DWORD               dwDeviceID,
  1042.     DWORD               dwAPIVersion,
  1043.     DWORD               dwExtLowVersion,
  1044.     DWORD               dwExtHighVersion,
  1045.     LPDWORD             lpdwExtVersion
  1046.     );
  1047. LONG
  1048. WINAPI
  1049. lineOpen(
  1050.     HLINEAPP hLineApp,
  1051.     DWORD dwDeviceID,
  1052.     LPHLINE lphLine,
  1053.     DWORD               dwAPIVersion,
  1054.     DWORD               dwExtVersion,
  1055.     DWORD_PTR           dwCallbackInstance,
  1056.     DWORD               dwPrivileges,
  1057.     DWORD               dwMediaModes,
  1058.     LPLINECALLPARAMS    const lpCallParams
  1059.     );
  1060. #if WIN32
  1061. LONG
  1062. WINAPI
  1063. lineOpenA(
  1064.     HLINEAPP hLineApp,
  1065.     DWORD dwDeviceID,
  1066.     LPHLINE lphLine,
  1067.     DWORD               dwAPIVersion,
  1068.     DWORD               dwExtVersion,
  1069.     DWORD_PTR           dwCallbackInstance,
  1070.     DWORD               dwPrivileges,
  1071.     DWORD               dwMediaModes,
  1072.     LPLINECALLPARAMS    const lpCallParams
  1073.     );
  1074. LONG
  1075. WINAPI
  1076. lineOpenW(
  1077.     HLINEAPP hLineApp,
  1078.     DWORD dwDeviceID,
  1079.     LPHLINE lphLine,
  1080.     DWORD               dwAPIVersion,
  1081.     DWORD               dwExtVersion,
  1082.     DWORD_PTR           dwCallbackInstance,
  1083.     DWORD               dwPrivileges,
  1084.     DWORD               dwMediaModes,
  1085.     LPLINECALLPARAMS    const lpCallParams
  1086.     );
  1087. #ifdef UNICODE
  1088. #define lineOpen lineOpenW
  1089. #else
  1090. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1091. #define lineOpen lineOpenA
  1092. #endif
  1093. #endif
  1094. #endif
  1095. LONG
  1096. WINAPI
  1097. linePark(
  1098.     HCALL               hCall,
  1099.     DWORD               dwParkMode,
  1100.     LPCSTR              lpszDirAddress,
  1101.     LPVARSTRING         lpNonDirAddress
  1102.     );
  1103. #if WIN32
  1104. LONG
  1105. WINAPI
  1106. lineParkA(
  1107.     HCALL               hCall,
  1108.     DWORD               dwParkMode,
  1109.     LPCSTR              lpszDirAddress,
  1110.     LPVARSTRING         lpNonDirAddress
  1111.     );
  1112. LONG
  1113. WINAPI
  1114. lineParkW(
  1115.     HCALL               hCall,
  1116.     DWORD               dwParkMode,
  1117.     LPCWSTR             lpszDirAddress,
  1118.     LPVARSTRING         lpNonDirAddress
  1119.     );
  1120. #ifdef UNICODE
  1121. #define linePark lineParkW
  1122. #else
  1123. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1124. #define linePark lineParkA
  1125. #endif
  1126. #endif
  1127. #endif
  1128. LONG
  1129. WINAPI
  1130. linePickup(
  1131.     HLINE               hLine,
  1132.     DWORD               dwAddressID,
  1133.     LPHCALL             lphCall,
  1134.     LPCSTR              lpszDestAddress,
  1135.     LPCSTR              lpszGroupID
  1136.     );
  1137. #if WIN32
  1138. LONG
  1139. WINAPI
  1140. linePickupA(
  1141.     HLINE               hLine,
  1142.     DWORD               dwAddressID,
  1143.     LPHCALL             lphCall,
  1144.     LPCSTR              lpszDestAddress,
  1145.     LPCSTR              lpszGroupID
  1146.     );
  1147. LONG
  1148. WINAPI
  1149. linePickupW(
  1150.     HLINE               hLine,
  1151.     DWORD               dwAddressID,
  1152.     LPHCALL             lphCall,
  1153.     LPCWSTR             lpszDestAddress,
  1154.     LPCWSTR             lpszGroupID
  1155.     );
  1156. #ifdef UNICODE
  1157. #define linePickup linePickupW
  1158. #else
  1159. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1160. #define linePickup linePickupA
  1161. #endif
  1162. #endif
  1163. #endif
  1164. LONG
  1165. WINAPI
  1166. linePrepareAddToConference(
  1167.     HCALL               hConfCall,
  1168.     LPHCALL             lphConsultCall,
  1169.     LPLINECALLPARAMS    const lpCallParams
  1170.     );
  1171. #if WIN32
  1172. LONG
  1173. WINAPI
  1174. linePrepareAddToConferenceA(
  1175.     HCALL               hConfCall,
  1176.     LPHCALL             lphConsultCall,
  1177.     LPLINECALLPARAMS    const lpCallParams
  1178.     );
  1179. LONG
  1180. WINAPI
  1181. linePrepareAddToConferenceW(
  1182.     HCALL               hConfCall,
  1183.     LPHCALL             lphConsultCall,
  1184.     LPLINECALLPARAMS    const lpCallParams
  1185.     );
  1186. #ifdef UNICODE
  1187. #define linePrepareAddToConference linePrepareAddToConferenceW
  1188. #else
  1189. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1190. #define linePrepareAddToConference linePrepareAddToConferenceA
  1191. #endif
  1192. #endif
  1193. #endif
  1194. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1195. LONG
  1196. WINAPI
  1197. lineProxyMessage(                                               // TAPI v2.0
  1198.     HLINE               hLine,
  1199.     HCALL               hCall,
  1200.     DWORD               dwMsg,
  1201.     DWORD               dwParam1,
  1202.     DWORD               dwParam2,
  1203.     DWORD               dwParam3
  1204.     );
  1205. LONG
  1206. WINAPI
  1207. lineProxyResponse(                                              // TAPI v2.0
  1208.     HLINE               hLine,
  1209.     LPLINEPROXYREQUEST  lpProxyRequest,
  1210.     DWORD               dwResult
  1211.     );
  1212. #endif
  1213. LONG
  1214. WINAPI
  1215. lineRedirect(
  1216.     HCALL               hCall,
  1217.     LPCSTR              lpszDestAddress,
  1218.     DWORD               dwCountryCode
  1219.     );
  1220. #if WIN32
  1221. LONG
  1222. WINAPI
  1223. lineRedirectA(
  1224.     HCALL               hCall,
  1225.     LPCSTR              lpszDestAddress,
  1226.     DWORD               dwCountryCode
  1227.     );
  1228. LONG
  1229. WINAPI
  1230. lineRedirectW(
  1231.     HCALL               hCall,
  1232.     LPCWSTR             lpszDestAddress,
  1233.     DWORD               dwCountryCode
  1234.     );
  1235. #ifdef UNICODE
  1236. #define lineRedirect lineRedirectW
  1237. #else
  1238. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1239. #define lineRedirect lineRedirectA
  1240. #endif
  1241. #endif
  1242. #endif
  1243. LONG
  1244. WINAPI
  1245. lineRegisterRequestRecipient(
  1246.     HLINEAPP            hLineApp,
  1247.     DWORD               dwRegistrationInstance,
  1248.     DWORD               dwRequestMode,
  1249.     DWORD               bEnable
  1250.     );
  1251. LONG
  1252. WINAPI
  1253. lineReleaseUserUserInfo(                                        // TAPI v1.4
  1254.     HCALL               hCall
  1255.     );
  1256. LONG
  1257. WINAPI
  1258. lineRemoveFromConference(
  1259.     HCALL               hCall
  1260.     );
  1261. LONG
  1262. WINAPI
  1263. lineRemoveProvider(                                             // TAPI v1.4
  1264.     DWORD               dwPermanentProviderID,
  1265.     HWND                hwndOwner
  1266.     );
  1267. LONG
  1268. WINAPI
  1269. lineSecureCall(
  1270.     HCALL               hCall
  1271.     );
  1272. LONG
  1273. WINAPI
  1274. lineSendUserUserInfo(
  1275.     HCALL               hCall,
  1276.     LPCSTR              lpsUserUserInfo,
  1277.     DWORD               dwSize
  1278.     );
  1279. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1280. LONG
  1281. WINAPI
  1282. lineSetAgentActivity(                                           // TAPI v2.0
  1283.     HLINE               hLine,
  1284.     DWORD               dwAddressID,
  1285.     DWORD               dwActivityID
  1286.     );
  1287. LONG
  1288. WINAPI
  1289. lineSetAgentGroup(                                              // TAPI v2.0
  1290.     HLINE                   hLine,
  1291.     DWORD                   dwAddressID,
  1292.     LPLINEAGENTGROUPLIST    lpAgentGroupList
  1293.     );
  1294. #if (TAPI_CURRENT_VERSION >= 0x00020002)
  1295. LONG
  1296. WINAPI
  1297. lineSetAgentMeasurementPeriod(                                  // TAPI v2.2
  1298.     HLINE               hLine,
  1299.     HAGENT              hAgent,
  1300.     DWORD               dwMeasurementPeriod
  1301.     );
  1302. LONG
  1303. WINAPI
  1304. lineSetAgentSessionState(                                       // TAPI v2.2
  1305.     HLINE               hLine,
  1306.     HAGENTSESSION       hAgentSession,
  1307.     DWORD               dwAgentSessionState,
  1308.     DWORD               dwNextAgentSessionState
  1309.     );
  1310. LONG
  1311. WINAPI
  1312. lineSetAgentStateEx(                                            // TAPI v2.2
  1313.     HLINE               hLine,
  1314.     HAGENT              hAgent,
  1315.     DWORD               dwAgentState,
  1316.     DWORD               dwNextAgentState
  1317.     );
  1318. #endif
  1319. LONG
  1320. WINAPI
  1321. lineSetAgentState(                                              // TAPI v2.0
  1322.     HLINE               hLine,
  1323.     DWORD               dwAddressID,
  1324.     DWORD               dwAgentState,
  1325.     DWORD               dwNextAgentState
  1326.     );
  1327. #endif
  1328. LONG
  1329. WINAPI
  1330. lineSetAppPriority(                                             // TAPI v1.4
  1331.     LPCSTR              lpszAppFilename,
  1332.     DWORD               dwMediaMode,
  1333.     LPLINEEXTENSIONID   lpExtensionID,
  1334.     DWORD               dwRequestMode,
  1335.     LPCSTR              lpszExtensionName,
  1336.     DWORD               dwPriority
  1337.     );
  1338. #if WIN32
  1339. LONG
  1340. WINAPI
  1341. lineSetAppPriorityA(                                             // TAPI v1.4
  1342.     LPCSTR              lpszAppFilename,
  1343.     DWORD               dwMediaMode,
  1344.     LPLINEEXTENSIONID   lpExtensionID,
  1345.     DWORD               dwRequestMode,
  1346.     LPCSTR              lpszExtensionName,
  1347.     DWORD               dwPriority
  1348.     );
  1349. LONG
  1350. WINAPI
  1351. lineSetAppPriorityW(                                             // TAPI v1.4
  1352.     LPCWSTR             lpszAppFilename,
  1353.     DWORD               dwMediaMode,
  1354.     LPLINEEXTENSIONID   lpExtensionID,
  1355.     DWORD               dwRequestMode,
  1356.     LPCWSTR             lpszExtensionName,
  1357.     DWORD               dwPriority
  1358.     );
  1359. #ifdef UNICODE
  1360. #define lineSetAppPriority lineSetAppPriorityW
  1361. #else
  1362. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1363. #define lineSetAppPriority lineSetAppPriorityA
  1364. #endif
  1365. #endif
  1366. #endif
  1367. LONG
  1368. WINAPI
  1369. lineSetAppSpecific(
  1370.     HCALL               hCall,
  1371.     DWORD               dwAppSpecific
  1372.     );
  1373. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1374. LONG
  1375. WINAPI
  1376. lineSetCallData(                                                // TAPI v2.0
  1377.     HCALL               hCall,
  1378.     LPVOID              lpCallData,
  1379.     DWORD               dwSize
  1380.     );
  1381. #endif
  1382. LONG
  1383. WINAPI
  1384. lineSetCallParams(
  1385.     HCALL               hCall,
  1386.     DWORD               dwBearerMode,
  1387.     DWORD               dwMinRate,
  1388.     DWORD               dwMaxRate,
  1389.     LPLINEDIALPARAMS    const lpDialParams
  1390.     );
  1391. LONG
  1392. WINAPI
  1393. lineSetCallPrivilege(
  1394.     HCALL               hCall,
  1395.     DWORD               dwCallPrivilege
  1396.     );
  1397. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1398. LONG
  1399. WINAPI
  1400. lineSetCallQualityOfService(                                    // TAPI v2.0
  1401.     HCALL               hCall,
  1402.     LPVOID              lpSendingFlowspec,
  1403.     DWORD               dwSendingFlowspecSize,
  1404.     LPVOID              lpReceivingFlowspec,
  1405.     DWORD               dwReceivingFlowspecSize
  1406.     );
  1407. LONG
  1408. WINAPI
  1409. lineSetCallTreatment(                                           // TAPI v2.0
  1410.     HCALL               hCall,
  1411.     DWORD               dwTreatment
  1412.     );
  1413. #endif
  1414. LONG
  1415. WINAPI
  1416. lineSetCurrentLocation(
  1417.     HLINEAPP            hLineApp,
  1418.     DWORD               dwLocation
  1419.     );
  1420. LONG
  1421. WINAPI
  1422. lineSetDevConfig(
  1423.     DWORD               dwDeviceID,
  1424.     LPVOID              const lpDeviceConfig,
  1425.     DWORD               dwSize,
  1426.     LPCSTR              lpszDeviceClass
  1427.     );
  1428. #if WIN32
  1429. LONG
  1430. WINAPI
  1431. lineSetDevConfigA(
  1432.     DWORD               dwDeviceID,
  1433.     LPVOID              const lpDeviceConfig,
  1434.     DWORD               dwSize,
  1435.     LPCSTR              lpszDeviceClass
  1436.     );
  1437. LONG
  1438. WINAPI
  1439. lineSetDevConfigW(
  1440.     DWORD               dwDeviceID,
  1441.     LPVOID              const lpDeviceConfig,
  1442.     DWORD               dwSize,
  1443.     LPCWSTR             lpszDeviceClass
  1444.     );
  1445. #ifdef UNICODE
  1446. #define lineSetDevConfig lineSetDevConfigW
  1447. #else
  1448. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1449. #define lineSetDevConfig lineSetDevConfigA
  1450. #endif
  1451. #endif
  1452. #endif
  1453. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1454. LONG
  1455. WINAPI
  1456. lineSetLineDevStatus(                                           // TAPI v2.0
  1457.     HLINE               hLine,
  1458.     DWORD               dwStatusToChange,
  1459.     DWORD               fStatus
  1460.     );
  1461. #endif
  1462. LONG
  1463. WINAPI
  1464. lineSetMediaControl(
  1465.     HLINE                       hLine,
  1466.     DWORD                       dwAddressID,
  1467.     HCALL                       hCall,
  1468.     DWORD                       dwSelect,
  1469.     LPLINEMEDIACONTROLDIGIT     const lpDigitList,
  1470.     DWORD                       dwDigitNumEntries,
  1471.     LPLINEMEDIACONTROLMEDIA     const lpMediaList,
  1472.     DWORD                       dwMediaNumEntries,
  1473.     LPLINEMEDIACONTROLTONE      const lpToneList,
  1474.     DWORD                       dwToneNumEntries,
  1475.     LPLINEMEDIACONTROLCALLSTATE const lpCallStateList,
  1476.     DWORD                       dwCallStateNumEntries
  1477.     );
  1478. LONG
  1479. WINAPI
  1480. lineSetMediaMode(
  1481.     HCALL               hCall,
  1482.     DWORD               dwMediaModes
  1483.     );
  1484. #if (TAPI_CURRENT_VERSION >= 0x00020002)
  1485. LONG
  1486. WINAPI
  1487. lineSetQueueMeasurementPeriod(                                  // TAPI v2.2
  1488.     HLINE               hLine,
  1489.     DWORD               dwQueueID,
  1490.     DWORD               dwMeasurementPeriod
  1491.     );
  1492. #endif
  1493. LONG
  1494. WINAPI
  1495. lineSetNumRings(
  1496.     HLINE               hLine,
  1497.     DWORD               dwAddressID,
  1498.     DWORD               dwNumRings
  1499.     );
  1500. LONG
  1501. WINAPI
  1502. lineSetStatusMessages(
  1503.     HLINE               hLine,
  1504.     DWORD               dwLineStates,
  1505.     DWORD               dwAddressStates
  1506.     );
  1507. LONG
  1508. WINAPI
  1509. lineSetTerminal(
  1510.     HLINE               hLine,
  1511.     DWORD               dwAddressID,
  1512.     HCALL               hCall,
  1513.     DWORD               dwSelect,
  1514.     DWORD               dwTerminalModes,
  1515.     DWORD               dwTerminalID,
  1516.     DWORD               bEnable
  1517.     );
  1518. LONG
  1519. WINAPI
  1520. lineSetTollList(
  1521.     HLINEAPP            hLineApp,
  1522.     DWORD               dwDeviceID,
  1523.     LPCSTR              lpszAddressIn,
  1524.     DWORD               dwTollListOption
  1525.     );
  1526. #if WIN32
  1527. LONG
  1528. WINAPI
  1529. lineSetTollListA(
  1530.     HLINEAPP            hLineApp,
  1531.     DWORD               dwDeviceID,
  1532.     LPCSTR              lpszAddressIn,
  1533.     DWORD               dwTollListOption
  1534.     );
  1535. LONG
  1536. WINAPI
  1537. lineSetTollListW(
  1538.     HLINEAPP            hLineApp,
  1539.     DWORD               dwDeviceID,
  1540.     LPCWSTR             lpszAddressInW,
  1541.     DWORD               dwTollListOption
  1542.     );
  1543. #ifdef UNICODE
  1544. #define lineSetTollList lineSetTollListW
  1545. #else
  1546. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1547. #define lineSetTollList lineSetTollListA
  1548. #endif
  1549. #endif
  1550. #endif
  1551. LONG
  1552. WINAPI
  1553. lineSetupConference(
  1554.     HCALL               hCall,
  1555.     HLINE               hLine,
  1556.     LPHCALL             lphConfCall,
  1557.     LPHCALL             lphConsultCall,
  1558.     DWORD               dwNumParties,
  1559.     LPLINECALLPARAMS    const lpCallParams
  1560.     );
  1561. #if WIN32
  1562. LONG
  1563. WINAPI
  1564. lineSetupConferenceA(
  1565.     HCALL               hCall,
  1566.     HLINE               hLine,
  1567.     LPHCALL             lphConfCall,
  1568.     LPHCALL             lphConsultCall,
  1569.     DWORD               dwNumParties,
  1570.     LPLINECALLPARAMS    const lpCallParams
  1571.     );
  1572. LONG
  1573. WINAPI
  1574. lineSetupConferenceW(
  1575.     HCALL               hCall,
  1576.     HLINE               hLine,
  1577.     LPHCALL             lphConfCall,
  1578.     LPHCALL             lphConsultCall,
  1579.     DWORD               dwNumParties,
  1580.     LPLINECALLPARAMS    const lpCallParams
  1581.     );
  1582. #ifdef UNICODE
  1583. #define lineSetupConference lineSetupConferenceW
  1584. #else
  1585. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1586. #define lineSetupConference lineSetupConferenceA
  1587. #endif
  1588. #endif
  1589. #endif
  1590. LONG
  1591. WINAPI
  1592. lineSetupTransfer(
  1593.     HCALL               hCall,
  1594.     LPHCALL             lphConsultCall,
  1595.     LPLINECALLPARAMS    const lpCallParams
  1596.     );
  1597. #if WIN32
  1598. LONG
  1599. WINAPI
  1600. lineSetupTransferA(
  1601.     HCALL               hCall,
  1602.     LPHCALL             lphConsultCall,
  1603.     LPLINECALLPARAMS    const lpCallParams
  1604.     );
  1605. LONG
  1606. WINAPI
  1607. lineSetupTransferW(
  1608.     HCALL               hCall,
  1609.     LPHCALL             lphConsultCall,
  1610.     LPLINECALLPARAMS    const lpCallParams
  1611.     );
  1612. #ifdef UNICODE
  1613. #define lineSetupTransfer lineSetupTransferW
  1614. #else
  1615. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1616. #define lineSetupTransfer lineSetupTransferA
  1617. #endif
  1618. #endif
  1619. #endif
  1620. LONG
  1621. WINAPI
  1622. lineShutdown(
  1623.     HLINEAPP            hLineApp
  1624.     );
  1625. LONG
  1626. WINAPI
  1627. lineSwapHold(
  1628.     HCALL               hActiveCall,
  1629.     HCALL               hHeldCall
  1630.     );
  1631. LONG
  1632. WINAPI
  1633. lineTranslateAddress(
  1634.     HLINEAPP                hLineApp,
  1635.     DWORD                   dwDeviceID,
  1636.     DWORD                   dwAPIVersion,
  1637.     LPCSTR                  lpszAddressIn,
  1638.     DWORD                   dwCard,
  1639.     DWORD                   dwTranslateOptions,
  1640.     LPLINETRANSLATEOUTPUT   lpTranslateOutput
  1641.     );
  1642. #if WIN32
  1643. LONG
  1644. WINAPI
  1645. lineTranslateAddressA(
  1646.     HLINEAPP                hLineApp,
  1647.     DWORD                   dwDeviceID,
  1648.     DWORD                   dwAPIVersion,
  1649.     LPCSTR                  lpszAddressIn,
  1650.     DWORD                   dwCard,
  1651.     DWORD                   dwTranslateOptions,
  1652.     LPLINETRANSLATEOUTPUT   lpTranslateOutput
  1653.     );
  1654. LONG
  1655. WINAPI
  1656. lineTranslateAddressW(
  1657.     HLINEAPP                hLineApp,
  1658.     DWORD                   dwDeviceID,
  1659.     DWORD                   dwAPIVersion,
  1660.     LPCWSTR                 lpszAddressIn,
  1661.     DWORD                   dwCard,
  1662.     DWORD                   dwTranslateOptions,
  1663.     LPLINETRANSLATEOUTPUT   lpTranslateOutput
  1664.     );
  1665. #ifdef UNICODE
  1666. #define lineTranslateAddress lineTranslateAddressW
  1667. #else
  1668. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1669. #define lineTranslateAddress lineTranslateAddressA
  1670. #endif
  1671. #endif
  1672. #endif
  1673. LONG
  1674. WINAPI
  1675. lineTranslateDialog(                                            // TAPI v1.4
  1676.     HLINEAPP            hLineApp,
  1677.     DWORD               dwDeviceID,
  1678.     DWORD               dwAPIVersion,
  1679.     HWND                hwndOwner,
  1680.     LPCSTR              lpszAddressIn
  1681.     );
  1682. #if WIN32
  1683. LONG
  1684. WINAPI
  1685. lineTranslateDialogA(                                            // TAPI v1.4
  1686.     HLINEAPP            hLineApp,
  1687.     DWORD               dwDeviceID,
  1688.     DWORD               dwAPIVersion,
  1689.     HWND                hwndOwner,
  1690.     LPCSTR              lpszAddressIn
  1691.     );
  1692. LONG
  1693. WINAPI
  1694. lineTranslateDialogW(
  1695.     HLINEAPP            hLineApp,
  1696.     DWORD               dwDeviceID,
  1697.     DWORD               dwAPIVersion,
  1698.     HWND                hwndOwner,
  1699.     LPCWSTR             lpszAddressIn
  1700.     );
  1701. #ifdef UNICODE
  1702. #define lineTranslateDialog lineTranslateDialogW
  1703. #else
  1704. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1705. #define lineTranslateDialog lineTranslateDialogA
  1706. #endif
  1707. #endif
  1708. #endif
  1709. LONG
  1710. WINAPI
  1711. lineUncompleteCall(
  1712.     HLINE               hLine,
  1713.     DWORD               dwCompletionID
  1714.     );
  1715. LONG
  1716. WINAPI
  1717. lineUnhold(
  1718.     HCALL               hCall
  1719.     );
  1720. LONG
  1721. WINAPI
  1722. lineUnpark(
  1723.     HLINE               hLine,
  1724.     DWORD               dwAddressID,
  1725.     LPHCALL             lphCall,
  1726.     LPCSTR              lpszDestAddress
  1727.     );
  1728. #if WIN32
  1729. LONG
  1730. WINAPI
  1731. lineUnparkA(
  1732.     HLINE               hLine,
  1733.     DWORD               dwAddressID,
  1734.     LPHCALL             lphCall,
  1735.     LPCSTR              lpszDestAddress
  1736.     );
  1737. LONG
  1738. WINAPI
  1739. lineUnparkW(
  1740.     HLINE               hLine,
  1741.     DWORD               dwAddressID,
  1742.     LPHCALL             lphCall,
  1743.     LPCWSTR             lpszDestAddress
  1744.     );
  1745. #ifdef UNICODE
  1746. #define lineUnpark lineUnparkW
  1747. #else
  1748. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1749. #define lineUnpark lineUnparkA
  1750. #endif
  1751. #endif
  1752. #endif
  1753. LONG
  1754. WINAPI
  1755. phoneClose(
  1756.     HPHONE              hPhone
  1757.     );
  1758. LONG
  1759. WINAPI
  1760. phoneConfigDialog(
  1761.     DWORD               dwDeviceID,
  1762.     HWND                hwndOwner,
  1763.     LPCSTR              lpszDeviceClass
  1764.     );
  1765. #if WIN32
  1766. LONG
  1767. WINAPI
  1768. phoneConfigDialogA(
  1769.     DWORD               dwDeviceID,
  1770.     HWND                hwndOwner,
  1771.     LPCSTR              lpszDeviceClass
  1772.     );
  1773. LONG
  1774. WINAPI
  1775. phoneConfigDialogW(
  1776.     DWORD               dwDeviceID,
  1777.     HWND                hwndOwner,
  1778.     LPCWSTR             lpszDeviceClass
  1779.     );
  1780. #ifdef UNICODE
  1781. #define phoneConfigDialog phoneConfigDialogW
  1782. #else
  1783. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1784. #define phoneConfigDialog phoneConfigDialogA
  1785. #endif
  1786. #endif
  1787. #endif
  1788. LONG
  1789. WINAPI
  1790. phoneDevSpecific(
  1791.     HPHONE              hPhone,
  1792.     LPVOID              lpParams,
  1793.     DWORD               dwSize
  1794.     );
  1795. LONG
  1796. WINAPI
  1797. phoneGetButtonInfo(
  1798.     HPHONE              hPhone,
  1799.     DWORD               dwButtonLampID,
  1800.     LPPHONEBUTTONINFO   lpButtonInfo
  1801.     );
  1802. #if WIN32
  1803. LONG
  1804. WINAPI
  1805. phoneGetButtonInfoA(
  1806.     HPHONE              hPhone,
  1807.     DWORD               dwButtonLampID,
  1808.     LPPHONEBUTTONINFO   lpButtonInfo
  1809.     );
  1810. LONG
  1811. WINAPI
  1812. phoneGetButtonInfoW(
  1813.     HPHONE              hPhone,
  1814.     DWORD               dwButtonLampID,
  1815.     LPPHONEBUTTONINFO   lpButtonInfo
  1816.     );
  1817. #ifdef UNICODE
  1818. #define phoneGetButtonInfo phoneGetButtonInfoW
  1819. #else
  1820. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1821. #define phoneGetButtonInfo phoneGetButtonInfoA
  1822. #endif
  1823. #endif
  1824. #endif
  1825. LONG
  1826. WINAPI
  1827. phoneGetData(
  1828.     HPHONE              hPhone,
  1829.     DWORD               dwDataID,
  1830.     LPVOID              lpData,
  1831.     DWORD               dwSize
  1832.     );
  1833. LONG
  1834. WINAPI
  1835. phoneGetDevCaps(
  1836.     HPHONEAPP           hPhoneApp,
  1837.     DWORD               dwDeviceID,
  1838.     DWORD               dwAPIVersion,
  1839.     DWORD               dwExtVersion,
  1840.     LPPHONECAPS         lpPhoneCaps
  1841.     );
  1842. #if WIN32
  1843. LONG
  1844. WINAPI
  1845. phoneGetDevCapsA(
  1846.     HPHONEAPP           hPhoneApp,
  1847.     DWORD               dwDeviceID,
  1848.     DWORD               dwAPIVersion,
  1849.     DWORD               dwExtVersion,
  1850.     LPPHONECAPS         lpPhoneCaps
  1851.     );
  1852. LONG
  1853. WINAPI
  1854. phoneGetDevCapsW(
  1855.     HPHONEAPP           hPhoneApp,
  1856.     DWORD               dwDeviceID,
  1857.     DWORD               dwAPIVersion,
  1858.     DWORD               dwExtVersion,
  1859.     LPPHONECAPS         lpPhoneCaps
  1860.     );
  1861. #ifdef UNICODE
  1862. #define phoneGetDevCaps phoneGetDevCapsW
  1863. #else
  1864. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1865. #define phoneGetDevCaps phoneGetDevCapsA
  1866. #endif
  1867. #endif
  1868. #endif
  1869. LONG
  1870. WINAPI
  1871. phoneGetDisplay(
  1872.     HPHONE              hPhone,
  1873.     LPVARSTRING         lpDisplay
  1874.     );
  1875. LONG
  1876. WINAPI
  1877. phoneGetGain(
  1878.     HPHONE              hPhone,
  1879.     DWORD               dwHookSwitchDev,
  1880.     LPDWORD             lpdwGain
  1881.     );
  1882. LONG
  1883. WINAPI
  1884. phoneGetHookSwitch(
  1885.     HPHONE              hPhone,
  1886.     LPDWORD             lpdwHookSwitchDevs
  1887.     );
  1888. LONG
  1889. WINAPI
  1890. phoneGetIcon(
  1891.     DWORD               dwDeviceID,
  1892.     LPCSTR              lpszDeviceClass,
  1893.     LPHICON             lphIcon
  1894.     );
  1895. #if WIN32
  1896. LONG
  1897. WINAPI
  1898. phoneGetIconA(
  1899.     DWORD               dwDeviceID,
  1900.     LPCSTR              lpszDeviceClass,
  1901.     LPHICON             lphIcon
  1902.     );
  1903. LONG
  1904. WINAPI
  1905. phoneGetIconW(
  1906.     DWORD               dwDeviceID,
  1907.     LPCWSTR             lpszDeviceClass,
  1908.     LPHICON             lphIcon
  1909.     );
  1910. #ifdef UNICODE
  1911. #define phoneGetIcon phoneGetIconW
  1912. #else
  1913. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1914. #define phoneGetIcon phoneGetIconA
  1915. #endif
  1916. #endif
  1917. #endif
  1918. LONG
  1919. WINAPI
  1920. phoneGetID(
  1921.     HPHONE              hPhone,
  1922.     LPVARSTRING         lpDeviceID,
  1923.     LPCSTR              lpszDeviceClass
  1924.     );
  1925. #if WIN32
  1926. LONG
  1927. WINAPI
  1928. phoneGetIDA(
  1929.     HPHONE              hPhone,
  1930.     LPVARSTRING         lpDeviceID,
  1931.     LPCSTR              lpszDeviceClass
  1932.     );
  1933. LONG
  1934. WINAPI
  1935. phoneGetIDW(
  1936.     HPHONE              hPhone,
  1937.     LPVARSTRING         lpDeviceID,
  1938.     LPCWSTR             lpszDeviceClass
  1939.     );
  1940. #ifdef UNICODE
  1941. #define phoneGetID phoneGetIDW
  1942. #else
  1943. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1944. #define phoneGetID phoneGetIDA
  1945. #endif
  1946. #endif
  1947. #endif
  1948. LONG
  1949. WINAPI
  1950. phoneGetLamp(
  1951.     HPHONE              hPhone,
  1952.     DWORD               dwButtonLampID,
  1953.     LPDWORD             lpdwLampMode
  1954.     );
  1955. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1956. LONG
  1957. WINAPI
  1958. phoneGetMessage(                                                // TAPI v2.0
  1959.     HPHONEAPP       hPhoneApp,
  1960.     LPPHONEMESSAGE  lpMessage,
  1961.     DWORD           dwTimeout
  1962.     );
  1963. #endif
  1964. LONG
  1965. WINAPI
  1966. phoneGetRing(
  1967.     HPHONE              hPhone,
  1968.     LPDWORD             lpdwRingMode,
  1969.     LPDWORD             lpdwVolume
  1970.     );
  1971. LONG
  1972. WINAPI
  1973. phoneGetStatus(
  1974.     HPHONE              hPhone,
  1975.     LPPHONESTATUS       lpPhoneStatus
  1976.     );
  1977. #if WIN32
  1978. LONG
  1979. WINAPI
  1980. phoneGetStatusA(
  1981.     HPHONE              hPhone,
  1982.     LPPHONESTATUS       lpPhoneStatus
  1983.     );
  1984. LONG
  1985. WINAPI
  1986. phoneGetStatusW(
  1987.     HPHONE              hPhone,
  1988.     LPPHONESTATUS       lpPhoneStatus
  1989.     );
  1990. #ifdef UNICODE
  1991. #define phoneGetStatus phoneGetStatusW
  1992. #else
  1993. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  1994. #define phoneGetStatus phoneGetStatusA
  1995. #endif
  1996. #endif
  1997. #endif
  1998. LONG
  1999. WINAPI
  2000. phoneGetStatusMessages(
  2001.     HPHONE              hPhone,
  2002.     LPDWORD             lpdwPhoneStates,
  2003.     LPDWORD             lpdwButtonModes,
  2004.     LPDWORD             lpdwButtonStates
  2005.     );
  2006. LONG
  2007. WINAPI
  2008. phoneGetVolume(
  2009.     HPHONE              hPhone,
  2010.     DWORD               dwHookSwitchDev,
  2011.     LPDWORD             lpdwVolume
  2012.     );
  2013. LONG
  2014. WINAPI
  2015. phoneInitialize(
  2016.     LPHPHONEAPP         lphPhoneApp,
  2017.     HINSTANCE           hInstance,
  2018.     PHONECALLBACK       lpfnCallback,
  2019.     LPCSTR              lpszAppName,
  2020.     LPDWORD             lpdwNumDevs
  2021.     );
  2022. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  2023. LONG
  2024. WINAPI
  2025. phoneInitializeExA(                                              // TAPI v2.0
  2026.     LPHPHONEAPP                 lphPhoneApp,
  2027.     HINSTANCE                   hInstance,
  2028.     PHONECALLBACK               lpfnCallback,
  2029.     LPCSTR                      lpszFriendlyAppName,
  2030.     LPDWORD                     lpdwNumDevs,
  2031.     LPDWORD                     lpdwAPIVersion,
  2032.     LPPHONEINITIALIZEEXPARAMS   lpPhoneInitializeExParams
  2033.     );
  2034. LONG
  2035. WINAPI
  2036. phoneInitializeExW(                                              // TAPI v2.0
  2037.     LPHPHONEAPP                 lphPhoneApp,
  2038.     HINSTANCE                   hInstance,
  2039.     PHONECALLBACK               lpfnCallback,
  2040.     LPCWSTR                     lpszFriendlyAppName,
  2041.     LPDWORD                     lpdwNumDevs,
  2042.     LPDWORD                     lpdwAPIVersion,
  2043.     LPPHONEINITIALIZEEXPARAMS   lpPhoneInitializeExParams
  2044.     );
  2045. #ifdef UNICODE
  2046. #define phoneInitializeEx phoneInitializeExW
  2047. #else
  2048. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  2049. #define phoneInitializeEx phoneInitializeExA
  2050. #endif
  2051. #endif
  2052. #endif
  2053. LONG
  2054. WINAPI
  2055. phoneNegotiateAPIVersion(
  2056.     HPHONEAPP           hPhoneApp,
  2057.     DWORD               dwDeviceID,
  2058.     DWORD               dwAPILowVersion,
  2059.     DWORD               dwAPIHighVersion,
  2060.     LPDWORD             lpdwAPIVersion,
  2061.     LPPHONEEXTENSIONID  lpExtensionID
  2062.     );
  2063. LONG
  2064. WINAPI
  2065. phoneNegotiateExtVersion(
  2066.     HPHONEAPP           hPhoneApp,
  2067.     DWORD               dwDeviceID,
  2068.     DWORD               dwAPIVersion,
  2069.     DWORD               dwExtLowVersion,
  2070.     DWORD               dwExtHighVersion,
  2071.     LPDWORD             lpdwExtVersion
  2072.     );
  2073. LONG
  2074. WINAPI
  2075. phoneOpen(
  2076.     HPHONEAPP           hPhoneApp,
  2077.     DWORD               dwDeviceID,
  2078.     LPHPHONE            lphPhone,
  2079.     DWORD               dwAPIVersion,
  2080.     DWORD               dwExtVersion,
  2081.     DWORD_PTR           dwCallbackInstance,
  2082.     DWORD               dwPrivilege
  2083.     );
  2084. LONG
  2085. WINAPI
  2086. phoneSetButtonInfo(
  2087.     HPHONE              hPhone,
  2088.     DWORD               dwButtonLampID,
  2089.     LPPHONEBUTTONINFO   const lpButtonInfo
  2090.     );
  2091. #if WIN32
  2092. LONG
  2093. WINAPI
  2094. phoneSetButtonInfoA(
  2095.     HPHONE              hPhone,
  2096.     DWORD               dwButtonLampID,
  2097.     LPPHONEBUTTONINFO   const lpButtonInfo
  2098.     );
  2099. LONG
  2100. WINAPI
  2101. phoneSetButtonInfoW(
  2102.     HPHONE              hPhone,
  2103.     DWORD               dwButtonLampID,
  2104.     LPPHONEBUTTONINFO   const lpButtonInfo
  2105.     );
  2106. #ifdef UNICODE
  2107. #define phoneSetButtonInfo phoneSetButtonInfoW
  2108. #else
  2109. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  2110. #define phoneSetButtonInfo phoneSetButtonInfoA
  2111. #endif
  2112. #endif
  2113. #endif
  2114. LONG
  2115. WINAPI
  2116. phoneSetData(
  2117.     HPHONE              hPhone,
  2118.     DWORD               dwDataID,
  2119.     LPVOID              const lpData,
  2120.     DWORD               dwSize
  2121.     );
  2122. LONG
  2123. WINAPI
  2124. phoneSetDisplay(
  2125.     HPHONE              hPhone,
  2126.     DWORD               dwRow,
  2127.     DWORD               dwColumn,
  2128.     LPCSTR              lpsDisplay,
  2129.     DWORD               dwSize
  2130.     );
  2131. LONG
  2132. WINAPI
  2133. phoneSetGain(
  2134.     HPHONE              hPhone,
  2135.     DWORD               dwHookSwitchDev,
  2136.     DWORD               dwGain
  2137.     );
  2138. LONG
  2139. WINAPI
  2140. phoneSetHookSwitch(
  2141.     HPHONE              hPhone,
  2142.     DWORD               dwHookSwitchDevs,
  2143.     DWORD               dwHookSwitchMode
  2144.     );
  2145. LONG
  2146. WINAPI
  2147. phoneSetLamp(
  2148.     HPHONE              hPhone,
  2149.     DWORD               dwButtonLampID,
  2150.     DWORD               dwLampMode
  2151.     );
  2152. LONG
  2153. WINAPI
  2154. phoneSetRing(
  2155.     HPHONE              hPhone,
  2156.     DWORD               dwRingMode,
  2157.     DWORD               dwVolume
  2158.     );
  2159. LONG
  2160. WINAPI
  2161. phoneSetStatusMessages(
  2162.     HPHONE              hPhone,
  2163.     DWORD               dwPhoneStates,
  2164.     DWORD               dwButtonModes,
  2165.     DWORD               dwButtonStates
  2166.     );
  2167. LONG
  2168. WINAPI
  2169. phoneSetVolume(
  2170.     HPHONE              hPhone,
  2171.     DWORD               dwHookSwitchDev,
  2172.     DWORD               dwVolume
  2173.     );
  2174. LONG
  2175. WINAPI
  2176. phoneShutdown(
  2177.     HPHONEAPP           hPhoneApp
  2178.     );
  2179. LONG
  2180. WINAPI
  2181. tapiGetLocationInfo(
  2182.     LPSTR               lpszCountryCode,
  2183.     LPSTR               lpszCityCode
  2184.     );
  2185. #if WIN32
  2186. LONG
  2187. WINAPI
  2188. tapiGetLocationInfoA(
  2189.     LPSTR               lpszCountryCode,
  2190.     LPSTR               lpszCityCode
  2191.     );
  2192. LONG
  2193. WINAPI
  2194. tapiGetLocationInfoW(
  2195.     LPWSTR               lpszCountryCodeW,
  2196.     LPWSTR               lpszCityCodeW
  2197.     );
  2198. #ifdef UNICODE
  2199. #define tapiGetLocationInfo tapiGetLocationInfoW
  2200. #else
  2201. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  2202. #define tapiGetLocationInfo tapiGetLocationInfoA
  2203. #endif
  2204. #endif
  2205. #endif
  2206. LONG
  2207. WINAPI
  2208. tapiRequestDrop(
  2209.     HWND                hwnd,
  2210.     WPARAM              wRequestID
  2211.     );
  2212. LONG
  2213. WINAPI
  2214. tapiRequestMakeCall(
  2215.     LPCSTR              lpszDestAddress,
  2216.     LPCSTR              lpszAppName,
  2217.     LPCSTR              lpszCalledParty,
  2218.     LPCSTR              lpszComment
  2219.     );
  2220. #if WIN32
  2221. LONG
  2222. WINAPI
  2223. tapiRequestMakeCallA(
  2224.     LPCSTR              lpszDestAddress,
  2225.     LPCSTR              lpszAppName,
  2226.     LPCSTR              lpszCalledParty,
  2227.     LPCSTR              lpszComment
  2228.     );
  2229. LONG
  2230. WINAPI
  2231. tapiRequestMakeCallW(
  2232.     LPCWSTR              lpszDestAddress,
  2233.     LPCWSTR              lpszAppName,
  2234.     LPCWSTR              lpszCalledParty,
  2235.     LPCWSTR              lpszComment
  2236.     );
  2237. #ifdef UNICODE
  2238. #define tapiRequestMakeCall tapiRequestMakeCallW
  2239. #else
  2240. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  2241. #define tapiRequestMakeCall tapiRequestMakeCallA
  2242. #endif
  2243. #endif
  2244. #endif
  2245. LONG
  2246. WINAPI
  2247. tapiRequestMediaCall(
  2248.     HWND                hwnd,
  2249.     WPARAM              wRequestID,
  2250.     LPCSTR              lpszDeviceClass,
  2251.     LPCSTR              lpDeviceID,
  2252.     DWORD               dwSize,
  2253.     DWORD               dwSecure,
  2254.     LPCSTR              lpszDestAddress,
  2255.     LPCSTR              lpszAppName,
  2256.     LPCSTR              lpszCalledParty,
  2257.     LPCSTR              lpszComment
  2258.     );
  2259. #if WIN32
  2260. LONG
  2261. WINAPI
  2262. tapiRequestMediaCallA(
  2263.     HWND                hwnd,
  2264.     WPARAM              wRequestID,
  2265.     LPCSTR              lpszDeviceClass,
  2266.     LPCSTR              lpDeviceID,
  2267.     DWORD               dwSize,
  2268.     DWORD               dwSecure,
  2269.     LPCSTR              lpszDestAddress,
  2270.     LPCSTR              lpszAppName,
  2271.     LPCSTR              lpszCalledParty,
  2272.     LPCSTR              lpszComment
  2273.     );
  2274. LONG
  2275. WINAPI
  2276. tapiRequestMediaCallW(
  2277.     HWND                hwnd,
  2278.     WPARAM              wRequestID,
  2279.     LPCWSTR             lpszDeviceClass,
  2280.     LPCWSTR             lpDeviceID,
  2281.     DWORD               dwSize,
  2282.     DWORD               dwSecure,
  2283.     LPCWSTR             lpszDestAddress,
  2284.     LPCWSTR             lpszAppName,
  2285.     LPCWSTR             lpszCalledParty,
  2286.     LPCWSTR             lpszComment
  2287.     );
  2288. #ifdef UNICODE
  2289. #define tapiRequestMediaCall tapiRequestMediaCallW
  2290. #else
  2291. #if (TAPI_CURRENT_VERSION >= 0x00020000)
  2292. #define tapiRequestMediaCall tapiRequestMediaCallA
  2293. #endif
  2294. #endif
  2295. #endif
  2296. /*
  2297. TAPIERROR_FORMATMESSAGE - macro to convert a TAPI error constant
  2298.     into a constant that FormatMessage will accept
  2299.         TAPIERR : Negative numbers and 0
  2300.             Map to : strip off high WORD
  2301.             Example: 0xFFFFFFFF (-1) becomes 0x0000FFFF
  2302.         LINEERR : Start at 0x80000000
  2303.             Map to : strip off 0x80000000 and add 0xE000
  2304.             Example: 0x80000004 becomes 0x0000E004
  2305.         PHONEERR: Start at 0x90000000
  2306.             Map to : strip off 0x90000000 and add 0xF000
  2307.             Example: 0x9000000A becomes 0x0000F00A
  2308.         pseudocode:
  2309.         if (__ErrCode__ is a TAPIERR)
  2310.             strip off high word
  2311.             else if (__ErrCode__ is a PHONEERR)
  2312.                 strip off 0x90000000
  2313.                 add 0xE000
  2314.                 else
  2315.                     strip off 0x80000000
  2316.                     add 0xF000
  2317. */
  2318. #define TAPIERROR_FORMATMESSAGE(__ErrCode__)                                                   
  2319.                                                                                                
  2320.                     ( ( (__ErrCode__) > 0xFFFF0000 ) ?                                         
  2321.                                                                                                
  2322.                             ( (__ErrCode__) & 0x0000FFFF ) :                                   
  2323.                                                                                                
  2324.                             ( ( (__ErrCode__) & 0x10000000 ) ?                                 
  2325.                                                                                                
  2326.                               ( (__ErrCode__) - 0x90000000 + 0xF000 ) :                        
  2327.                                                                                                
  2328.                               ( (__ErrCode__) - 0x80000000 + 0xE000 ) ) )
  2329. #ifdef __cplusplus
  2330. }                       /* End of extern "C" { */
  2331. #endif  /* __cplusplus */
  2332. #pragma pack()
  2333. #endif // TAPI_H