home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / tapi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  66.3 KB  |  2,042 lines

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