Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2119 lines
63 KiB

  1. // The Telephony API is jointly copyrighted by Intel and Microsoft. You are
  2. // granted a royalty free worldwide, unlimited license to make copies, and use
  3. // the API/SPI for making applications/drivers that interface with the
  4. // specification provided that this paragraph and the Intel/Microsoft copyright
  5. // statement is maintained as is in the text and source code files.
  6. //
  7. // Copyright 1994 Microsoft, all rights reserved.
  8. // Portions copyright 1992, 1993 Intel/Microsoft, all rights reserved.
  9. #ifndef TAPI_H
  10. #define TAPI_H
  11. #include <windows.h>
  12. #pragma pack(1)
  13. // Type definitions of the data types used in tapi
  14. #ifdef __cplusplus
  15. extern "C" { /* Assume C declarations for C++ */
  16. #endif /* __cplusplus */
  17. #define DECLARE_OPAQUE32(name) struct name##__ { int unused; }; \
  18. typedef const struct name##__ FAR* name
  19. DECLARE_OPAQUE32(HCALL);
  20. typedef HCALL FAR * LPHCALL;
  21. DECLARE_OPAQUE32(HLINE);
  22. typedef HLINE FAR * LPHLINE;
  23. DECLARE_OPAQUE32(HPHONE);
  24. typedef HPHONE FAR * LPHPHONE;
  25. DECLARE_OPAQUE32(HLINEAPP);
  26. typedef HLINEAPP FAR * LPHLINEAPP;
  27. DECLARE_OPAQUE32(HPHONEAPP);
  28. typedef HPHONEAPP FAR * LPHPHONEAPP;
  29. typedef HICON FAR * LPHICON;
  30. // typedef of the LINE callback procedure
  31. typedef void (CALLBACK * LINECALLBACK) (DWORD hDevice,
  32. DWORD dwMessage,
  33. DWORD dwInstance,
  34. DWORD dwParam1,
  35. DWORD dwParam2,
  36. DWORD dwParam3);
  37. // typedef of the PHONE callback procedure
  38. typedef void (CALLBACK * PHONECALLBACK) (DWORD hDevice,
  39. DWORD dwMessage,
  40. DWORD dwInstance,
  41. DWORD dwParam1,
  42. DWORD dwParam2,
  43. DWORD dwParam3);
  44. // Messages for Phones and Lines
  45. #define LINE_ADDRESSSTATE 0L
  46. #define LINE_CALLINFO 1L
  47. #define LINE_CALLSTATE 2L
  48. #define LINE_CLOSE 3L
  49. #define LINE_DEVSPECIFIC 4L
  50. #define LINE_DEVSPECIFICFEATURE 5L
  51. #define LINE_GATHERDIGITS 6L
  52. #define LINE_GENERATE 7L
  53. #define LINE_LINEDEVSTATE 8L
  54. #define LINE_MONITORDIGITS 9L
  55. #define LINE_MONITORMEDIA 10L
  56. #define LINE_MONITORTONE 11L
  57. #define LINE_REPLY 12L
  58. #define LINE_REQUEST 13L
  59. #define PHONE_BUTTON 14L
  60. #define PHONE_CLOSE 15L
  61. #define PHONE_DEVSPECIFIC 16L
  62. #define PHONE_REPLY 17L
  63. #define PHONE_STATE 18L
  64. #define LINE_CREATE 19L
  65. #define PHONE_CREATE 20L
  66. // Define Simple Telephony Constants.
  67. #define TAPI_REPLY WM_USER + 99
  68. #define TAPIERR_CONNECTED 0L
  69. #define TAPIERR_DROPPED -1L
  70. #define TAPIERR_NOREQUESTRECIPIENT -2L
  71. #define TAPIERR_REQUESTQUEUEFULL -3L
  72. #define TAPIERR_INVALDESTADDRESS -4L
  73. #define TAPIERR_INVALWINDOWHANDLE -5L
  74. #define TAPIERR_INVALDEVICECLASS -6L
  75. #define TAPIERR_INVALDEVICEID -7L
  76. #define TAPIERR_DEVICECLASSUNAVAIL -8L
  77. #define TAPIERR_DEVICEIDUNAVAIL -9L
  78. #define TAPIERR_DEVICEINUSE -10L
  79. #define TAPIERR_DESTBUSY -11L
  80. #define TAPIERR_DESTNOANSWER -12L
  81. #define TAPIERR_DESTUNAVAIL -13L
  82. #define TAPIERR_UNKNOWNWINHANDLE -14L
  83. #define TAPIERR_UNKNOWNREQUESTID -15L
  84. #define TAPIERR_REQUESTFAILED -16L
  85. #define TAPIERR_REQUESTCANCELLED -17L
  86. #define TAPIERR_INVALPOINTER -18L
  87. #define TAPIMAXDESTADDRESSSIZE 80L
  88. #define TAPIMAXAPPNAMESIZE 40L
  89. #define TAPIMAXCALLEDPARTYSIZE 40L
  90. #define TAPIMAXCOMMENTSIZE 80L
  91. #define TAPIMAXDEVICECLASSSIZE 40L
  92. #define TAPIMAXDEVICEIDSIZE 40L
  93. // Data types and values for Phones
  94. #define PHONEBUTTONFUNCTION_UNKNOWN 0x00000000
  95. #define PHONEBUTTONFUNCTION_CONFERENCE 0x00000001
  96. #define PHONEBUTTONFUNCTION_TRANSFER 0x00000002
  97. #define PHONEBUTTONFUNCTION_DROP 0x00000003
  98. #define PHONEBUTTONFUNCTION_HOLD 0x00000004
  99. #define PHONEBUTTONFUNCTION_RECALL 0x00000005
  100. #define PHONEBUTTONFUNCTION_DISCONNECT 0x00000006
  101. #define PHONEBUTTONFUNCTION_CONNECT 0x00000007
  102. #define PHONEBUTTONFUNCTION_MSGWAITON 0x00000008
  103. #define PHONEBUTTONFUNCTION_MSGWAITOFF 0x00000009
  104. #define PHONEBUTTONFUNCTION_SELECTRING 0x0000000A
  105. #define PHONEBUTTONFUNCTION_ABBREVDIAL 0x0000000B
  106. #define PHONEBUTTONFUNCTION_FORWARD 0x0000000C
  107. #define PHONEBUTTONFUNCTION_PICKUP 0x0000000D
  108. #define PHONEBUTTONFUNCTION_RINGAGAIN 0x0000000E
  109. #define PHONEBUTTONFUNCTION_PARK 0x0000000F
  110. #define PHONEBUTTONFUNCTION_REJECT 0x00000010
  111. #define PHONEBUTTONFUNCTION_REDIRECT 0x00000011
  112. #define PHONEBUTTONFUNCTION_MUTE 0x00000012
  113. #define PHONEBUTTONFUNCTION_VOLUMEUP 0x00000013
  114. #define PHONEBUTTONFUNCTION_VOLUMEDOWN 0x00000014
  115. #define PHONEBUTTONFUNCTION_SPEAKERON 0x00000015
  116. #define PHONEBUTTONFUNCTION_SPEAKEROFF 0x00000016
  117. #define PHONEBUTTONFUNCTION_FLASH 0x00000017
  118. #define PHONEBUTTONFUNCTION_DATAON 0x00000018
  119. #define PHONEBUTTONFUNCTION_DATAOFF 0x00000019
  120. #define PHONEBUTTONFUNCTION_DONOTDISTURB 0x0000001A
  121. #define PHONEBUTTONFUNCTION_INTERCOM 0x0000001B
  122. #define PHONEBUTTONFUNCTION_BRIDGEDAPP 0x0000001C
  123. #define PHONEBUTTONFUNCTION_BUSY 0x0000001D
  124. #define PHONEBUTTONFUNCTION_CALLAPP 0x0000001E
  125. #define PHONEBUTTONFUNCTION_DATETIME 0x0000001F
  126. #define PHONEBUTTONFUNCTION_DIRECTORY 0x00000020
  127. #define PHONEBUTTONFUNCTION_COVER 0x00000021
  128. #define PHONEBUTTONFUNCTION_CALLID 0x00000022
  129. #define PHONEBUTTONFUNCTION_LASTNUM 0x00000023
  130. #define PHONEBUTTONFUNCTION_NIGHTSRV 0x00000024
  131. #define PHONEBUTTONFUNCTION_SENDCALLS 0x00000025
  132. #define PHONEBUTTONFUNCTION_MSGINDICATOR 0x00000026
  133. #define PHONEBUTTONFUNCTION_REPDIAL 0x00000027
  134. #define PHONEBUTTONFUNCTION_SETREPDIAL 0x00000028
  135. #define PHONEBUTTONFUNCTION_SYSTEMSPEED 0x00000029
  136. #define PHONEBUTTONFUNCTION_STATIONSPEED 0x0000002A
  137. #define PHONEBUTTONFUNCTION_CAMPON 0x0000002B
  138. #define PHONEBUTTONFUNCTION_SAVEREPEAT 0x0000002C
  139. #define PHONEBUTTONFUNCTION_QUEUECALL 0x0000002D
  140. #define PHONEBUTTONFUNCTION_NONE 0x0000002E
  141. typedef struct phonebuttoninfo_tag {
  142. DWORD dwTotalSize;
  143. DWORD dwNeededSize;
  144. DWORD dwUsedSize;
  145. DWORD dwButtonMode;
  146. DWORD dwButtonFunction;
  147. DWORD dwButtonTextSize;
  148. DWORD dwButtonTextOffset;
  149. DWORD dwDevSpecificSize;
  150. DWORD dwDevSpecificOffset;
  151. } PHONEBUTTONINFO, FAR *LPPHONEBUTTONINFO;
  152. #define PHONEBUTTONMODE_DUMMY 0x00000001
  153. #define PHONEBUTTONMODE_CALL 0x00000002
  154. #define PHONEBUTTONMODE_FEATURE 0x00000004
  155. #define PHONEBUTTONMODE_KEYPAD 0x00000008
  156. #define PHONEBUTTONMODE_LOCAL 0x00000010
  157. #define PHONEBUTTONMODE_DISPLAY 0x00000020
  158. #define PHONEBUTTONSTATE_UP 0x00000001
  159. #define PHONEBUTTONSTATE_DOWN 0x00000002
  160. typedef struct phoneextensionid_tag {
  161. DWORD dwExtensionID0;
  162. DWORD dwExtensionID1;
  163. DWORD dwExtensionID2;
  164. DWORD dwExtensionID3;
  165. } PHONEEXTENSIONID, FAR *LPPHONEEXTENSIONID;
  166. typedef struct phonecaps_tag {
  167. DWORD dwTotalSize;
  168. DWORD dwNeededSize;
  169. DWORD dwUsedSize;
  170. DWORD dwProviderInfoSize;
  171. DWORD dwProviderInfoOffset;
  172. DWORD dwPhoneInfoSize;
  173. DWORD dwPhoneInfoOffset;
  174. DWORD dwPermanentPhoneID;
  175. DWORD dwPhoneNameSize;
  176. DWORD dwPhoneNameOffset;
  177. DWORD dwStringFormat;
  178. DWORD dwPhoneStates;
  179. DWORD dwHookSwitchDevs;
  180. DWORD dwHandsetHookSwitchModes;
  181. DWORD dwSpeakerHookSwitchModes;
  182. DWORD dwHeadsetHookSwitchModes;
  183. DWORD dwVolumeFlags;
  184. DWORD dwGainFlags;
  185. DWORD dwDisplayNumRows;
  186. DWORD dwDisplayNumColumns;
  187. DWORD dwNumRingModes;
  188. DWORD dwNumButtonLamps;
  189. DWORD dwButtonModesSize;
  190. DWORD dwButtonModesOffset;
  191. DWORD dwButtonFunctionsSize;
  192. DWORD dwButtonFunctionsOffset;
  193. DWORD dwLampModesSize;
  194. DWORD dwLampModesOffset;
  195. DWORD dwNumSetData;
  196. DWORD dwSetDataSize;
  197. DWORD dwSetDataOffset;
  198. DWORD dwNumGetData;
  199. DWORD dwGetDataSize;
  200. DWORD dwGetDataOffset;
  201. DWORD dwDevSpecificSize;
  202. DWORD dwDevSpecificOffset;
  203. } PHONECAPS, FAR *LPPHONECAPS;
  204. #define PHONEERR_ALLOCATED 0x90000001
  205. #define PHONEERR_BADDEVICEID 0x90000002
  206. #define PHONEERR_INCOMPATIBLEAPIVERSION 0x90000003
  207. #define PHONEERR_INCOMPATIBLEEXTVERSION 0x90000004
  208. #define PHONEERR_INIFILECORRUPT 0x90000005
  209. #define PHONEERR_INUSE 0x90000006
  210. #define PHONEERR_INVALAPPHANDLE 0x90000007
  211. #define PHONEERR_INVALAPPNAME 0x90000008
  212. #define PHONEERR_INVALBUTTONLAMPID 0x90000009
  213. #define PHONEERR_INVALBUTTONMODE 0x9000000A
  214. #define PHONEERR_INVALBUTTONSTATE 0x9000000B
  215. #define PHONEERR_INVALDATAID 0x9000000C
  216. #define PHONEERR_INVALDEVICECLASS 0x9000000D
  217. #define PHONEERR_INVALEXTVERSION 0x9000000E
  218. #define PHONEERR_INVALHOOKSWITCHDEV 0x9000000F
  219. #define PHONEERR_INVALHOOKSWITCHMODE 0x90000010
  220. #define PHONEERR_INVALLAMPMODE 0x90000011
  221. #define PHONEERR_INVALPARAM 0x90000012
  222. #define PHONEERR_INVALPHONEHANDLE 0x90000013
  223. #define PHONEERR_INVALPHONESTATE 0x90000014
  224. #define PHONEERR_INVALPOINTER 0x90000015
  225. #define PHONEERR_INVALPRIVILEGE 0x90000016
  226. #define PHONEERR_INVALRINGMODE 0x90000017
  227. #define PHONEERR_NODEVICE 0x90000018
  228. #define PHONEERR_NODRIVER 0x90000019
  229. #define PHONEERR_NOMEM 0x9000001A
  230. #define PHONEERR_NOTOWNER 0x9000001B
  231. #define PHONEERR_OPERATIONFAILED 0x9000001C
  232. #define PHONEERR_OPERATIONUNAVAIL 0x9000001D
  233. #define PHONEERR_RESOURCEUNAVAIL 0x9000001F
  234. #define PHONEERR_REQUESTOVERRUN 0x90000020
  235. #define PHONEERR_STRUCTURETOOSMALL 0x90000021
  236. #define PHONEERR_UNINITIALIZED 0x90000022
  237. #define PHONEERR_REINIT 0x90000023
  238. #define PHONEHOOKSWITCHDEV_HANDSET 0x00000001
  239. #define PHONEHOOKSWITCHDEV_SPEAKER 0x00000002
  240. #define PHONEHOOKSWITCHDEV_HEADSET 0x00000004
  241. #define PHONEHOOKSWITCHMODE_ONHOOK 0x00000001
  242. #define PHONEHOOKSWITCHMODE_MIC 0x00000002
  243. #define PHONEHOOKSWITCHMODE_SPEAKER 0x00000004
  244. #define PHONEHOOKSWITCHMODE_MICSPEAKER 0x00000008
  245. #define PHONEHOOKSWITCHMODE_UNKNOWN 0x00000010
  246. #define PHONELAMPMODE_DUMMY 0x00000001
  247. #define PHONELAMPMODE_OFF 0x00000002
  248. #define PHONELAMPMODE_STEADY 0x00000004
  249. #define PHONELAMPMODE_WINK 0x00000008
  250. #define PHONELAMPMODE_FLASH 0x00000010
  251. #define PHONELAMPMODE_FLUTTER 0x00000020
  252. #define PHONELAMPMODE_BROKENFLUTTER 0x00000040
  253. #define PHONELAMPMODE_UNKNOWN 0x00000080
  254. #define PHONEPRIVILEGE_MONITOR 0x00000001
  255. #define PHONEPRIVILEGE_OWNER 0x00000002
  256. #define PHONESTATE_OTHER 0x00000001
  257. #define PHONESTATE_CONNECTED 0x00000002
  258. #define PHONESTATE_DISCONNECTED 0x00000004
  259. #define PHONESTATE_OWNER 0x00000008
  260. #define PHONESTATE_MONITORS 0x00000010
  261. #define PHONESTATE_DISPLAY 0x00000020
  262. #define PHONESTATE_LAMP 0x00000040
  263. #define PHONESTATE_RINGMODE 0x00000080
  264. #define PHONESTATE_RINGVOLUME 0x00000100
  265. #define PHONESTATE_HANDSETHOOKSWITCH 0x00000200
  266. #define PHONESTATE_HANDSETVOLUME 0x00000400
  267. #define PHONESTATE_HANDSETGAIN 0x00000800
  268. #define PHONESTATE_SPEAKERHOOKSWITCH 0x00001000
  269. #define PHONESTATE_SPEAKERVOLUME 0x00002000
  270. #define PHONESTATE_SPEAKERGAIN 0x00004000
  271. #define PHONESTATE_HEADSETHOOKSWITCH 0x00008000
  272. #define PHONESTATE_HEADSETVOLUME 0x00010000
  273. #define PHONESTATE_HEADSETGAIN 0x00020000
  274. #define PHONESTATE_SUSPEND 0x00040000
  275. #define PHONESTATE_RESUME 0x00080000
  276. #define PHONESTATE_DEVSPECIFIC 0x00100000
  277. #define PHONESTATE_REINIT 0x00200000
  278. /* Tapi 1.1 change */
  279. #define PHONESTATE_CAPSCHANGE 0x00400000
  280. typedef struct phonestatus_tag {
  281. DWORD dwTotalSize;
  282. DWORD dwNeededSize;
  283. DWORD dwUsedSize;
  284. DWORD dwStatusFlags;
  285. DWORD dwNumOwners;
  286. DWORD dwNumMonitors;
  287. DWORD dwRingMode;
  288. DWORD dwRingVolume;
  289. DWORD dwHandsetHookSwitchMode;
  290. DWORD dwHandsetVolume;
  291. DWORD dwHandsetGain;
  292. DWORD dwSpeakerHookSwitchMode;
  293. DWORD dwSpeakerVolume;
  294. DWORD dwSpeakerGain;
  295. DWORD dwHeadsetHookSwitchMode;
  296. DWORD dwHeadsetVolume;
  297. DWORD dwHeadsetGain;
  298. DWORD dwDisplaySize;
  299. DWORD dwDisplayOffset;
  300. DWORD dwLampModesSize;
  301. DWORD dwLampModesOffset;
  302. DWORD dwOwnerNameSize;
  303. DWORD dwOwnerNameOffset;
  304. DWORD dwDevSpecificSize;
  305. DWORD dwDevSpecificOffset;
  306. } PHONESTATUS, FAR *LPPHONESTATUS;
  307. #define PHONESTATUSFLAGS_CONNECTED 0x00000001
  308. #define PHONESTATUSFLAGS_SUSPENDED 0x00000002
  309. #define STRINGFORMAT_ASCII 0x00000001
  310. #define STRINGFORMAT_DBCS 0x00000002
  311. #define STRINGFORMAT_UNICODE 0x00000003
  312. #define STRINGFORMAT_BINARY 0x00000004
  313. typedef struct varstring_tag {
  314. DWORD dwTotalSize;
  315. DWORD dwNeededSize;
  316. DWORD dwUsedSize;
  317. DWORD dwStringFormat;
  318. DWORD dwStringSize;
  319. DWORD dwStringOffset;
  320. } VARSTRING, FAR *LPVARSTRING;
  321. // Data types and values for Lines
  322. #define LINEADDRCAPFLAGS_FWDNUMRINGS 0x00000001
  323. #define LINEADDRCAPFLAGS_PICKUPGROUPID 0x00000002
  324. #define LINEADDRCAPFLAGS_SECURE 0x00000004
  325. #define LINEADDRCAPFLAGS_BLOCKIDDEFAULT 0x00000008
  326. #define LINEADDRCAPFLAGS_BLOCKIDOVERRIDE 0x00000010
  327. #define LINEADDRCAPFLAGS_DIALED 0x00000020
  328. #define LINEADDRCAPFLAGS_ORIGOFFHOOK 0x00000040
  329. #define LINEADDRCAPFLAGS_DESTOFFHOOK 0x00000080
  330. #define LINEADDRCAPFLAGS_FWDCONSULT 0x00000100
  331. #define LINEADDRCAPFLAGS_SETUPCONFNULL 0x00000200
  332. #define LINEADDRCAPFLAGS_AUTORECONNECT 0x00000400
  333. #define LINEADDRCAPFLAGS_COMPLETIONID 0x00000800
  334. #define LINEADDRCAPFLAGS_TRANSFERHELD 0x00001000
  335. #define LINEADDRCAPFLAGS_TRANSFERMAKE 0x00002000
  336. #define LINEADDRCAPFLAGS_CONFERENCEHELD 0x00004000
  337. #define LINEADDRCAPFLAGS_CONFERENCEMAKE 0x00008000
  338. #define LINEADDRCAPFLAGS_PARTIALDIAL 0x00010000
  339. #define LINEADDRCAPFLAGS_FWDSTATUSVALID 0x00020000
  340. #define LINEADDRCAPFLAGS_FWDINTEXTADDR 0x00040000
  341. #define LINEADDRCAPFLAGS_FWDBUSYNAADDR 0x00080000
  342. #define LINEADDRCAPFLAGS_ACCEPTTOALERT 0x00100000
  343. #define LINEADDRCAPFLAGS_CONFDROP 0x00200000
  344. #define LINEADDRCAPFLAGS_PICKUPCALLWAIT 0x00400000
  345. typedef struct lineaddresscaps_tag {
  346. DWORD dwTotalSize;
  347. DWORD dwNeededSize;
  348. DWORD dwUsedSize;
  349. DWORD dwLineDeviceID;
  350. DWORD dwAddressSize;
  351. DWORD dwAddressOffset;
  352. DWORD dwDevSpecificSize;
  353. DWORD dwDevSpecificOffset;
  354. DWORD dwAddressSharing;
  355. DWORD dwAddressStates;
  356. DWORD dwCallInfoStates;
  357. DWORD dwCallerIDFlags;
  358. DWORD dwCalledIDFlags;
  359. DWORD dwConnectedIDFlags;
  360. DWORD dwRedirectionIDFlags;
  361. DWORD dwRedirectingIDFlags;
  362. DWORD dwCallStates;
  363. DWORD dwDialToneModes;
  364. DWORD dwBusyModes;
  365. DWORD dwSpecialInfo;
  366. DWORD dwDisconnectModes;
  367. DWORD dwMaxNumActiveCalls;
  368. DWORD dwMaxNumOnHoldCalls;
  369. DWORD dwMaxNumOnHoldPendingCalls;
  370. DWORD dwMaxNumConference;
  371. DWORD dwMaxNumTransConf;
  372. DWORD dwAddrCapFlags;
  373. DWORD dwCallFeatures;
  374. DWORD dwRemoveFromConfCaps;
  375. DWORD dwRemoveFromConfState;
  376. DWORD dwTransferModes;
  377. DWORD dwParkModes;
  378. DWORD dwForwardModes;
  379. DWORD dwMaxForwardEntries;
  380. DWORD dwMaxSpecificEntries;
  381. DWORD dwMinFwdNumRings;
  382. DWORD dwMaxFwdNumRings;
  383. DWORD dwMaxCallCompletions;
  384. DWORD dwCallCompletionConds;
  385. DWORD dwCallCompletionModes;
  386. DWORD dwNumCompletionMessages;
  387. DWORD dwCompletionMsgTextEntrySize;
  388. DWORD dwCompletionMsgTextSize;
  389. DWORD dwCompletionMsgTextOffset;
  390. /* Tapi 1.1 extension (ATM support) */
  391. DWORD dwAddressFeatures;
  392. } LINEADDRESSCAPS, FAR *LPLINEADDRESSCAPS;
  393. #define LINEADDRESSMODE_ADDRESSID 0x00000001
  394. #define LINEADDRESSMODE_DIALABLEADDR 0x00000002
  395. #define LINEADDRESSSHARING_PRIVATE 0x00000001
  396. #define LINEADDRESSSHARING_BRIDGEDEXCL 0x00000002
  397. #define LINEADDRESSSHARING_BRIDGEDNEW 0x00000004
  398. #define LINEADDRESSSHARING_BRIDGEDSHARED 0x00000008
  399. #define LINEADDRESSSHARING_MONITORED 0x00000010
  400. #define LINEADDRESSSTATE_OTHER 0x00000001
  401. #define LINEADDRESSSTATE_DEVSPECIFIC 0x00000002
  402. #define LINEADDRESSSTATE_INUSEZERO 0x00000004
  403. #define LINEADDRESSSTATE_INUSEONE 0x00000008
  404. #define LINEADDRESSSTATE_INUSEMANY 0x00000010
  405. #define LINEADDRESSSTATE_NUMCALLS 0x00000020
  406. #define LINEADDRESSSTATE_FORWARD 0x00000040
  407. #define LINEADDRESSSTATE_TERMINALS 0x00000080
  408. /* Tapi 1.1 change */
  409. #define LINEADDRESSSTATE_CAPSCHANGE 0x00000100
  410. typedef struct lineaddressstatus_tag {
  411. DWORD dwTotalSize;
  412. DWORD dwNeededSize;
  413. DWORD dwUsedSize;
  414. DWORD dwNumInUse;
  415. DWORD dwNumActiveCalls;
  416. DWORD dwNumOnHoldCalls;
  417. DWORD dwNumOnHoldPendCalls;
  418. DWORD dwAddressFeatures;
  419. DWORD dwNumRingsNoAnswer;
  420. DWORD dwForwardNumEntries;
  421. DWORD dwForwardSize;
  422. DWORD dwForwardOffset;
  423. DWORD dwTerminalModesSize;
  424. DWORD dwTerminalModesOffset;
  425. DWORD dwDevSpecificSize;
  426. DWORD dwDevSpecificOffset;
  427. } LINEADDRESSSTATUS, FAR *LPLINEADDRESSSTATUS;
  428. #define LINEADDRFEATURE_FORWARD 0x00000001
  429. #define LINEADDRFEATURE_MAKECALL 0x00000002
  430. #define LINEADDRFEATURE_PICKUP 0x00000004
  431. #define LINEADDRFEATURE_SETMEDIACONTROL 0x00000008
  432. #define LINEADDRFEATURE_SETTERMINAL 0x00000010
  433. #define LINEADDRFEATURE_SETUPCONF 0x00000020
  434. #define LINEADDRFEATURE_UNCOMPLETECALL 0x00000040
  435. #define LINEADDRFEATURE_UNPARK 0x00000080
  436. #define LINEANSWERMODE_NONE 0x00000001
  437. #define LINEANSWERMODE_DROP 0x00000002
  438. #define LINEANSWERMODE_HOLD 0x00000004
  439. #define LINEBEARERMODE_VOICE 0x00000001
  440. #define LINEBEARERMODE_SPEECH 0x00000002
  441. #define LINEBEARERMODE_MULTIUSE 0x00000004
  442. #define LINEBEARERMODE_DATA 0x00000008
  443. #define LINEBEARERMODE_ALTSPEECHDATA 0x00000010
  444. #define LINEBEARERMODE_NONCALLSIGNALING 0x00000020
  445. #define LINEBUSYMODE_STATION 0x00000001
  446. #define LINEBUSYMODE_TRUNK 0x00000002
  447. #define LINEBUSYMODE_UNKNOWN 0x00000004
  448. #define LINEBUSYMODE_UNAVAIL 0x00000008
  449. #define LINECALLCOMPLCOND_BUSY 0x00000001
  450. #define LINECALLCOMPLCOND_NOANSWER 0x00000002
  451. #define LINECALLCOMPLMODE_CAMPON 0x00000001
  452. #define LINECALLCOMPLMODE_CALLBACK 0x00000002
  453. #define LINECALLCOMPLMODE_INTRUDE 0x00000004
  454. #define LINECALLCOMPLMODE_MESSAGE 0x00000008
  455. #define LINECALLFEATURE_ACCEPT 0x00000001
  456. #define LINECALLFEATURE_ADDTOCONF 0x00000002
  457. #define LINECALLFEATURE_ANSWER 0x00000004
  458. #define LINECALLFEATURE_BLINDTRANSFER 0x00000008
  459. #define LINECALLFEATURE_COMPLETECALL 0x00000010
  460. #define LINECALLFEATURE_COMPLETETRANSF 0x00000020
  461. #define LINECALLFEATURE_DIAL 0x00000040
  462. #define LINECALLFEATURE_DROP 0x00000080
  463. #define LINECALLFEATURE_GATHERDIGITS 0x00000100
  464. #define LINECALLFEATURE_GENERATEDIGITS 0x00000200
  465. #define LINECALLFEATURE_GENERATETONE 0x00000400
  466. #define LINECALLFEATURE_HOLD 0x00000800
  467. #define LINECALLFEATURE_MONITORDIGITS 0x00001000
  468. #define LINECALLFEATURE_MONITORMEDIA 0x00002000
  469. #define LINECALLFEATURE_MONITORTONES 0x00004000
  470. #define LINECALLFEATURE_PARK 0x00008000
  471. #define LINECALLFEATURE_PREPAREADDCONF 0x00010000
  472. #define LINECALLFEATURE_REDIRECT 0x00020000
  473. #define LINECALLFEATURE_REMOVEFROMCONF 0x00040000
  474. #define LINECALLFEATURE_SECURECALL 0x00080000
  475. #define LINECALLFEATURE_SENDUSERUSER 0x00100000
  476. #define LINECALLFEATURE_SETCALLPARAMS 0x00200000
  477. #define LINECALLFEATURE_SETMEDIACONTROL 0x00400000
  478. #define LINECALLFEATURE_SETTERMINAL 0x00800000
  479. #define LINECALLFEATURE_SETUPCONF 0x01000000
  480. #define LINECALLFEATURE_SETUPTRANSFER 0x02000000
  481. #define LINECALLFEATURE_SWAPHOLD 0x04000000
  482. #define LINECALLFEATURE_UNHOLD 0x08000000
  483. typedef struct linedialparams_tag {
  484. DWORD dwDialPause;
  485. DWORD dwDialSpeed;
  486. DWORD dwDigitDuration;
  487. DWORD dwWaitForDialtone;
  488. } LINEDIALPARAMS, FAR *LPLINEDIALPARAMS;
  489. typedef struct linecallinfo_tag {
  490. DWORD dwTotalSize;
  491. DWORD dwNeededSize;
  492. DWORD dwUsedSize;
  493. HLINE hLine;
  494. DWORD dwLineDeviceID;
  495. DWORD dwAddressID;
  496. DWORD dwBearerMode;
  497. DWORD dwRate;
  498. DWORD dwMediaMode;
  499. DWORD dwAppSpecific;
  500. DWORD dwCallID;
  501. DWORD dwRelatedCallID;
  502. DWORD dwCallParamFlags;
  503. DWORD dwCallStates;
  504. DWORD dwMonitorDigitModes;
  505. DWORD dwMonitorMediaModes;
  506. LINEDIALPARAMS DialParams;
  507. DWORD dwOrigin;
  508. DWORD dwReason;
  509. DWORD dwCompletionID;
  510. DWORD dwNumOwners;
  511. DWORD dwNumMonitors;
  512. DWORD dwCountryCode;
  513. DWORD dwTrunk;
  514. DWORD dwCallerIDFlags;
  515. DWORD dwCallerIDSize;
  516. DWORD dwCallerIDOffset;
  517. DWORD dwCallerIDNameSize;
  518. DWORD dwCallerIDNameOffset;
  519. DWORD dwCalledIDFlags;
  520. DWORD dwCalledIDSize;
  521. DWORD dwCalledIDOffset;
  522. DWORD dwCalledIDNameSize;
  523. DWORD dwCalledIDNameOffset;
  524. DWORD dwConnectedIDFlags;
  525. DWORD dwConnectedIDSize;
  526. DWORD dwConnectedIDOffset;
  527. DWORD dwConnectedIDNameSize;
  528. DWORD dwConnectedIDNameOffset;
  529. DWORD dwRedirectionIDFlags;
  530. DWORD dwRedirectionIDSize;
  531. DWORD dwRedirectionIDOffset;
  532. DWORD dwRedirectionIDNameSize;
  533. DWORD dwRedirectionIDNameOffset;
  534. DWORD dwRedirectingIDFlags;
  535. DWORD dwRedirectingIDSize;
  536. DWORD dwRedirectingIDOffset;
  537. DWORD dwRedirectingIDNameSize;
  538. DWORD dwRedirectingIDNameOffset;
  539. DWORD dwAppNameSize;
  540. DWORD dwAppNameOffset;
  541. DWORD dwDisplayableAddressSize;
  542. DWORD dwDisplayableAddressOffset;
  543. DWORD dwCalledPartySize;
  544. DWORD dwCalledPartyOffset;
  545. DWORD dwCommentSize;
  546. DWORD dwCommentOffset;
  547. DWORD dwDisplaySize;
  548. DWORD dwDisplayOffset;
  549. DWORD dwUserUserInfoSize;
  550. DWORD dwUserUserInfoOffset;
  551. DWORD dwHighLevelCompSize;
  552. DWORD dwHighLevelCompOffset;
  553. DWORD dwLowLevelCompSize;
  554. DWORD dwLowLevelCompOffset;
  555. DWORD dwChargingInfoSize;
  556. DWORD dwChargingInfoOffset;
  557. DWORD dwTerminalModesSize;
  558. DWORD dwTerminalModesOffset;
  559. DWORD dwDevSpecificSize;
  560. DWORD dwDevSpecificOffset;
  561. } LINECALLINFO, FAR *LPLINECALLINFO;
  562. #define LINECALLINFOSTATE_OTHER 0x00000001
  563. #define LINECALLINFOSTATE_DEVSPECIFIC 0x00000002
  564. #define LINECALLINFOSTATE_BEARERMODE 0x00000004
  565. #define LINECALLINFOSTATE_RATE 0x00000008
  566. #define LINECALLINFOSTATE_MEDIAMODE 0x00000010
  567. #define LINECALLINFOSTATE_APPSPECIFIC 0x00000020
  568. #define LINECALLINFOSTATE_CALLID 0x00000040
  569. #define LINECALLINFOSTATE_RELATEDCALLID 0x00000080
  570. #define LINECALLINFOSTATE_ORIGIN 0x00000100
  571. #define LINECALLINFOSTATE_REASON 0x00000200
  572. #define LINECALLINFOSTATE_COMPLETIONID 0x00000400
  573. #define LINECALLINFOSTATE_NUMOWNERINCR 0x00000800
  574. #define LINECALLINFOSTATE_NUMOWNERDECR 0x00001000
  575. #define LINECALLINFOSTATE_NUMMONITORS 0x00002000
  576. #define LINECALLINFOSTATE_TRUNK 0x00004000
  577. #define LINECALLINFOSTATE_CALLERID 0x00008000
  578. #define LINECALLINFOSTATE_CALLEDID 0x00010000
  579. #define LINECALLINFOSTATE_CONNECTEDID 0x00020000
  580. #define LINECALLINFOSTATE_REDIRECTIONID 0x00040000
  581. #define LINECALLINFOSTATE_REDIRECTINGID 0x00080000
  582. #define LINECALLINFOSTATE_DISPLAY 0x00100000
  583. #define LINECALLINFOSTATE_USERUSERINFO 0x00200000
  584. #define LINECALLINFOSTATE_HIGHLEVELCOMP 0x00400000
  585. #define LINECALLINFOSTATE_LOWLEVELCOMP 0x00800000
  586. #define LINECALLINFOSTATE_CHARGINGINFO 0x01000000
  587. #define LINECALLINFOSTATE_TERMINAL 0x02000000
  588. #define LINECALLINFOSTATE_DIALPARAMS 0x04000000
  589. #define LINECALLINFOSTATE_MONITORMODES 0x08000000
  590. typedef struct linecalllist_tag {
  591. DWORD dwTotalSize;
  592. DWORD dwNeededSize;
  593. DWORD dwUsedSize;
  594. DWORD dwCallsNumEntries;
  595. DWORD dwCallsSize;
  596. DWORD dwCallsOffset;
  597. } LINECALLLIST, FAR *LPLINECALLLIST;
  598. #define LINECALLORIGIN_OUTBOUND 0x00000001
  599. #define LINECALLORIGIN_INTERNAL 0x00000002
  600. #define LINECALLORIGIN_EXTERNAL 0x00000004
  601. #define LINECALLORIGIN_UNKNOWN 0x00000010
  602. #define LINECALLORIGIN_UNAVAIL 0x00000020
  603. #define LINECALLORIGIN_CONFERENCE 0x00000040
  604. #define LINECALLPARAMFLAGS_SECURE 0x00000001
  605. #define LINECALLPARAMFLAGS_IDLE 0x00000002
  606. #define LINECALLPARAMFLAGS_BLOCKID 0x00000004
  607. #define LINECALLPARAMFLAGS_ORIGOFFHOOK 0x00000008
  608. #define LINECALLPARAMFLAGS_DESTOFFHOOK 0x00000010
  609. typedef struct linecallparams_tag { // Defaults:
  610. DWORD dwTotalSize; // ---------
  611. DWORD dwBearerMode; // voice
  612. DWORD dwMinRate; // (3.1kHz)
  613. DWORD dwMaxRate; // (3.1kHz)
  614. DWORD dwMediaMode; // interactiveVoice
  615. DWORD dwCallParamFlags; // 0
  616. DWORD dwAddressMode; // addressID
  617. DWORD dwAddressID; // (any available)
  618. LINEDIALPARAMS DialParams; // (0, 0, 0, 0)
  619. DWORD dwOrigAddressSize; // 0
  620. DWORD dwOrigAddressOffset;
  621. DWORD dwDisplayableAddressSize;
  622. DWORD dwDisplayableAddressOffset;
  623. DWORD dwCalledPartySize; // 0
  624. DWORD dwCalledPartyOffset;
  625. DWORD dwCommentSize; // 0
  626. DWORD dwCommentOffset;
  627. DWORD dwUserUserInfoSize; // 0
  628. DWORD dwUserUserInfoOffset;
  629. DWORD dwHighLevelCompSize; // 0
  630. DWORD dwHighLevelCompOffset;
  631. DWORD dwLowLevelCompSize; // 0
  632. DWORD dwLowLevelCompOffset;
  633. DWORD dwDevSpecificSize; // 0
  634. DWORD dwDevSpecificOffset;
  635. } LINECALLPARAMS, FAR *LPLINECALLPARAMS;
  636. #define LINECALLPARTYID_BLOCKED 0x00000001
  637. #define LINECALLPARTYID_OUTOFAREA 0x00000002
  638. #define LINECALLPARTYID_NAME 0x00000004
  639. #define LINECALLPARTYID_ADDRESS 0x00000008
  640. #define LINECALLPARTYID_PARTIAL 0x00000010
  641. #define LINECALLPARTYID_UNKNOWN 0x00000020
  642. #define LINECALLPARTYID_UNAVAIL 0x00000040
  643. #define LINECALLPRIVILEGE_NONE 0x00000001
  644. #define LINECALLPRIVILEGE_MONITOR 0x00000002
  645. #define LINECALLPRIVILEGE_OWNER 0x00000004
  646. #define LINECALLREASON_DIRECT 0x00000001
  647. #define LINECALLREASON_FWDBUSY 0x00000002
  648. #define LINECALLREASON_FWDNOANSWER 0x00000004
  649. #define LINECALLREASON_FWDUNCOND 0x00000008
  650. #define LINECALLREASON_PICKUP 0x00000010
  651. #define LINECALLREASON_UNPARK 0x00000020
  652. #define LINECALLREASON_REDIRECT 0x00000040
  653. #define LINECALLREASON_CALLCOMPLETION 0x00000080
  654. #define LINECALLREASON_TRANSFER 0x00000100
  655. #define LINECALLREASON_REMINDER 0x00000200
  656. #define LINECALLREASON_UNKNOWN 0x00000400
  657. #define LINECALLREASON_UNAVAIL 0x00000800
  658. #define LINECALLSELECT_LINE 0x00000001
  659. #define LINECALLSELECT_ADDRESS 0x00000002
  660. #define LINECALLSELECT_CALL 0x00000004
  661. #define LINECALLSTATE_IDLE 0x00000001
  662. #define LINECALLSTATE_OFFERING 0x00000002
  663. #define LINECALLSTATE_ACCEPTED 0x00000004
  664. #define LINECALLSTATE_DIALTONE 0x00000008
  665. #define LINECALLSTATE_DIALING 0x00000010
  666. #define LINECALLSTATE_RINGBACK 0x00000020
  667. #define LINECALLSTATE_BUSY 0x00000040
  668. #define LINECALLSTATE_SPECIALINFO 0x00000080
  669. #define LINECALLSTATE_CONNECTED 0x00000100
  670. #define LINECALLSTATE_PROCEEDING 0x00000200
  671. #define LINECALLSTATE_ONHOLD 0x00000400
  672. #define LINECALLSTATE_CONFERENCED 0x00000800
  673. #define LINECALLSTATE_ONHOLDPENDCONF 0x00001000
  674. #define LINECALLSTATE_ONHOLDPENDTRANSFER 0x00002000
  675. #define LINECALLSTATE_DISCONNECTED 0x00004000
  676. #define LINECALLSTATE_UNKNOWN 0x00008000
  677. typedef struct linecallstatus_tag {
  678. DWORD dwTotalSize;
  679. DWORD dwNeededSize;
  680. DWORD dwUsedSize;
  681. DWORD dwCallState;
  682. DWORD dwCallStateMode;
  683. DWORD dwCallPrivilege;
  684. DWORD dwCallFeatures;
  685. DWORD dwDevSpecificSize;
  686. DWORD dwDevSpecificOffset;
  687. } LINECALLSTATUS, FAR *LPLINECALLSTATUS;
  688. #define LINEDEVCAPFLAGS_CROSSADDRCONF 0x00000001
  689. #define LINEDEVCAPFLAGS_HIGHLEVCOMP 0x00000002
  690. #define LINEDEVCAPFLAGS_LOWLEVCOMP 0x00000004
  691. #define LINEDEVCAPFLAGS_MEDIACONTROL 0x00000008
  692. #define LINEDEVCAPFLAGS_MULTIPLEADDR 0x00000010
  693. #define LINEDEVCAPFLAGS_CLOSEDROP 0x00000020
  694. #define LINEDEVCAPFLAGS_DIALBILLING 0x00000040
  695. #define LINEDEVCAPFLAGS_DIALQUIET 0x00000080
  696. #define LINEDEVCAPFLAGS_DIALDIALTONE 0x00000100
  697. typedef struct lineextensionid_tag {
  698. DWORD dwExtensionID0;
  699. DWORD dwExtensionID1;
  700. DWORD dwExtensionID2;
  701. DWORD dwExtensionID3;
  702. } LINEEXTENSIONID, FAR *LPLINEEXTENSIONID;
  703. typedef struct linedevcaps_tag {
  704. DWORD dwTotalSize;
  705. DWORD dwNeededSize;
  706. DWORD dwUsedSize;
  707. DWORD dwProviderInfoSize;
  708. DWORD dwProviderInfoOffset;
  709. DWORD dwSwitchInfoSize;
  710. DWORD dwSwitchInfoOffset;
  711. DWORD dwPermanentLineID;
  712. DWORD dwLineNameSize;
  713. DWORD dwLineNameOffset;
  714. DWORD dwStringFormat;
  715. DWORD dwAddressModes;
  716. DWORD dwNumAddresses;
  717. DWORD dwBearerModes;
  718. DWORD dwMaxRate;
  719. DWORD dwMediaModes;
  720. DWORD dwGenerateToneModes;
  721. DWORD dwGenerateToneMaxNumFreq;
  722. DWORD dwGenerateDigitModes;
  723. DWORD dwMonitorToneMaxNumFreq;
  724. DWORD dwMonitorToneMaxNumEntries;
  725. DWORD dwMonitorDigitModes;
  726. DWORD dwGatherDigitsMinTimeout;
  727. DWORD dwGatherDigitsMaxTimeout;
  728. DWORD dwMedCtlDigitMaxListSize;
  729. DWORD dwMedCtlMediaMaxListSize;
  730. DWORD dwMedCtlToneMaxListSize;
  731. DWORD dwMedCtlCallStateMaxListSize;
  732. DWORD dwDevCapFlags;
  733. DWORD dwMaxNumActiveCalls;
  734. DWORD dwAnswerMode;
  735. DWORD dwRingModes;
  736. DWORD dwLineStates;
  737. DWORD dwUUIAcceptSize;
  738. DWORD dwUUIAnswerSize;
  739. DWORD dwUUIMakeCallSize;
  740. DWORD dwUUIDropSize;
  741. DWORD dwUUISendUserUserInfoSize;
  742. DWORD dwUUICallInfoSize;
  743. LINEDIALPARAMS MinDialParams;
  744. LINEDIALPARAMS MaxDialParams;
  745. LINEDIALPARAMS DefaultDialParams;
  746. DWORD dwNumTerminals;
  747. DWORD dwTerminalCapsSize;
  748. DWORD dwTerminalCapsOffset;
  749. DWORD dwTerminalTextEntrySize;
  750. DWORD dwTerminalTextSize;
  751. DWORD dwTerminalTextOffset;
  752. DWORD dwDevSpecificSize;
  753. DWORD dwDevSpecificOffset;
  754. /* Tapi 1.1 changes */
  755. DWORD dwLineFeatures;
  756. } LINEDEVCAPS, FAR *LPLINEDEVCAPS;
  757. #define LINEDEVSTATE_OTHER 0x00000001
  758. #define LINEDEVSTATE_RINGING 0x00000002
  759. #define LINEDEVSTATE_CONNECTED 0x00000004
  760. #define LINEDEVSTATE_DISCONNECTED 0x00000008
  761. #define LINEDEVSTATE_MSGWAITON 0x00000010
  762. #define LINEDEVSTATE_MSGWAITOFF 0x00000020
  763. #define LINEDEVSTATE_INSERVICE 0x00000040
  764. #define LINEDEVSTATE_OUTOFSERVICE 0x00000080
  765. #define LINEDEVSTATE_MAINTENANCE 0x00000100
  766. #define LINEDEVSTATE_OPEN 0x00000200
  767. #define LINEDEVSTATE_CLOSE 0x00000400
  768. #define LINEDEVSTATE_NUMCALLS 0x00000800
  769. #define LINEDEVSTATE_NUMCOMPLETIONS 0x00001000
  770. #define LINEDEVSTATE_TERMINALS 0x00002000
  771. #define LINEDEVSTATE_ROAMMODE 0x00004000
  772. #define LINEDEVSTATE_BATTERY 0x00008000
  773. #define LINEDEVSTATE_SIGNAL 0x00010000
  774. #define LINEDEVSTATE_DEVSPECIFIC 0x00020000
  775. #define LINEDEVSTATE_REINIT 0x00040000
  776. #define LINEDEVSTATE_LOCK 0x00080000
  777. /* Tapi 1.1 change */
  778. #define LINEDEVSTATE_CAPSCHANGE 0x00100000
  779. #define LINEDEVSTATE_CONFIGCHANGE 0x00200000
  780. #define LINEDEVSTATE_TRANSLATECHANGE 0x00400000
  781. typedef struct linedevstatus_tag {
  782. DWORD dwTotalSize;
  783. DWORD dwNeededSize;
  784. DWORD dwUsedSize;
  785. DWORD dwNumOpens;
  786. DWORD dwOpenMediaModes;
  787. DWORD dwNumActiveCalls;
  788. DWORD dwNumOnHoldCalls;
  789. DWORD dwNumOnHoldPendCalls;
  790. DWORD dwLineFeatures;
  791. DWORD dwNumCallCompletions;
  792. DWORD dwRingMode;
  793. DWORD dwSignalLevel;
  794. DWORD dwBatteryLevel;
  795. DWORD dwRoamMode;
  796. DWORD dwDevStatusFlags;
  797. DWORD dwTerminalModesSize;
  798. DWORD dwTerminalModesOffset;
  799. DWORD dwDevSpecificSize;
  800. DWORD dwDevSpecificOffset;
  801. } LINEDEVSTATUS, FAR *LPLINEDEVSTATUS;
  802. #define LINEDEVSTATUSFLAGS_CONNECTED 0x00000001
  803. #define LINEDEVSTATUSFLAGS_MSGWAIT 0x00000002
  804. #define LINEDEVSTATUSFLAGS_INSERVICE 0x00000004
  805. #define LINEDEVSTATUSFLAGS_LOCKED 0x00000008
  806. #define LINEDIALTONEMODE_NORMAL 0x00000001
  807. #define LINEDIALTONEMODE_SPECIAL 0x00000002
  808. #define LINEDIALTONEMODE_INTERNAL 0x00000004
  809. #define LINEDIALTONEMODE_EXTERNAL 0x00000008
  810. #define LINEDIALTONEMODE_UNKNOWN 0x00000010
  811. #define LINEDIALTONEMODE_UNAVAIL 0x00000020
  812. #define LINEDIGITMODE_PULSE 0x00000001
  813. #define LINEDIGITMODE_DTMF 0x00000002
  814. #define LINEDIGITMODE_DTMFEND 0x00000004
  815. #define LINEDISCONNECTMODE_NORMAL 0x00000001
  816. #define LINEDISCONNECTMODE_UNKNOWN 0x00000002
  817. #define LINEDISCONNECTMODE_REJECT 0x00000004
  818. #define LINEDISCONNECTMODE_PICKUP 0x00000008
  819. #define LINEDISCONNECTMODE_FORWARDED 0x00000010
  820. #define LINEDISCONNECTMODE_BUSY 0x00000020
  821. #define LINEDISCONNECTMODE_NOANSWER 0x00000040
  822. #define LINEDISCONNECTMODE_BADADDRESS 0x00000080
  823. #define LINEDISCONNECTMODE_UNREACHABLE 0x00000100
  824. #define LINEDISCONNECTMODE_CONGESTION 0x00000200
  825. #define LINEDISCONNECTMODE_INCOMPATIBLE 0x00000400
  826. #define LINEDISCONNECTMODE_UNAVAIL 0x00000800
  827. #define LINEERR_ALLOCATED 0x80000001
  828. #define LINEERR_BADDEVICEID 0x80000002
  829. #define LINEERR_BEARERMODEUNAVAIL 0x80000003
  830. #define LINEERR_CALLUNAVAIL 0x80000005
  831. #define LINEERR_COMPLETIONOVERRUN 0x80000006
  832. #define LINEERR_CONFERENCEFULL 0x80000007
  833. #define LINEERR_DIALBILLING 0x80000008
  834. #define LINEERR_DIALDIALTONE 0x80000009
  835. #define LINEERR_DIALPROMPT 0x8000000A
  836. #define LINEERR_DIALQUIET 0x8000000B
  837. #define LINEERR_INCOMPATIBLEAPIVERSION 0x8000000C
  838. #define LINEERR_INCOMPATIBLEEXTVERSION 0x8000000D
  839. #define LINEERR_INIFILECORRUPT 0x8000000E
  840. #define LINEERR_INUSE 0x8000000F
  841. #define LINEERR_INVALADDRESS 0x80000010
  842. #define LINEERR_INVALADDRESSID 0x80000011
  843. #define LINEERR_INVALADDRESSMODE 0x80000012
  844. #define LINEERR_INVALADDRESSSTATE 0x80000013
  845. #define LINEERR_INVALAPPHANDLE 0x80000014
  846. #define LINEERR_INVALAPPNAME 0x80000015
  847. #define LINEERR_INVALBEARERMODE 0x80000016
  848. #define LINEERR_INVALCALLCOMPLMODE 0x80000017
  849. #define LINEERR_INVALCALLHANDLE 0x80000018
  850. #define LINEERR_INVALCALLPARAMS 0x80000019
  851. #define LINEERR_INVALCALLPRIVILEGE 0x8000001A
  852. #define LINEERR_INVALCALLSELECT 0x8000001B
  853. #define LINEERR_INVALCALLSTATE 0x8000001C
  854. #define LINEERR_INVALCALLSTATELIST 0x8000001D
  855. #define LINEERR_INVALCARD 0x8000001E
  856. #define LINEERR_INVALCOMPLETIONID 0x8000001F
  857. #define LINEERR_INVALCONFCALLHANDLE 0x80000020
  858. #define LINEERR_INVALCONSULTCALLHANDLE 0x80000021
  859. #define LINEERR_INVALCOUNTRYCODE 0x80000022
  860. #define LINEERR_INVALDEVICECLASS 0x80000023
  861. #define LINEERR_INVALDEVICEHANDLE 0x80000024
  862. #define LINEERR_INVALDIALPARAMS 0x80000025
  863. #define LINEERR_INVALDIGITLIST 0x80000026
  864. #define LINEERR_INVALDIGITMODE 0x80000027
  865. #define LINEERR_INVALDIGITS 0x80000028
  866. #define LINEERR_INVALEXTVERSION 0x80000029
  867. #define LINEERR_INVALGROUPID 0x8000002A
  868. #define LINEERR_INVALLINEHANDLE 0x8000002B
  869. #define LINEERR_INVALLINESTATE 0x8000002C
  870. #define LINEERR_INVALLOCATION 0x8000002D
  871. #define LINEERR_INVALMEDIALIST 0x8000002E
  872. #define LINEERR_INVALMEDIAMODE 0x8000002F
  873. #define LINEERR_INVALMESSAGEID 0x80000030
  874. #define LINEERR_INVALPARAM 0x80000032
  875. #define LINEERR_INVALPARKID 0x80000033
  876. #define LINEERR_INVALPARKMODE 0x80000034
  877. #define LINEERR_INVALPOINTER 0x80000035
  878. #define LINEERR_INVALPRIVSELECT 0x80000036
  879. #define LINEERR_INVALRATE 0x80000037
  880. #define LINEERR_INVALREQUESTMODE 0x80000038
  881. #define LINEERR_INVALTERMINALID 0x80000039
  882. #define LINEERR_INVALTERMINALMODE 0x8000003A
  883. #define LINEERR_INVALTIMEOUT 0x8000003B
  884. #define LINEERR_INVALTONE 0x8000003C
  885. #define LINEERR_INVALTONELIST 0x8000003D
  886. #define LINEERR_INVALTONEMODE 0x8000003E
  887. #define LINEERR_INVALTRANSFERMODE 0x8000003F
  888. #define LINEERR_LINEMAPPERFAILED 0x80000040
  889. #define LINEERR_NOCONFERENCE 0x80000041
  890. #define LINEERR_NODEVICE 0x80000042
  891. #define LINEERR_NODRIVER 0x80000043
  892. #define LINEERR_NOMEM 0x80000044
  893. #define LINEERR_NOREQUEST 0x80000045
  894. #define LINEERR_NOTOWNER 0x80000046
  895. #define LINEERR_NOTREGISTERED 0x80000047
  896. #define LINEERR_OPERATIONFAILED 0x80000048
  897. #define LINEERR_OPERATIONUNAVAIL 0x80000049
  898. #define LINEERR_RATEUNAVAIL 0x8000004A
  899. #define LINEERR_RESOURCEUNAVAIL 0x8000004B
  900. #define LINEERR_REQUESTOVERRUN 0x8000004C
  901. #define LINEERR_STRUCTURETOOSMALL 0x8000004D
  902. #define LINEERR_TARGETNOTFOUND 0x8000004E
  903. #define LINEERR_TARGETSELF 0x8000004F
  904. #define LINEERR_UNINITIALIZED 0x80000050
  905. #define LINEERR_USERUSERINFOTOOBIG 0x80000051
  906. #define LINEERR_REINIT 0x80000052
  907. #define LINEERR_ADDRESSBLOCKED 0x80000053
  908. #define LINEERR_BILLINGREJECTED 0x80000054
  909. #define LINEERR_INVALFEATURE 0x80000055
  910. #define LINEERR_NOMULTIPLEINSTANCE 0x80000056
  911. #define LINEFEATURE_DEVSPECIFIC 0x00000001
  912. #define LINEFEATURE_DEVSPECIFICFEAT 0x00000002
  913. #define LINEFEATURE_FORWARD 0x00000004
  914. #define LINEFEATURE_MAKECALL 0x00000008
  915. #define LINEFEATURE_SETMEDIACONTROL 0x00000010
  916. #define LINEFEATURE_SETTERMINAL 0x00000020
  917. typedef struct lineforward_tag {
  918. DWORD dwForwardMode;
  919. DWORD dwCallerAddressSize;
  920. DWORD dwCallerAddressOffset;
  921. DWORD dwDestCountryCode;
  922. DWORD dwDestAddressSize;
  923. DWORD dwDestAddressOffset;
  924. } LINEFORWARD, FAR *LPLINEFORWARD;
  925. typedef struct lineforwardlist_tag {
  926. DWORD dwTotalSize;
  927. DWORD dwNumEntries;
  928. LINEFORWARD ForwardList[1];
  929. } LINEFORWARDLIST, FAR *LPLINEFORWARDLIST;
  930. #define LINEFORWARDMODE_UNCOND 0x00000001
  931. #define LINEFORWARDMODE_UNCONDINTERNAL 0x00000002
  932. #define LINEFORWARDMODE_UNCONDEXTERNAL 0x00000004
  933. #define LINEFORWARDMODE_UNCONDSPECIFIC 0x00000008
  934. #define LINEFORWARDMODE_BUSY 0x00000010
  935. #define LINEFORWARDMODE_BUSYINTERNAL 0x00000020
  936. #define LINEFORWARDMODE_BUSYEXTERNAL 0x00000040
  937. #define LINEFORWARDMODE_BUSYSPECIFIC 0x00000080
  938. #define LINEFORWARDMODE_NOANSW 0x00000100
  939. #define LINEFORWARDMODE_NOANSWINTERNAL 0x00000200
  940. #define LINEFORWARDMODE_NOANSWEXTERNAL 0x00000400
  941. #define LINEFORWARDMODE_NOANSWSPECIFIC 0x00000800
  942. #define LINEFORWARDMODE_BUSYNA 0x00001000
  943. #define LINEFORWARDMODE_BUSYNAINTERNAL 0x00002000
  944. #define LINEFORWARDMODE_BUSYNAEXTERNAL 0x00004000
  945. #define LINEFORWARDMODE_BUSYNASPECIFIC 0x00008000
  946. #define LINEGATHERTERM_BUFFERFULL 0x00000001
  947. #define LINEGATHERTERM_TERMDIGIT 0x00000002
  948. #define LINEGATHERTERM_FIRSTTIMEOUT 0x00000004
  949. #define LINEGATHERTERM_INTERTIMEOUT 0x00000008
  950. #define LINEGATHERTERM_CANCEL 0x00000010
  951. #define LINEGENERATETERM_DONE 0x00000001
  952. #define LINEGENERATETERM_CANCEL 0x00000002
  953. typedef struct linegeneratetone_tag {
  954. DWORD dwFrequency;
  955. DWORD dwCadenceOn;
  956. DWORD dwCadenceOff;
  957. DWORD dwVolume;
  958. } LINEGENERATETONE, FAR *LPLINEGENERATETONE;
  959. #define LINEMAPPER 0xFFFFFFFF
  960. typedef struct linemediacontrolcallstate_tag {
  961. DWORD dwCallStates;
  962. DWORD dwMediaControl;
  963. } LINEMEDIACONTROLCALLSTATE,
  964. FAR *LPLINEMEDIACONTROLCALLSTATE;
  965. typedef struct linemediacontroldigit_tag {
  966. DWORD dwDigit;
  967. DWORD dwDigitModes;
  968. DWORD dwMediaControl;
  969. } LINEMEDIACONTROLDIGIT, FAR *LPLINEMEDIACONTROLDIGIT;
  970. typedef struct linemediacontrolmedia_tag {
  971. DWORD dwMediaModes;
  972. DWORD dwDuration;
  973. DWORD dwMediaControl;
  974. } LINEMEDIACONTROLMEDIA, FAR *LPLINEMEDIACONTROLMEDIA;
  975. typedef struct linemediacontroltone_tag {
  976. DWORD dwAppSpecific;
  977. DWORD dwDuration;
  978. DWORD dwFrequency1;
  979. DWORD dwFrequency2;
  980. DWORD dwFrequency3;
  981. DWORD dwMediaControl;
  982. } LINEMEDIACONTROLTONE, FAR *LPLINEMEDIACONTROLTONE;
  983. #define LINEMEDIACONTROL_NONE 0x00000001
  984. #define LINEMEDIACONTROL_START 0x00000002
  985. #define LINEMEDIACONTROL_RESET 0x00000004
  986. #define LINEMEDIACONTROL_PAUSE 0x00000008
  987. #define LINEMEDIACONTROL_RESUME 0x00000010
  988. #define LINEMEDIACONTROL_RATEUP 0x00000020
  989. #define LINEMEDIACONTROL_RATEDOWN 0x00000040
  990. #define LINEMEDIACONTROL_RATENORMAL 0x00000080
  991. #define LINEMEDIACONTROL_VOLUMEUP 0x00000100
  992. #define LINEMEDIACONTROL_VOLUMEDOWN 0x00000200
  993. #define LINEMEDIACONTROL_VOLUMENORMAL 0x00000400
  994. #define LINEMEDIAMODE_UNKNOWN 0x00000002
  995. #define LINEMEDIAMODE_INTERACTIVEVOICE 0x00000004
  996. #define LINEMEDIAMODE_AUTOMATEDVOICE 0x00000008
  997. #define LINEMEDIAMODE_DATAMODEM 0x00000010
  998. #define LINEMEDIAMODE_G3FAX 0x00000020
  999. #define LINEMEDIAMODE_TDD 0x00000040
  1000. #define LINEMEDIAMODE_G4FAX 0x00000080
  1001. #define LINEMEDIAMODE_DIGITALDATA 0x00000100
  1002. #define LINEMEDIAMODE_TELETEX 0x00000200
  1003. #define LINEMEDIAMODE_VIDEOTEX 0x00000400
  1004. #define LINEMEDIAMODE_TELEX 0x00000800
  1005. #define LINEMEDIAMODE_MIXED 0x00001000
  1006. #define LINEMEDIAMODE_ADSI 0x00002000
  1007. #define LINEMEDIAMODE_VOICEVIEW 0x00004000
  1008. #define LAST_LINEMEDIAMODE 0x00004000
  1009. typedef struct linemonitortone_tag {
  1010. DWORD dwAppSpecific;
  1011. DWORD dwDuration;
  1012. DWORD dwFrequency1;
  1013. DWORD dwFrequency2;
  1014. DWORD dwFrequency3;
  1015. } LINEMONITORTONE, FAR *LPLINEMONITORTONE;
  1016. #define LINEPARKMODE_DIRECTED 0x00000001
  1017. #define LINEPARKMODE_NONDIRECTED 0x00000002
  1018. #define LINEREMOVEFROMCONF_NONE 0x00000001
  1019. #define LINEREMOVEFROMCONF_LAST 0x00000002
  1020. #define LINEREMOVEFROMCONF_ANY 0x00000003
  1021. typedef struct linereqmakecall_tag {
  1022. char szDestAddress[TAPIMAXDESTADDRESSSIZE];
  1023. char szAppName[TAPIMAXAPPNAMESIZE];
  1024. char szCalledParty[TAPIMAXCALLEDPARTYSIZE];
  1025. char szComment[TAPIMAXCOMMENTSIZE];
  1026. } LINEREQMAKECALL, FAR *LPLINEREQMAKECALL;
  1027. typedef struct linereqmediacall_tag {
  1028. HWND hWnd;
  1029. WPARAM wRequestID;
  1030. char szDeviceClass[TAPIMAXDEVICECLASSSIZE];
  1031. unsigned char ucDeviceID[TAPIMAXDEVICEIDSIZE];
  1032. DWORD dwSize;
  1033. DWORD dwSecure;
  1034. char szDestAddress[TAPIMAXDESTADDRESSSIZE];
  1035. char szAppName[TAPIMAXAPPNAMESIZE];
  1036. char szCalledParty[TAPIMAXCALLEDPARTYSIZE];
  1037. char szComment[TAPIMAXCOMMENTSIZE];
  1038. } LINEREQMEDIACALL, FAR *LPLINEREQMEDIACALL;
  1039. #define LINEREQUESTMODE_MAKECALL 0x00000001
  1040. #define LINEREQUESTMODE_MEDIACALL 0x00000002
  1041. #define LINEREQUESTMODE_DROP 0x00000004
  1042. #define LAST_LINEREQUESTMODE LINEREQUESTMODE_MEDIACALL
  1043. #define LINEROAMMODE_UNKNOWN 0x00000001
  1044. #define LINEROAMMODE_UNAVAIL 0x00000002
  1045. #define LINEROAMMODE_HOME 0x00000004
  1046. #define LINEROAMMODE_ROAMA 0x00000008
  1047. #define LINEROAMMODE_ROAMB 0x00000010
  1048. #define LINESPECIALINFO_NOCIRCUIT 0x00000001
  1049. #define LINESPECIALINFO_CUSTIRREG 0x00000002
  1050. #define LINESPECIALINFO_REORDER 0x00000004
  1051. #define LINESPECIALINFO_UNKNOWN 0x00000008
  1052. #define LINESPECIALINFO_UNAVAIL 0x00000010
  1053. typedef struct linetermcaps_tag {
  1054. DWORD dwTermDev;
  1055. DWORD dwTermModes;
  1056. DWORD dwTermSharing;
  1057. } LINETERMCAPS, FAR *LPLINETERMCAPS;
  1058. #define LINETERMDEV_PHONE 0x00000001
  1059. #define LINETERMDEV_HEADSET 0x00000002
  1060. #define LINETERMDEV_SPEAKER 0x00000004
  1061. #define LINETERMMODE_BUTTONS 0x00000001
  1062. #define LINETERMMODE_LAMPS 0x00000002
  1063. #define LINETERMMODE_DISPLAY 0x00000004
  1064. #define LINETERMMODE_RINGER 0x00000008
  1065. #define LINETERMMODE_HOOKSWITCH 0x00000010
  1066. #define LINETERMMODE_MEDIATOLINE 0x00000020
  1067. #define LINETERMMODE_MEDIAFROMLINE 0x00000040
  1068. #define LINETERMMODE_MEDIABIDIRECT 0x00000080
  1069. #define LINETERMSHARING_PRIVATE 0x00000001
  1070. #define LINETERMSHARING_SHAREDEXCL 0x00000002
  1071. #define LINETERMSHARING_SHAREDCONF 0x00000004
  1072. #define LINETONEMODE_CUSTOM 0x00000001
  1073. #define LINETONEMODE_RINGBACK 0x00000002
  1074. #define LINETONEMODE_BUSY 0x00000004
  1075. #define LINETONEMODE_BEEP 0x00000008
  1076. #define LINETONEMODE_BILLING 0x00000010
  1077. #define LINETRANSFERMODE_TRANSFER 0x00000001
  1078. #define LINETRANSFERMODE_CONFERENCE 0x00000002
  1079. typedef struct linetranslateoutput_tag {
  1080. DWORD dwTotalSize;
  1081. DWORD dwNeededSize;
  1082. DWORD dwUsedSize;
  1083. DWORD dwDialableStringSize;
  1084. DWORD dwDialableStringOffset;
  1085. DWORD dwDisplayableStringSize;
  1086. DWORD dwDisplayableStringOffset;
  1087. DWORD dwCurrentCountry;
  1088. DWORD dwDestCountry;
  1089. DWORD dwTranslateResults;
  1090. } LINETRANSLATEOUTPUT, FAR *LPLINETRANSLATEOUTPUT;
  1091. typedef struct linetranslatecaps_tag {
  1092. DWORD dwTotalSize;
  1093. DWORD dwNeededSize;
  1094. DWORD dwUsedSize;
  1095. DWORD dwNumLocations;
  1096. DWORD dwLocationListSize;
  1097. DWORD dwLocationListOffset;
  1098. DWORD dwCurrentLocationID;
  1099. DWORD dwNumCards;
  1100. DWORD dwCardListSize;
  1101. DWORD dwCardListOffset;
  1102. DWORD dwCurrentPreferredCardID;
  1103. } LINETRANSLATECAPS, FAR *LPLINETRANSLATECAPS;
  1104. typedef struct linelocationentry_tag {
  1105. DWORD dwPermanentLocationID;
  1106. DWORD dwLocationNameSize;
  1107. DWORD dwLocationNameOffset;
  1108. DWORD dwCountryCode;
  1109. DWORD dwCityCodeSize;
  1110. DWORD dwCityCodeOffset;
  1111. DWORD dwPreferredCardID;
  1112. /* Tapi 1.1 changes */
  1113. DWORD dwLocalAccessCodeSize;
  1114. DWORD dwLocalAccessCodeOffset;
  1115. DWORD dwLongDistanceAccessCodeSize;
  1116. DWORD dwLongDistanceAccessCodeOffset;
  1117. DWORD dwTollPrefixListSize;
  1118. DWORD dwTollPrefixListOffset;
  1119. DWORD dwCountryID;
  1120. } LINELOCATIONENTRY, FAR *LPLINELOCATIONENTRY;
  1121. typedef struct linecardentry_tag {
  1122. DWORD dwPermanentCardID;
  1123. DWORD dwCardNameSize;
  1124. DWORD dwCardNameOffset;
  1125. /* Tapi 1.1 changes */
  1126. DWORD dwCardNumberDigits;
  1127. DWORD dwSameAreaRuleSize;
  1128. DWORD dwSameAreaRuleOffset;
  1129. DWORD dwLongDistanceRuleSize;
  1130. DWORD dwLongDistanceRuleOffset;
  1131. DWORD dwInternationalRuleSize;
  1132. DWORD dwInternationalRuleOffset;
  1133. DWORD dwHideIfBlank;
  1134. } LINECARDENTRY, FAR *LPLINECARDENTRY;
  1135. /* Tapi 1.1 changes */
  1136. typedef struct linecountrylist_tag {
  1137. DWORD dwTotalSize;
  1138. DWORD dwNeededSize;
  1139. DWORD dwUsedSize;
  1140. DWORD dwNumCountries;
  1141. DWORD dwCountryListSize;
  1142. DWORD dwCountryListOffset;
  1143. } LINECOUNTRYLIST, FAR *LPLINECOUNTRYLIST;
  1144. typedef struct linecountryentry_tag {
  1145. DWORD dwCountryID;
  1146. DWORD dwCountryCode;
  1147. DWORD dwNextCountryID;
  1148. DWORD dwCountryNameSize;
  1149. DWORD dwCountryNameOffset;
  1150. DWORD dwSameAreaRuleSize;
  1151. DWORD dwSameAreaRuleOffset;
  1152. DWORD dwLongDistanceRuleSize;
  1153. DWORD dwLongDistanceRuleOffset;
  1154. DWORD dwInternationalRuleSize;
  1155. DWORD dwInternationalRuleOffset;
  1156. } LINECOUNTRYENTRY, FAR *LPLINECOUNTRYENTRY;
  1157. typedef struct lineproviderlist_tag {
  1158. DWORD dwTotalSize;
  1159. DWORD dwNeededSize;
  1160. DWORD dwUsedSize;
  1161. DWORD dwNumProviders;
  1162. DWORD dwProviderListSize;
  1163. DWORD dwProviderListOffset;
  1164. } LINEPROVIDERLIST, FAR *LPLINEPROVIDERLIST;
  1165. typedef struct lineproviderentry_tag {
  1166. DWORD dwPermanentProviderID;
  1167. DWORD dwProviderFilenameSize;
  1168. DWORD dwProviderFilenameOffset;
  1169. } LINEPROVIDERENTRY, FAR *LPLINEPROVIDERENTRY;
  1170. #define LINETOLLLISTOPTION_ADD 0x00000001
  1171. #define LINETOLLLISTOPTION_REMOVE 0x00000002
  1172. #define LINETRANSLATEOPTION_CARDOVERRIDE 0x00000001
  1173. #define LINETRANSLATERESULT_CANONICAL 0x00000001
  1174. #define LINETRANSLATERESULT_INTERNATIONAL 0x00000002
  1175. #define LINETRANSLATERESULT_LONGDISTANCE 0x00000004
  1176. #define LINETRANSLATERESULT_LOCAL 0x00000008
  1177. #define LINETRANSLATERESULT_INTOLLLIST 0x00000010
  1178. #define LINETRANSLATERESULT_NOTINTOLLLIST 0x00000020
  1179. #define LINETRANSLATERESULT_DIALBILLING 0x00000040
  1180. #define LINETRANSLATERESULT_DIALQUIET 0x00000080
  1181. #define LINETRANSLATERESULT_DIALDIALTONE 0x00000100
  1182. #define LINETRANSLATERESULT_DIALPROMPT 0x00000200
  1183. #ifdef ATWORK
  1184. // Callback message prototype
  1185. BOOL WINAPI tapiPerformCallback(
  1186. UINT uMsg,
  1187. WPARAM wParam,
  1188. LPARAM lParam);
  1189. #endif
  1190. // Simple Telephony prototypes
  1191. LONG WINAPI tapiRequestMakeCall(
  1192. LPCSTR lpszDestAddress,
  1193. LPCSTR lpszAppName,
  1194. LPCSTR lpszCalledParty,
  1195. LPCSTR lpszComment);
  1196. LONG WINAPI tapiRequestMediaCall(
  1197. HWND hWnd,
  1198. WPARAM wRequestID,
  1199. LPCSTR lpszDeviceClass,
  1200. LPCSTR lpDeviceID,
  1201. DWORD dwSize,
  1202. DWORD dwSecure,
  1203. LPCSTR lpszDestAddress,
  1204. LPCSTR lpszAppName,
  1205. LPCSTR lpszCalledParty,
  1206. LPCSTR lpszComment);
  1207. LONG WINAPI tapiRequestDrop(
  1208. HWND hWnd,
  1209. WPARAM wRequestID);
  1210. LONG WINAPI lineRegisterRequestRecipient(
  1211. HLINEAPP hLineApp,
  1212. DWORD dwRegistrationInstance,
  1213. DWORD dwRequestMode,
  1214. DWORD bEnable);
  1215. LONG WINAPI tapiGetLocationInfo(
  1216. LPSTR lpszCountryCode,
  1217. LPSTR lpszCityCode);
  1218. // Tapi Address Translation procedures
  1219. LONG WINAPI lineSetCurrentLocation(
  1220. HLINEAPP hLineApp,
  1221. DWORD dwLocation);
  1222. LONG WINAPI lineSetTollList(
  1223. HLINEAPP hLineApp,
  1224. DWORD dwDeviceID,
  1225. LPCSTR lpszAddressIn,
  1226. DWORD dwTollListOption);
  1227. LONG WINAPI lineTranslateAddress(
  1228. HLINEAPP hLineApp,
  1229. DWORD dwDeviceID,
  1230. DWORD dwAPIVersion,
  1231. LPCSTR lpszAddressIn,
  1232. DWORD dwCard,
  1233. DWORD dwTranslateOptions,
  1234. LPLINETRANSLATEOUTPUT lpTranslateOutput);
  1235. LONG WINAPI lineGetTranslateCaps(
  1236. HLINEAPP hLineApp,
  1237. DWORD dwAPIVersion,
  1238. LPLINETRANSLATECAPS lpTranslateCaps);
  1239. // Tapi function prototypes
  1240. LONG WINAPI lineAccept(
  1241. HCALL hCall,
  1242. LPCSTR lpsUserUserInfo,
  1243. DWORD dwSize);
  1244. LONG WINAPI lineAddToConference(
  1245. HCALL hConfCall,
  1246. HCALL hConsultCall);
  1247. LONG WINAPI lineAnswer(
  1248. HCALL hCall,
  1249. LPCSTR lpsUserUserInfo,
  1250. DWORD dwSize);
  1251. LONG WINAPI lineBlindTransfer(
  1252. HCALL hCall,
  1253. LPCSTR lpszDestAddress,
  1254. DWORD dwCountryCode);
  1255. LONG WINAPI lineClose(
  1256. HLINE hLine);
  1257. LONG WINAPI lineCompleteCall(
  1258. HCALL hCall,
  1259. LPDWORD lpdwCompletionID,
  1260. DWORD dwCompletionMode,
  1261. DWORD dwMessageID);
  1262. LONG WINAPI lineCompleteTransfer(
  1263. HCALL hCall,
  1264. HCALL hConsultCall,
  1265. LPHCALL lphConfCall,
  1266. DWORD dwTransferMode);
  1267. LONG WINAPI lineConfigDialog(
  1268. DWORD dwDeviceID,
  1269. HWND hwndOwner,
  1270. LPCSTR lpszDeviceClass);
  1271. LONG WINAPI lineDeallocateCall(
  1272. HCALL hCall);
  1273. LONG WINAPI lineDevSpecific(
  1274. HLINE hLine,
  1275. DWORD dwAddressID,
  1276. HCALL hCall,
  1277. LPVOID lpParams,
  1278. DWORD dwSize);
  1279. LONG WINAPI lineDevSpecificFeature(
  1280. HLINE hLine,
  1281. DWORD dwFeature,
  1282. LPVOID lpParams,
  1283. DWORD dwSize);
  1284. LONG WINAPI lineDial(
  1285. HCALL hCall,
  1286. LPCSTR lpszDestAddress,
  1287. DWORD dwCountryCode);
  1288. LONG WINAPI lineDrop(
  1289. HCALL hCall,
  1290. LPCSTR lpsUserUserInfo,
  1291. DWORD dwSize);
  1292. LONG WINAPI lineForward(
  1293. HLINE hLine,
  1294. DWORD bAllAddresses,
  1295. DWORD dwAddressID,
  1296. LPLINEFORWARDLIST const lpForwardList,
  1297. DWORD dwNumRingsNoAnswer,
  1298. LPHCALL lphConsultCall,
  1299. LPLINECALLPARAMS const lpCallParams);
  1300. LONG WINAPI lineGatherDigits(
  1301. HCALL hCall,
  1302. DWORD dwDigitModes,
  1303. LPSTR lpsDigits,
  1304. DWORD dwNumDigits,
  1305. LPCSTR lpszTerminationDigits,
  1306. DWORD dwFirstDigitTimeout,
  1307. DWORD dwInterDigitTimeout);
  1308. LONG WINAPI lineGenerateDigits(
  1309. HCALL hCall,
  1310. DWORD dwDigitMode,
  1311. LPCSTR lpszDigits,
  1312. DWORD dwDuration);
  1313. LONG WINAPI lineGenerateTone(
  1314. HCALL hCall,
  1315. DWORD dwToneMode,
  1316. DWORD dwDuration,
  1317. DWORD dwNumTones,
  1318. LPLINEGENERATETONE const lpTones);
  1319. LONG WINAPI lineGetAddressCaps(
  1320. HLINEAPP hLineApp,
  1321. DWORD dwDeviceID,
  1322. DWORD dwAddressID,
  1323. DWORD dwAPIVersion,
  1324. DWORD dwExtVersion,
  1325. LPLINEADDRESSCAPS lpAddressCaps);
  1326. LONG WINAPI lineGetAddressID(
  1327. HLINE hLine,
  1328. LPDWORD lpdwAddressID,
  1329. DWORD dwAddressMode,
  1330. LPCSTR lpsAddress,
  1331. DWORD dwSize);
  1332. LONG WINAPI lineGetAddressStatus(
  1333. HLINE hLine,
  1334. DWORD dwAddressID,
  1335. LPLINEADDRESSSTATUS lpAddressStatus);
  1336. LONG WINAPI lineGetCallInfo(
  1337. HCALL hCall,
  1338. LPLINECALLINFO lpCallInfo);
  1339. LONG WINAPI lineGetCallStatus(
  1340. HCALL hCall,
  1341. LPLINECALLSTATUS lpCallStatus);
  1342. LONG WINAPI lineGetConfRelatedCalls(
  1343. HCALL hCall,
  1344. LPLINECALLLIST lpCallList);
  1345. LONG WINAPI lineGetDevCaps(
  1346. HLINEAPP hLineApp,
  1347. DWORD dwDeviceID,
  1348. DWORD dwAPIVersion,
  1349. DWORD dwExtVersion,
  1350. LPLINEDEVCAPS lpLineDevCaps);
  1351. LONG WINAPI lineGetDevConfig(
  1352. DWORD dwDeviceID,
  1353. LPVARSTRING lpDeviceConfig,
  1354. LPCSTR lpszDeviceClass);
  1355. LONG WINAPI lineGetNewCalls(
  1356. HLINE hLine,
  1357. DWORD dwAddressID,
  1358. DWORD dwSelect,
  1359. LPLINECALLLIST lpCallList);
  1360. LONG WINAPI lineGetIcon(
  1361. DWORD dwDeviceID,
  1362. LPCSTR lpszDeviceClass,
  1363. LPHICON lphIcon);
  1364. LONG WINAPI lineGetID(
  1365. HLINE hLine,
  1366. DWORD dwAddressID,
  1367. HCALL hCall,
  1368. DWORD dwSelect,
  1369. LPVARSTRING lpDeviceID,
  1370. LPCSTR lpszDeviceClass);
  1371. LONG WINAPI lineGetLineDevStatus(
  1372. HLINE hLine,
  1373. LPLINEDEVSTATUS lpLineDevStatus);
  1374. LONG WINAPI lineGetNumRings(
  1375. HLINE hLine,
  1376. DWORD dwAddressID,
  1377. LPDWORD lpdwNumRings);
  1378. LONG WINAPI lineGetRequest(
  1379. HLINEAPP hLineApp,
  1380. DWORD dwRequestMode,
  1381. LPVOID lpRequestBuffer);
  1382. LONG WINAPI lineGetStatusMessages(
  1383. HLINE hLine,
  1384. LPDWORD lpdwLineStates,
  1385. LPDWORD lpdwAddressStates);
  1386. LONG WINAPI lineHandoff(
  1387. HCALL hCall,
  1388. LPCSTR lpszFileName,
  1389. DWORD dwMediaMode);
  1390. LONG WINAPI lineHold(
  1391. HCALL hCall);
  1392. LONG WINAPI lineInitialize(
  1393. LPHLINEAPP lphLineApp,
  1394. HINSTANCE hInstance,
  1395. LINECALLBACK lpfnCallback,
  1396. LPCSTR lpszAppName,
  1397. LPDWORD lpdwNumDevs);
  1398. LONG WINAPI lineMakeCall(
  1399. HLINE hLine,
  1400. LPHCALL lphCall,
  1401. LPCSTR lpszDestAddress,
  1402. DWORD dwCountryCode,
  1403. LPLINECALLPARAMS const lpCallParams);
  1404. LONG WINAPI lineMonitorDigits(
  1405. HCALL hCall,
  1406. DWORD dwDigitModes);
  1407. LONG WINAPI lineMonitorMedia(
  1408. HCALL hCall,
  1409. DWORD dwMediaModes);
  1410. LONG WINAPI lineMonitorTones(
  1411. HCALL hCall,
  1412. LPLINEMONITORTONE const lpToneList,
  1413. DWORD dwNumEntries);
  1414. LONG WINAPI lineNegotiateAPIVersion(
  1415. HLINEAPP hLineApp,
  1416. DWORD dwDeviceID,
  1417. DWORD dwAPILowVersion,
  1418. DWORD dwAPIHighVersion,
  1419. LPDWORD lpdwAPIVersion,
  1420. LPLINEEXTENSIONID lpExtensionID);
  1421. LONG WINAPI lineNegotiateExtVersion(
  1422. HLINEAPP hLineApp,
  1423. DWORD dwDeviceID,
  1424. DWORD dwAPIVersion,
  1425. DWORD dwExtLowVersion,
  1426. DWORD dwExtHighVersion,
  1427. LPDWORD lpdwExtVersion);
  1428. LONG WINAPI lineOpen(
  1429. HLINEAPP hLineApp,
  1430. DWORD dwDeviceID,
  1431. LPHLINE lphLine,
  1432. DWORD dwAPIVersion,
  1433. DWORD dwExtVersion,
  1434. DWORD dwCallbackInstance,
  1435. DWORD dwPrivileges,
  1436. DWORD dwMediaModes,
  1437. LPLINECALLPARAMS const lpCallParams);
  1438. LONG WINAPI linePark(
  1439. HCALL hCall,
  1440. DWORD dwParkMode,
  1441. LPCSTR lpszDirAddress,
  1442. LPVARSTRING lpNonDirAddress);
  1443. LONG WINAPI linePickup(
  1444. HLINE hLine,
  1445. DWORD dwAddressID,
  1446. LPHCALL lphCall,
  1447. LPCSTR lpszDestAddress,
  1448. LPCSTR lpszGroupID);
  1449. LONG WINAPI linePrepareAddToConference(
  1450. HCALL hConfCall,
  1451. LPHCALL lphConsultCall,
  1452. LPLINECALLPARAMS const lpCallParams);
  1453. LONG WINAPI lineRedirect(
  1454. HCALL hCall,
  1455. LPCSTR lpszDestAddress,
  1456. DWORD dwCountryCode);
  1457. LONG WINAPI lineRemoveFromConference(
  1458. HCALL hCall);
  1459. LONG WINAPI lineSecureCall(
  1460. HCALL hCall);
  1461. LONG WINAPI lineSendUserUserInfo(
  1462. HCALL hCall,
  1463. LPCSTR lpsUserUserInfo,
  1464. DWORD dwSize);
  1465. LONG WINAPI lineSetAppSpecific(
  1466. HCALL hCall,
  1467. DWORD dwAppSpecific);
  1468. LONG WINAPI lineSetCallParams(
  1469. HCALL hCall,
  1470. DWORD dwBearerMode,
  1471. DWORD dwMinRate,
  1472. DWORD dwMaxRate,
  1473. LPLINEDIALPARAMS const lpDialParams);
  1474. LONG WINAPI lineSetCallPrivilege(
  1475. HCALL hCall,
  1476. DWORD dwCallPrivilege);
  1477. LONG WINAPI lineSetDevConfig(
  1478. DWORD dwDeviceID,
  1479. LPVOID const lpDeviceConfig,
  1480. DWORD dwSize,
  1481. LPCSTR lpszDeviceClass);
  1482. LONG WINAPI lineSetMediaControl(
  1483. HLINE hLine,
  1484. DWORD dwAddressID,
  1485. HCALL hCall,
  1486. DWORD dwSelect,
  1487. LPLINEMEDIACONTROLDIGIT const lpDigitList,
  1488. DWORD dwDigitNumEntries,
  1489. LPLINEMEDIACONTROLMEDIA const lpMediaList,
  1490. DWORD dwMediaNumEntries,
  1491. LPLINEMEDIACONTROLTONE const lpToneList,
  1492. DWORD dwToneNumEntries,
  1493. LPLINEMEDIACONTROLCALLSTATE const lpCallStateList,
  1494. DWORD dwCallStateNumEntries);
  1495. LONG WINAPI lineSetMediaMode(
  1496. HCALL hCall,
  1497. DWORD dwMediaModes);
  1498. LONG WINAPI lineSetNumRings(
  1499. HLINE hLine,
  1500. DWORD dwAddressID,
  1501. DWORD dwNumRings);
  1502. LONG WINAPI lineSetStatusMessages(
  1503. HLINE hLine,
  1504. DWORD dwLineStates,
  1505. DWORD dwAddressStates);
  1506. LONG WINAPI lineSetTerminal(
  1507. HLINE hLine,
  1508. DWORD dwAddressID,
  1509. HCALL hCall,
  1510. DWORD dwSelect,
  1511. DWORD dwTerminalModes,
  1512. DWORD dwTerminalID,
  1513. DWORD bEnable);
  1514. LONG WINAPI lineSetupConference(
  1515. HCALL hCall,
  1516. HLINE hLine,
  1517. LPHCALL lphConfCall,
  1518. LPHCALL lphConsultCall,
  1519. DWORD dwNumParties,
  1520. LPLINECALLPARAMS const lpCallParams);
  1521. LONG WINAPI lineSetupTransfer(
  1522. HCALL hCall,
  1523. LPHCALL lphConsultCall,
  1524. LPLINECALLPARAMS const lpCallParams);
  1525. LONG WINAPI lineShutdown(
  1526. HLINEAPP hLineApp);
  1527. LONG WINAPI lineSwapHold(
  1528. HCALL hActiveCall,
  1529. HCALL hHeldCall);
  1530. LONG WINAPI lineUncompleteCall(
  1531. HLINE hLine,
  1532. DWORD dwCompletionID);
  1533. LONG WINAPI lineUnhold(
  1534. HCALL hCall);
  1535. LONG WINAPI lineUnpark(
  1536. HLINE hLine,
  1537. DWORD dwAddressID,
  1538. LPHCALL lphCall,
  1539. LPCSTR lpszDestAddress);
  1540. LONG WINAPI phoneClose(
  1541. HPHONE hPhone);
  1542. LONG WINAPI phoneConfigDialog(
  1543. DWORD dwDeviceID,
  1544. HWND hwndOwner,
  1545. LPCSTR lpszDeviceClass);
  1546. LONG WINAPI phoneDevSpecific(
  1547. HPHONE hPhone,
  1548. LPVOID lpParams,
  1549. DWORD dwSize);
  1550. LONG WINAPI phoneGetButtonInfo(
  1551. HPHONE hPhone,
  1552. DWORD dwButtonLampID,
  1553. LPPHONEBUTTONINFO lpButtonInfo);
  1554. LONG WINAPI phoneGetData(
  1555. HPHONE hPhone,
  1556. DWORD dwDataID,
  1557. LPVOID lpData,
  1558. DWORD dwSize);
  1559. LONG WINAPI phoneGetDevCaps(
  1560. HPHONEAPP hPhoneApp,
  1561. DWORD dwDeviceID,
  1562. DWORD dwAPIVersion,
  1563. DWORD dwExtVersion,
  1564. LPPHONECAPS lpPhoneCaps);
  1565. LONG WINAPI phoneGetDisplay(
  1566. HPHONE hPhone,
  1567. LPVARSTRING lpDisplay);
  1568. LONG WINAPI phoneGetGain(
  1569. HPHONE hPhone,
  1570. DWORD dwHookSwitchDev,
  1571. LPDWORD lpdwGain);
  1572. LONG WINAPI phoneGetHookSwitch(
  1573. HPHONE hPhone,
  1574. LPDWORD lpdwHookSwitchDevs);
  1575. LONG WINAPI phoneGetIcon(
  1576. DWORD dwDeviceID,
  1577. LPCSTR lpszDeviceClass,
  1578. LPHICON lphIcon);
  1579. LONG WINAPI phoneGetID(
  1580. HPHONE hPhone,
  1581. LPVARSTRING lpDeviceID,
  1582. LPCSTR lpszDeviceClass);
  1583. LONG WINAPI phoneGetLamp(
  1584. HPHONE hPhone,
  1585. DWORD dwButtonLampID,
  1586. LPDWORD lpdwLampMode);
  1587. LONG WINAPI phoneGetRing(
  1588. HPHONE hPhone,
  1589. LPDWORD lpdwRingMode,
  1590. LPDWORD lpdwVolume);
  1591. LONG WINAPI phoneGetStatus(
  1592. HPHONE hPhone,
  1593. LPPHONESTATUS lpPhoneStatus);
  1594. LONG WINAPI phoneGetStatusMessages(
  1595. HPHONE hPhone,
  1596. LPDWORD lpdwPhoneStates,
  1597. LPDWORD lpdwButtonModes,
  1598. LPDWORD lpdwButtonStates);
  1599. LONG WINAPI phoneGetVolume(
  1600. HPHONE hPhone,
  1601. DWORD dwHookSwitchDev,
  1602. LPDWORD lpdwVolume);
  1603. LONG WINAPI phoneInitialize(
  1604. LPHPHONEAPP lphPhoneApp,
  1605. HINSTANCE hInstance,
  1606. PHONECALLBACK lpfnCallback,
  1607. LPCSTR lpszAppName,
  1608. LPDWORD lpdwNumDevs);
  1609. LONG WINAPI phoneNegotiateAPIVersion(
  1610. HPHONEAPP hPhoneApp,
  1611. DWORD dwDeviceID,
  1612. DWORD dwAPILowVersion,
  1613. DWORD dwAPIHighVersion,
  1614. LPDWORD lpdwAPIVersion,
  1615. LPPHONEEXTENSIONID lpExtensionID);
  1616. LONG WINAPI phoneNegotiateExtVersion(
  1617. HPHONEAPP hPhoneApp,
  1618. DWORD dwDeviceID,
  1619. DWORD dwAPIVersion,
  1620. DWORD dwExtLowVersion,
  1621. DWORD dwExtHighVersion,
  1622. LPDWORD lpdwExtVersion);
  1623. LONG WINAPI phoneOpen(
  1624. HPHONEAPP hPhoneApp,
  1625. DWORD dwDeviceID,
  1626. LPHPHONE lphPhone,
  1627. DWORD dwAPIVersion,
  1628. DWORD dwExtVersion,
  1629. DWORD dwCallbackInstance,
  1630. DWORD dwPrivilege);
  1631. LONG WINAPI phoneSetButtonInfo(
  1632. HPHONE hPhone,
  1633. DWORD dwButtonLampID,
  1634. LPPHONEBUTTONINFO const lpButtonInfo);
  1635. LONG WINAPI phoneSetData(
  1636. HPHONE hPhone,
  1637. DWORD dwDataID,
  1638. LPVOID const lpData,
  1639. DWORD dwSize);
  1640. LONG WINAPI phoneSetDisplay(
  1641. HPHONE hPhone,
  1642. DWORD dwRow,
  1643. DWORD dwColumn,
  1644. LPCSTR lpsDisplay,
  1645. DWORD dwSize);
  1646. LONG WINAPI phoneSetGain(
  1647. HPHONE hPhone,
  1648. DWORD dwHookSwitchDev,
  1649. DWORD dwGain);
  1650. LONG WINAPI phoneSetHookSwitch(
  1651. HPHONE hPhone,
  1652. DWORD dwHookSwitchDevs,
  1653. DWORD dwHookSwitchMode);
  1654. LONG WINAPI phoneSetLamp(
  1655. HPHONE hPhone,
  1656. DWORD dwButtonLampID,
  1657. DWORD dwLampMode);
  1658. LONG WINAPI phoneSetRing(
  1659. HPHONE hPhone,
  1660. DWORD dwRingMode,
  1661. DWORD dwVolume);
  1662. LONG WINAPI phoneSetStatusMessages(
  1663. HPHONE hPhone,
  1664. DWORD dwPhoneStates,
  1665. DWORD dwButtonModes,
  1666. DWORD dwButtonStates);
  1667. LONG WINAPI phoneSetVolume(
  1668. HPHONE hPhone,
  1669. DWORD dwHookSwitchDev,
  1670. DWORD dwVolume);
  1671. LONG WINAPI phoneShutdown(
  1672. HPHONEAPP hPhoneApp);
  1673. /* Tapi 1.1 extensions */
  1674. LONG WINAPI lineTranslateDialog(
  1675. HLINEAPP hLineApp,
  1676. DWORD dwDeviceID,
  1677. DWORD dwAPIVersion,
  1678. HWND hwndOwner,
  1679. LPCSTR lpszAddressIn);
  1680. LONG WINAPI lineAddLocation(
  1681. LPCSTR lpszLocationName,
  1682. LPCSTR lpszLocalAccessCode,
  1683. LPCSTR lpszLongDistanceAccessCode,
  1684. LPCSTR lpszAreaCode,
  1685. DWORD dwCountryID,
  1686. DWORD dwPermanentCardID,
  1687. LPCSTR lpszTollPrefixList,
  1688. LPDWORD lpdwPermanentLocationID);
  1689. LONG WINAPI lineSetLocation(
  1690. DWORD dwPermanentLocationID,
  1691. LPCSTR lpszLocationName,
  1692. LPCSTR lpszLocalAccessCode,
  1693. LPCSTR lpszLongDistanceAccessCode,
  1694. LPCSTR lpszAreaCode,
  1695. DWORD dwCountryID,
  1696. DWORD dwPermanentCardID,
  1697. LPCSTR lpszTollPrefixList);
  1698. LONG WINAPI lineRemoveLocation(
  1699. DWORD dwPermanentLocationID);
  1700. LONG WINAPI lineAddCard(
  1701. LPCSTR lpszCardName,
  1702. LPCSTR lpszCardNumber,
  1703. LPCSTR lpszSameAreaRule,
  1704. LPCSTR lpszLongDistanceRule,
  1705. LPCSTR lpszInternationalRule,
  1706. DWORD dwHideIfBlank,
  1707. LPDWORD lpdwPermanentCardID);
  1708. LONG WINAPI lineSetCard(
  1709. DWORD dwPermanentCardID,
  1710. LPCSTR lpszCardName,
  1711. LPCSTR lpszCardNumber,
  1712. LPCSTR lpszSameAreaRule,
  1713. LPCSTR lpszLongDistanceRule,
  1714. LPCSTR lpszInternationalRule,
  1715. DWORD dwHideIfBlank);
  1716. LONG WINAPI lineRemoveCard(
  1717. DWORD dwPermanentCardID);
  1718. LONG WINAPI lineGetCountry(
  1719. DWORD dwCountryID,
  1720. LPLINECOUNTRYLIST lpLineCountryList);
  1721. LONG WINAPI lineSetCountry(
  1722. DWORD dwCountryId,
  1723. DWORD dwCountryCode,
  1724. DWORD dwNextCountry,
  1725. LPCSTR lpszCountryName,
  1726. LPCSTR lpszSameAreaRule,
  1727. LPCSTR lpszLongDistanceRule,
  1728. LPCSTR lpszInternationalRule);
  1729. LONG WINAPI lineGetAppPriority(
  1730. LPCSTR lpszAppName,
  1731. DWORD dwMediaMode,
  1732. LPLINEEXTENSIONID lpExtensionID,
  1733. DWORD dwRequestMode,
  1734. LPVARSTRING lpExtensionName,
  1735. LPDWORD lpdwPriority);
  1736. LONG WINAPI lineSetAppPriority(
  1737. LPCSTR lpszAppName,
  1738. DWORD dwMediaMode,
  1739. LPLINEEXTENSIONID lpExtensionID,
  1740. DWORD dwRequestMode,
  1741. LPCSTR lpszExtensionName,
  1742. DWORD dwPriority);
  1743. LONG WINAPI lineAddProvider(
  1744. LPCSTR lpszProviderFilename,
  1745. HWND hwndOwner,
  1746. LPDWORD lpdwPermanentProviderID);
  1747. LONG WINAPI lineConfigProvider(
  1748. HWND hwndOwner,
  1749. DWORD dwPermanentProviderID);
  1750. LONG WINAPI lineRemoveProvider(
  1751. DWORD dwPermanentProviderID,
  1752. HWND hwndOwner);
  1753. LONG WINAPI lineGetProviderList(
  1754. LPLINEPROVIDERLIST lpProviderList);
  1755. #ifdef __cplusplus
  1756. } /* End of extern "C" { */
  1757. #endif /* __cplusplus */
  1758. #pragma pack()
  1759. #endif // TAPI_H