Leaked source code of windows server 2003
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.

445 lines
22 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. vars.c
  5. Abstract:
  6. This module contains
  7. Author:
  8. Dan Knudson (DanKn) 18-Sep-1995
  9. Revision History:
  10. Notes:
  11. --*/
  12. #include "esp.h"
  13. char szTab[] = " ";
  14. char szhdLine[] = "hdLine";
  15. char szhdCall[] = "hdCall";
  16. char szdwSize[] = "dwSize";
  17. char szCallUp[] = "^^^^";
  18. char szEspTsp[] = "esp.tsp";
  19. char szhdPhone[] = "hdPhone";
  20. char szProvider[] = "Provider";
  21. WCHAR szESPUIDLL[] = L"espui.dll";
  22. char szhwndOwner[] = "hwndOwner";
  23. char szMySection[] = "ESP32";
  24. char szProviders[] = "Providers";
  25. char szProviderID[] = "ProviderID";
  26. char szdwDeviceID[] = "dwDeviceID";
  27. char szdwRequestID[] = "dwRequestID";
  28. char szTelephonIni[] = "telephon.ini";
  29. char szlpCallParams[] = "lpCallParams";
  30. char szNumProviders[] = "NumProviders";
  31. char szNextProviderID[] = "NextProviderID";
  32. char szProviderFilename[] = "ProviderFileName";
  33. char szdwPermanentProviderID[] = "dwPermanentProviderID";
  34. #if DBG
  35. DWORD gdwDebugLevel;
  36. #endif
  37. HANDLE ghInstance;
  38. HANDLE ghDebugOutputEvent;
  39. HANDLE ghShutdownEvent;
  40. HANDLE ghWidgetEventsEvent;
  41. ESPGLOBALS gESPGlobals;
  42. LOOKUP aAddressStates[] =
  43. {
  44. { LINEADDRESSSTATE_OTHER ,"OTHER" },
  45. { LINEADDRESSSTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  46. { LINEADDRESSSTATE_INUSEZERO ,"INUSEZERO" },
  47. { LINEADDRESSSTATE_INUSEONE ,"INUSEONE" },
  48. { LINEADDRESSSTATE_INUSEMANY ,"INUSEMANY" },
  49. { LINEADDRESSSTATE_NUMCALLS ,"NUMCALLS" },
  50. { LINEADDRESSSTATE_FORWARD ,"FORWARD" },
  51. { LINEADDRESSSTATE_TERMINALS ,"TERMINALS" },
  52. { LINEADDRESSSTATE_CAPSCHANGE ,"CAPSCHANGE" },
  53. { 0xffffffff ,"" }
  54. };
  55. LOOKUP aBearerModes[] =
  56. {
  57. { LINEBEARERMODE_VOICE ,"VOICE" },
  58. { LINEBEARERMODE_SPEECH ,"SPEECH" },
  59. { LINEBEARERMODE_MULTIUSE ,"MULTIUSE" },
  60. { LINEBEARERMODE_DATA ,"DATA" },
  61. { LINEBEARERMODE_ALTSPEECHDATA ,"ALTSPEECHDATA" },
  62. { LINEBEARERMODE_NONCALLSIGNALING ,"NONCALLSIGNALING" },
  63. { LINEBEARERMODE_PASSTHROUGH ,"PASSTHROUGH" },
  64. { 0xffffffff ,"" }
  65. };
  66. LOOKUP aButtonModes[] =
  67. {
  68. { PHONEBUTTONMODE_DUMMY ,"DUMMY" },
  69. { PHONEBUTTONMODE_CALL ,"CALL" },
  70. { PHONEBUTTONMODE_FEATURE ,"FEATURE" },
  71. { PHONEBUTTONMODE_KEYPAD ,"KEYPAD" },
  72. { PHONEBUTTONMODE_LOCAL ,"LOCAL" },
  73. { PHONEBUTTONMODE_DISPLAY ,"DISPLAY" },
  74. { 0xffffffff ,"" }
  75. };
  76. LOOKUP aButtonStates[] =
  77. {
  78. { PHONEBUTTONSTATE_UP ,"UP" },
  79. { PHONEBUTTONSTATE_DOWN ,"DOWN" },
  80. { PHONEBUTTONSTATE_UNKNOWN ,"UNKNOWN" },
  81. { PHONEBUTTONSTATE_UNAVAIL ,"UNAVAIL" },
  82. { 0xffffffff ,"" }
  83. };
  84. LOOKUP aCallInfoStates[] =
  85. {
  86. { LINECALLINFOSTATE_OTHER ,"OTHER" },
  87. { LINECALLINFOSTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  88. { LINECALLINFOSTATE_BEARERMODE ,"BEARERMODE" },
  89. { LINECALLINFOSTATE_RATE ,"RATE" },
  90. { LINECALLINFOSTATE_MEDIAMODE ,"MEDIAMODE" },
  91. { LINECALLINFOSTATE_APPSPECIFIC ,"APPSPECIFIC" },
  92. { LINECALLINFOSTATE_CALLID ,"CALLID" },
  93. { LINECALLINFOSTATE_RELATEDCALLID ,"RELATEDCALLID" },
  94. { LINECALLINFOSTATE_ORIGIN ,"ORIGIN" },
  95. { LINECALLINFOSTATE_REASON ,"REASON" },
  96. { LINECALLINFOSTATE_COMPLETIONID ,"COMPLETIONID" },
  97. { LINECALLINFOSTATE_NUMOWNERINCR ,"NUMOWNERINCR" },
  98. { LINECALLINFOSTATE_NUMOWNERDECR ,"NUMOWNERDECR" },
  99. { LINECALLINFOSTATE_NUMMONITORS ,"NUMMONITORS" },
  100. { LINECALLINFOSTATE_TRUNK ,"TRUNK" },
  101. { LINECALLINFOSTATE_CALLERID ,"CALLERID" },
  102. { LINECALLINFOSTATE_CALLEDID ,"CALLEDID" },
  103. { LINECALLINFOSTATE_CONNECTEDID ,"CONNECTEDID" },
  104. { LINECALLINFOSTATE_REDIRECTIONID ,"REDIRECTIONID" },
  105. { LINECALLINFOSTATE_REDIRECTINGID ,"REDIRECTINGID" },
  106. { LINECALLINFOSTATE_DISPLAY ,"DISPLAY" },
  107. { LINECALLINFOSTATE_USERUSERINFO ,"USERUSERINFO" },
  108. { LINECALLINFOSTATE_HIGHLEVELCOMP ,"HIGHLEVELCOMP" },
  109. { LINECALLINFOSTATE_LOWLEVELCOMP ,"LOWLEVELCOMP" },
  110. { LINECALLINFOSTATE_CHARGINGINFO ,"CHARGINGINFO" },
  111. { LINECALLINFOSTATE_TERMINAL ,"TERMINAL" },
  112. { LINECALLINFOSTATE_DIALPARAMS ,"DIALPARAMS" },
  113. { LINECALLINFOSTATE_MONITORMODES ,"MONITORMODES" },
  114. { 0xffffffff ,"" }
  115. };
  116. LOOKUP aCallSelects[] =
  117. {
  118. { LINECALLSELECT_LINE ,"LINE" },
  119. { LINECALLSELECT_ADDRESS ,"ADDRESS" },
  120. { LINECALLSELECT_CALL ,"CALL" },
  121. { 0xffffffff ,"" }
  122. };
  123. LOOKUP aCallStates[] =
  124. {
  125. { LINECALLSTATE_IDLE ,"IDLE" },
  126. { LINECALLSTATE_OFFERING ,"OFFERING" },
  127. { LINECALLSTATE_ACCEPTED ,"ACCEPTED" },
  128. { LINECALLSTATE_DIALTONE ,"DIALTONE" },
  129. { LINECALLSTATE_DIALING ,"DIALING" },
  130. { LINECALLSTATE_RINGBACK ,"RINGBACK" },
  131. { LINECALLSTATE_BUSY ,"BUSY" },
  132. { LINECALLSTATE_SPECIALINFO ,"SPECIALINFO" },
  133. { LINECALLSTATE_CONNECTED ,"CONNECTED" },
  134. { LINECALLSTATE_PROCEEDING ,"PROCEEDING" },
  135. { LINECALLSTATE_ONHOLD ,"ONHOLD" },
  136. { LINECALLSTATE_CONFERENCED ,"CONFERENCED" },
  137. { LINECALLSTATE_ONHOLDPENDCONF ,"ONHOLDPENDCONF" },
  138. { LINECALLSTATE_ONHOLDPENDTRANSFER ,"ONHOLDPENDTRANSFER" },
  139. { LINECALLSTATE_DISCONNECTED ,"DISCONNECTED" },
  140. { LINECALLSTATE_UNKNOWN ,"UNKNOWN" },
  141. { 0xffffffff ,"" }
  142. };
  143. LOOKUP aDigitModes[] =
  144. {
  145. { LINEDIGITMODE_PULSE ,"PULSE" },
  146. { LINEDIGITMODE_DTMF ,"DTMF" },
  147. { LINEDIGITMODE_DTMFEND ,"DTMFEND" },
  148. { 0xffffffff ,"" }
  149. };
  150. LOOKUP aHookSwitchDevs[] =
  151. {
  152. { PHONEHOOKSWITCHDEV_HANDSET ,"HANDSET" },
  153. { PHONEHOOKSWITCHDEV_SPEAKER ,"SPEAKER" },
  154. { PHONEHOOKSWITCHDEV_HEADSET ,"HEADSET" },
  155. { 0xffffffff ,"" }
  156. };
  157. LOOKUP aHookSwitchModes[] =
  158. {
  159. { PHONEHOOKSWITCHMODE_ONHOOK ,"ONHOOK" },
  160. { PHONEHOOKSWITCHMODE_MIC ,"MIC" },
  161. { PHONEHOOKSWITCHMODE_SPEAKER ,"SPEAKER" },
  162. { PHONEHOOKSWITCHMODE_MICSPEAKER ,"MICSPEAKER" },
  163. { PHONEHOOKSWITCHMODE_UNKNOWN ,"UNKNOWN" },
  164. { 0xffffffff ,"" }
  165. };
  166. LOOKUP aLampModes[] =
  167. {
  168. { PHONELAMPMODE_DUMMY ,"DUMMY" },
  169. { PHONELAMPMODE_OFF ,"OFF" },
  170. { PHONELAMPMODE_STEADY ,"STEADY" },
  171. { PHONELAMPMODE_WINK ,"WINK" },
  172. { PHONELAMPMODE_FLASH ,"FLASH" },
  173. { PHONELAMPMODE_FLUTTER ,"FLUTTER" },
  174. { PHONELAMPMODE_BROKENFLUTTER ,"BROKENFLUTTER" },
  175. { PHONELAMPMODE_UNKNOWN ,"UNKNOWN" },
  176. { 0xffffffff ,"" }
  177. };
  178. LOOKUP aLineStates[] =
  179. {
  180. { LINEDEVSTATE_OTHER ,"OTHER" },
  181. { LINEDEVSTATE_RINGING ,"RINGING" },
  182. { LINEDEVSTATE_CONNECTED ,"CONNECTED" },
  183. { LINEDEVSTATE_DISCONNECTED ,"DISCONNECTED" },
  184. { LINEDEVSTATE_MSGWAITON ,"MSGWAITON" },
  185. { LINEDEVSTATE_MSGWAITOFF ,"MSGWAITOFF" },
  186. { LINEDEVSTATE_INSERVICE ,"INSERVICE" },
  187. { LINEDEVSTATE_OUTOFSERVICE ,"OUTOFSERVICE" },
  188. { LINEDEVSTATE_MAINTENANCE ,"MAINTENANCE" },
  189. { LINEDEVSTATE_OPEN ,"OPEN" },
  190. { LINEDEVSTATE_CLOSE ,"CLOSE" },
  191. { LINEDEVSTATE_NUMCALLS ,"NUMCALLS" },
  192. { LINEDEVSTATE_NUMCOMPLETIONS ,"NUMCOMPLETIONS" },
  193. { LINEDEVSTATE_TERMINALS ,"TERMINALS" },
  194. { LINEDEVSTATE_ROAMMODE ,"ROAMMODE" },
  195. { LINEDEVSTATE_BATTERY ,"BATTERY" },
  196. { LINEDEVSTATE_SIGNAL ,"SIGNAL" },
  197. { LINEDEVSTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  198. { LINEDEVSTATE_REINIT ,"REINIT" },
  199. { LINEDEVSTATE_LOCK ,"LOCK" },
  200. { LINEDEVSTATE_CAPSCHANGE ,"CAPSCHANGE" },
  201. { LINEDEVSTATE_CONFIGCHANGE ,"CONFIGCHANGE" },
  202. { LINEDEVSTATE_TRANSLATECHANGE ,"TRANSLATECHANGE" },
  203. { LINEDEVSTATE_COMPLCANCEL ,"COMPLCANCEL" },
  204. { LINEDEVSTATE_REMOVED ,"REMOVED" },
  205. { 0xffffffff ,"" }
  206. };
  207. LOOKUP aMediaModes[] =
  208. {
  209. { LINEMEDIAMODE_UNKNOWN ,"UNKNOWN" },
  210. { LINEMEDIAMODE_INTERACTIVEVOICE ,"INTERACTIVEVOICE" },
  211. { LINEMEDIAMODE_AUTOMATEDVOICE ,"AUTOMATEDVOICE" },
  212. { LINEMEDIAMODE_DATAMODEM ,"DATAMODEM" },
  213. { LINEMEDIAMODE_G3FAX ,"G3FAX" },
  214. { LINEMEDIAMODE_TDD ,"TDD" },
  215. { LINEMEDIAMODE_G4FAX ,"G4FAX" },
  216. { LINEMEDIAMODE_DIGITALDATA ,"DIGITALDATA" },
  217. { LINEMEDIAMODE_TELETEX ,"TELETEX" },
  218. { LINEMEDIAMODE_VIDEOTEX ,"VIDEOTEX" },
  219. { LINEMEDIAMODE_TELEX ,"TELEX" },
  220. { LINEMEDIAMODE_MIXED ,"MIXED" },
  221. { LINEMEDIAMODE_ADSI ,"ADSI" },
  222. { LINEMEDIAMODE_VOICEVIEW ,"VOICEVIEW" },
  223. { 0xffffffff ,"" }
  224. };
  225. LOOKUP aPhoneStates[] =
  226. {
  227. { PHONESTATE_OTHER ,"OTHER" },
  228. { PHONESTATE_CONNECTED ,"CONNECTED" },
  229. { PHONESTATE_DISCONNECTED ,"DISCONNECTED" },
  230. { PHONESTATE_OWNER ,"OWNER" },
  231. { PHONESTATE_MONITORS ,"MONITORS" },
  232. { PHONESTATE_DISPLAY ,"DISPLAY" },
  233. { PHONESTATE_LAMP ,"LAMP" },
  234. { PHONESTATE_RINGMODE ,"RINGMODE" },
  235. { PHONESTATE_RINGVOLUME ,"RINGVOLUME" },
  236. { PHONESTATE_HANDSETHOOKSWITCH ,"HANDSETHOOKSWITCH" },
  237. { PHONESTATE_HANDSETVOLUME ,"HANDSETVOLUME" },
  238. { PHONESTATE_HANDSETGAIN ,"HANDSETGAIN" },
  239. { PHONESTATE_SPEAKERHOOKSWITCH ,"SPEAKERHOOKSWITCH" },
  240. { PHONESTATE_SPEAKERVOLUME ,"SPEAKERVOLUME" },
  241. { PHONESTATE_SPEAKERGAIN ,"SPEAKERGAIN" },
  242. { PHONESTATE_HEADSETHOOKSWITCH ,"HEADSETHOOKSWITCH" },
  243. { PHONESTATE_HEADSETVOLUME ,"HEADSETVOLUME" },
  244. { PHONESTATE_HEADSETGAIN ,"HEADSETGAIN" },
  245. { PHONESTATE_SUSPEND ,"SUSPEND" },
  246. { PHONESTATE_RESUME ,"RESUME" },
  247. { PHONESTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  248. { PHONESTATE_REINIT ,"REINIT" },
  249. { PHONESTATE_CAPSCHANGE ,"CAPSCHANGE" },
  250. { PHONESTATE_REMOVED ,"REMOVED" },
  251. { 0xffffffff ,"" }
  252. };
  253. LOOKUP aTerminalModes[] =
  254. {
  255. { LINETERMMODE_BUTTONS ,"BUTTONS" },
  256. { LINETERMMODE_LAMPS ,"LAMPS" },
  257. { LINETERMMODE_DISPLAY ,"DISPLAY" },
  258. { LINETERMMODE_RINGER ,"RINGER" },
  259. { LINETERMMODE_HOOKSWITCH ,"HOOKSWITCH" },
  260. { LINETERMMODE_MEDIATOLINE ,"MEDIATOLINE" },
  261. { LINETERMMODE_MEDIAFROMLINE ,"MEDIAFROMLINE" },
  262. { LINETERMMODE_MEDIABIDIRECT ,"MEDIABIDIRECT" },
  263. { 0xffffffff ,"" }
  264. };
  265. LOOKUP aToneModes[] =
  266. {
  267. { LINETONEMODE_CUSTOM ,"CUSTOM" },
  268. { LINETONEMODE_RINGBACK ,"RINGBACK" },
  269. { LINETONEMODE_BUSY ,"BUSY" },
  270. { LINETONEMODE_BEEP ,"BEEP" },
  271. { LINETONEMODE_BILLING ,"BILLING" },
  272. { 0xffffffff ,"" }
  273. };
  274. LOOKUP aTransferModes[] =
  275. {
  276. { LINETRANSFERMODE_TRANSFER ,"TRANSFER" },
  277. { LINETRANSFERMODE_CONFERENCE ,"CONFERENCE" },
  278. { 0xffffffff ,"" }
  279. };
  280. LOOKUP aLineErrs[] =
  281. {
  282. { 0 ,"<SUCCESS>" },
  283. { LINEERR_ALLOCATED ,"ALLOCATED" },
  284. { LINEERR_BADDEVICEID ,"BADDEVICEID" },
  285. { LINEERR_BEARERMODEUNAVAIL ,"BEARERMODEUNAVAIL" },
  286. { LINEERR_CALLUNAVAIL ,"CALLUNAVAIL" },
  287. { LINEERR_COMPLETIONOVERRUN ,"COMPLETIONOVERRUN" },
  288. { LINEERR_CONFERENCEFULL ,"CONFERENCEFULL" },
  289. { LINEERR_DIALBILLING ,"DIALBILLING" },
  290. { LINEERR_DIALDIALTONE ,"DIALDIALTONE" },
  291. { LINEERR_DIALPROMPT ,"DIALPROMPT" },
  292. { LINEERR_DIALQUIET ,"DIALQUIET" },
  293. { LINEERR_INCOMPATIBLEAPIVERSION ,"INCOMPATIBLEAPIVERSION" },
  294. { LINEERR_INCOMPATIBLEEXTVERSION ,"INCOMPATIBLEEXTVERSION" },
  295. { LINEERR_INIFILECORRUPT ,"INIFILECORRUPT" },
  296. { LINEERR_INUSE ,"INUSE" },
  297. { LINEERR_INVALADDRESS ,"INVALADDRESS" },
  298. { LINEERR_INVALADDRESSID ,"INVALADDRESSID" },
  299. { LINEERR_INVALADDRESSMODE ,"INVALADDRESSMODE" },
  300. { LINEERR_INVALADDRESSSTATE ,"INVALADDRESSSTATE" },
  301. { LINEERR_INVALAPPHANDLE ,"INVALAPPHANDLE" },
  302. { LINEERR_INVALAPPNAME ,"INVALAPPNAME" },
  303. { LINEERR_INVALBEARERMODE ,"INVALBEARERMODE" },
  304. { LINEERR_INVALCALLCOMPLMODE ,"INVALCALLCOMPLMODE" },
  305. { LINEERR_INVALCALLHANDLE ,"INVALCALLHANDLE" },
  306. { LINEERR_INVALCALLPARAMS ,"INVALCALLPARAMS" },
  307. { LINEERR_INVALCALLPRIVILEGE ,"INVALCALLPRIVILEGE" },
  308. { LINEERR_INVALCALLSELECT ,"INVALCALLSELECT" },
  309. { LINEERR_INVALCALLSTATE ,"INVALCALLSTATE" },
  310. { LINEERR_INVALCALLSTATELIST ,"INVALCALLSTATELIST" },
  311. { LINEERR_INVALCARD ,"INVALCARD" },
  312. { LINEERR_INVALCOMPLETIONID ,"INVALCOMPLETIONID" },
  313. { LINEERR_INVALCONFCALLHANDLE ,"INVALCONFCALLHANDLE" },
  314. { LINEERR_INVALCONSULTCALLHANDLE ,"INVALCONSULTCALLHANDLE" },
  315. { LINEERR_INVALCOUNTRYCODE ,"INVALCOUNTRYCODE" },
  316. { LINEERR_INVALDEVICECLASS ,"INVALDEVICECLASS" },
  317. { LINEERR_INVALDEVICEHANDLE ,"INVALDEVICEHANDLE" },
  318. { LINEERR_INVALDIALPARAMS ,"INVALDIALPARAMS" },
  319. { LINEERR_INVALDIGITLIST ,"INVALDIGITLIST" },
  320. { LINEERR_INVALDIGITMODE ,"INVALDIGITMODE" },
  321. { LINEERR_INVALDIGITS ,"INVALDIGITS" },
  322. { LINEERR_INVALEXTVERSION ,"INVALEXTVERSION" },
  323. { LINEERR_INVALGROUPID ,"INVALGROUPID" },
  324. { LINEERR_INVALLINEHANDLE ,"INVALLINEHANDLE" },
  325. { LINEERR_INVALLINESTATE ,"INVALLINESTATE" },
  326. { LINEERR_INVALLOCATION ,"INVALLOCATION" },
  327. { LINEERR_INVALMEDIALIST ,"INVALMEDIALIST" },
  328. { LINEERR_INVALMEDIAMODE ,"INVALMEDIAMODE" },
  329. { LINEERR_INVALMESSAGEID ,"INVALMESSAGEID" },
  330. { LINEERR_INVALPARAM ,"INVALPARAM" },
  331. { LINEERR_INVALPARKID ,"INVALPARKID" },
  332. { LINEERR_INVALPARKMODE ,"INVALPARKMODE" },
  333. { LINEERR_INVALPOINTER ,"INVALPOINTER" },
  334. { LINEERR_INVALPRIVSELECT ,"INVALPRIVSELECT" },
  335. { LINEERR_INVALRATE ,"INVALRATE" },
  336. { LINEERR_INVALREQUESTMODE ,"INVALREQUESTMODE" },
  337. { LINEERR_INVALTERMINALID ,"INVALTERMINALID" },
  338. { LINEERR_INVALTERMINALMODE ,"INVALTERMINALMODE" },
  339. { LINEERR_INVALTIMEOUT ,"INVALTIMEOUT" },
  340. { LINEERR_INVALTONE ,"INVALTONE" },
  341. { LINEERR_INVALTONELIST ,"INVALTONELIST" },
  342. { LINEERR_INVALTONEMODE ,"INVALTONEMODE" },
  343. { LINEERR_INVALTRANSFERMODE ,"INVALTRANSFERMODE" },
  344. { LINEERR_LINEMAPPERFAILED ,"LINEMAPPERFAILED" },
  345. { LINEERR_NOCONFERENCE ,"NOCONFERENCE" },
  346. { LINEERR_NODEVICE ,"NODEVICE" },
  347. { LINEERR_NODRIVER ,"NODRIVER" },
  348. { LINEERR_NOMEM ,"NOMEM" },
  349. { LINEERR_NOREQUEST ,"NOREQUEST" },
  350. { LINEERR_NOTOWNER ,"NOTOWNER" },
  351. { LINEERR_NOTREGISTERED ,"NOTREGISTERED" },
  352. { LINEERR_OPERATIONFAILED ,"OPERATIONFAILED" },
  353. { LINEERR_OPERATIONUNAVAIL ,"OPERATIONUNAVAIL" },
  354. { LINEERR_RATEUNAVAIL ,"RATEUNAVAIL" },
  355. { LINEERR_RESOURCEUNAVAIL ,"RESOURCEUNAVAIL" },
  356. { LINEERR_REQUESTOVERRUN ,"REQUESTOVERRUN" },
  357. { LINEERR_STRUCTURETOOSMALL ,"STRUCTURETOOSMALL" },
  358. { LINEERR_TARGETNOTFOUND ,"TARGETNOTFOUND" },
  359. { LINEERR_TARGETSELF ,"TARGETSELF" },
  360. { LINEERR_UNINITIALIZED ,"UNINITIALIZED" },
  361. { LINEERR_USERUSERINFOTOOBIG ,"USERUSERINFOTOOBIG" },
  362. { LINEERR_REINIT ,"REINIT" },
  363. { LINEERR_ADDRESSBLOCKED ,"ADDRESSBLOCKED" },
  364. { LINEERR_BILLINGREJECTED ,"BILLINGREJECTED" },
  365. { LINEERR_INVALFEATURE ,"INVALFEATURE" },
  366. { LINEERR_NOMULTIPLEINSTANCE ,"NOMULTIPLEINSTANCE" },
  367. { 0xffffffff ,"" }
  368. };
  369. LOOKUP aPhoneErrs[] =
  370. {
  371. { 0 ,"<SUCCESS>" },
  372. { PHONEERR_ALLOCATED ,"ALLOCATED" },
  373. { PHONEERR_BADDEVICEID ,"BADDEVICEID" },
  374. { PHONEERR_INCOMPATIBLEAPIVERSION ,"INCOMPATIBLEAPIVERSION" },
  375. { PHONEERR_INCOMPATIBLEEXTVERSION ,"INCOMPATIBLEEXTVERSION" },
  376. { PHONEERR_INIFILECORRUPT ,"INIFILECORRUPT" },
  377. { PHONEERR_INUSE ,"INUSE" },
  378. { PHONEERR_INVALAPPHANDLE ,"INVALAPPHANDLE" },
  379. { PHONEERR_INVALAPPNAME ,"INVALAPPNAME" },
  380. { PHONEERR_INVALBUTTONLAMPID ,"INVALBUTTONLAMPID" },
  381. { PHONEERR_INVALBUTTONMODE ,"INVALBUTTONMODE" },
  382. { PHONEERR_INVALBUTTONSTATE ,"INVALBUTTONSTATE" },
  383. { PHONEERR_INVALDATAID ,"INVALDATAID" },
  384. { PHONEERR_INVALDEVICECLASS ,"INVALDEVICECLASS" },
  385. { PHONEERR_INVALEXTVERSION ,"INVALEXTVERSION" },
  386. { PHONEERR_INVALHOOKSWITCHDEV ,"INVALHOOKSWITCHDEV" },
  387. { PHONEERR_INVALHOOKSWITCHMODE ,"INVALHOOKSWITCHMODE" },
  388. { PHONEERR_INVALLAMPMODE ,"INVALLAMPMODE" },
  389. { PHONEERR_INVALPARAM ,"INVALPARAM" },
  390. { PHONEERR_INVALPHONEHANDLE ,"INVALPHONEHANDLE" },
  391. { PHONEERR_INVALPHONESTATE ,"INVALPHONESTATE" },
  392. { PHONEERR_INVALPOINTER ,"INVALPOINTER" },
  393. { PHONEERR_INVALPRIVILEGE ,"INVALPRIVILEGE" },
  394. { PHONEERR_INVALRINGMODE ,"INVALRINGMODE" },
  395. { PHONEERR_NODEVICE ,"NODEVICE" },
  396. { PHONEERR_NODRIVER ,"NODRIVER" },
  397. { PHONEERR_NOMEM ,"NOMEM" },
  398. { PHONEERR_NOTOWNER ,"NOTOWNER" },
  399. { PHONEERR_OPERATIONFAILED ,"OPERATIONFAILED" },
  400. { PHONEERR_OPERATIONUNAVAIL ,"OPERATIONUNAVAIL" },
  401. { PHONEERR_RESOURCEUNAVAIL ,"RESOURCEUNAVAIL" },
  402. { PHONEERR_REQUESTOVERRUN ,"REQUESTOVERRUN" },
  403. { PHONEERR_STRUCTURETOOSMALL ,"STRUCTURETOOSMALL" },
  404. { PHONEERR_UNINITIALIZED ,"UNINITIALIZED" },
  405. { PHONEERR_REINIT ,"REINIT" },
  406. { 0xffffffff ,"" }
  407. };