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.

285 lines
9.2 KiB

  1. #ifndef TAPICLIENT_H
  2. #define TAPICLIENT_H
  3. #include <windows.h>
  4. #include "tapi.h"
  5. #if TAPI_CURRENT_VERSION < 0x00020000
  6. #error Building a 32bit 1.3 or 1.4 TAPI Client Management DLL is not supported
  7. #endif
  8. // tapiclnt.h is only of use in conjunction with tapi.h. Very few types are
  9. // defined in tapiclnt.h. Most types of procedure formal parameters are simply
  10. // passed through from corresponding procedures in tapi.h. A working knowledge
  11. // of the TAPI interface is required for an understanding of this interface.
  12. #ifdef __cplusplus
  13. extern "C" { /* Assume C declarations for C++ */
  14. #endif /* __cplusplus */
  15. #ifndef DECLARE_OPAQUE
  16. #define DECLARE_OPAQUE(name) struct name##__ { int unused; }; \
  17. typedef const struct name##__ FAR* name
  18. #endif // DECLARE_OPAQUE
  19. #ifndef CLIENTAPI
  20. #define CLIENTAPI PASCAL
  21. #endif
  22. DECLARE_OPAQUE(HMANAGEMENTCLIENT);
  23. DECLARE_OPAQUE(HTAPICLIENT);
  24. typedef HMANAGEMENTCLIENT FAR * LPHMANAGEMENTCLIENT;
  25. typedef HTAPICLIENT FAR * LPHTAPICLIENT;
  26. typedef struct _TAPIPERMANENTID
  27. {
  28. DWORD dwProviderID;
  29. DWORD dwDeviceID;
  30. } TAPIPERMANENTID, * LPTAPIPERMANENTID;
  31. // prototypes for TAPICLIENT api
  32. LONG
  33. CLIENTAPI
  34. TAPICLIENT_Load(
  35. LPDWORD pdwAPIVersion,
  36. DWORD dwReserved1,
  37. DWORD dwReserved2,
  38. DWORD dwReserved3
  39. );
  40. void
  41. CLIENTAPI
  42. TAPICLIENT_Free(
  43. );
  44. LONG
  45. CLIENTAPI
  46. TAPICLIENT_ClientInitialize(
  47. LPCWSTR pszDomainName,
  48. LPCWSTR pszUserName,
  49. LPCWSTR pszMachineName,
  50. LPHMANAGEMENTCLIENT phmClient
  51. );
  52. LONG
  53. CLIENTAPI
  54. TAPICLIENT_ClientShutdown(
  55. HMANAGEMENTCLIENT hmClient
  56. );
  57. LONG
  58. CLIENTAPI
  59. TAPICLIENT_LineAddToConference(
  60. HMANAGEMENTCLIENT hmClient,
  61. LPTAPIPERMANENTID pID,
  62. LPLINECALLINFO lpConsultCallCallInfo
  63. );
  64. LONG
  65. CLIENTAPI
  66. TAPICLIENT_LineBlindTransfer(
  67. HMANAGEMENTCLIENT hmClient,
  68. LPTAPIPERMANENTID pID,
  69. LPWSTR lpszDestAddress,
  70. LPDWORD lpdwSize,
  71. LPDWORD pdwCountryCodeOut
  72. );
  73. LONG
  74. CLIENTAPI
  75. TAPICLIENT_LineConfigDialog(
  76. HMANAGEMENTCLIENT hmClient,
  77. LPTAPIPERMANENTID pID,
  78. LPCWSTR lpszDeviceClass
  79. );
  80. LONG
  81. CLIENTAPI
  82. TAPICLIENT_LineDial(
  83. HMANAGEMENTCLIENT hmClient,
  84. LPTAPIPERMANENTID pID,
  85. DWORD dwReserved,
  86. LPWSTR lpszDestAddress,
  87. LPDWORD pdwSize,
  88. LPDWORD pdwCountyCode
  89. );
  90. LONG
  91. CLIENTAPI
  92. TAPICLIENT_LineForward(
  93. HMANAGEMENTCLIENT hmClient,
  94. LPTAPIPERMANENTID pID,
  95. LPLINEFORWARDLIST lpFowardList,
  96. LPDWORD pdwSize,
  97. LPLINECALLPARAMS lpCallParams,
  98. LPDWORD pdwParamsSize
  99. );
  100. LONG
  101. CLIENTAPI
  102. TAPICLIENT_LineGenerateDigits(
  103. HMANAGEMENTCLIENT hmClient,
  104. LPTAPIPERMANENTID pID,
  105. DWORD dwReserved,
  106. LPCWSTR lpszDigits
  107. );
  108. LONG
  109. CLIENTAPI
  110. TAPICLIENT_LineMakeCall(
  111. HMANAGEMENTCLIENT hmClient,
  112. LPTAPIPERMANENTID pID,
  113. DWORD dwReserved,
  114. LPWSTR lpszDestAddress,
  115. LPDWORD pdwSize,
  116. LPDWORD pdwCountryCode,
  117. LPLINECALLPARAMS lpCallParams,
  118. LPDWORD pdwCallParamsSize
  119. );
  120. LONG
  121. CLIENTAPI
  122. TAPICLIENT_LineOpen(
  123. HMANAGEMENTCLIENT hmClient,
  124. LPTAPIPERMANENTID pID,
  125. DWORD dwAPIVersion,
  126. DWORD dwExtVersion,
  127. DWORD dwPrivileges,
  128. DWORD dwMediaModes,
  129. LPLINECALLPARAMS lpCallParams,
  130. LPDWORD lpdwSize
  131. );
  132. LONG
  133. CLIENTAPI
  134. TAPICLIENT_LineRedirect(
  135. HMANAGEMENTCLIENT hmClient,
  136. LPTAPIPERMANENTID pID,
  137. LPWSTR lpszDestAddress,
  138. LPDWORD pdwSize,
  139. LPDWORD pdwCountryCode
  140. );
  141. LONG
  142. CLIENTAPI
  143. TAPICLIENT_LineSetCallData(
  144. HMANAGEMENTCLIENT hmClient,
  145. LPTAPIPERMANENTID pID,
  146. LPVOID lpCallData,
  147. LPDWORD pdwSize
  148. );
  149. LONG
  150. CLIENTAPI
  151. TAPICLIENT_LineSetCallParams(
  152. HMANAGEMENTCLIENT hmClient,
  153. LPTAPIPERMANENTID pID,
  154. DWORD dwBearerMode,
  155. DWORD dwMinRate,
  156. DWORD dwMaxRate,
  157. LPLINEDIALPARAMS lpDialParams
  158. );
  159. LONG
  160. CLIENTAPI
  161. TAPICLIENT_LineSetCallPrivilege(
  162. HMANAGEMENTCLIENT hmClient,
  163. LPTAPIPERMANENTID pID,
  164. DWORD dwCallPrivilege
  165. );
  166. LONG
  167. CLIENTAPI
  168. TAPICLIENT_LineSetCallTreatment(
  169. HMANAGEMENTCLIENT hmClient,
  170. LPTAPIPERMANENTID pID,
  171. DWORD dwCallTreatment
  172. );
  173. LONG
  174. CLIENTAPI
  175. TAPICLIENT_LineSetCurrentLocation(
  176. HMANAGEMENTCLIENT hmClient,
  177. LPTAPIPERMANENTID pID,
  178. LPDWORD dwLocation
  179. );
  180. LONG
  181. CLIENTAPI
  182. TAPICLIENT_LineSetDevConfig(
  183. HMANAGEMENTCLIENT hmClient,
  184. LPTAPIPERMANENTID pID,
  185. LPVOID lpDevConfig,
  186. LPDWORD pdwSize,
  187. LPCWSTR lpszDeviceClass
  188. );
  189. LONG
  190. CLIENTAPI
  191. TAPICLIENT_LineSetLineDevStatus(
  192. HMANAGEMENTCLIENT hmClient,
  193. LPTAPIPERMANENTID pID,
  194. DWORD dwStatusToChange,
  195. DWORD fStatus
  196. );
  197. LONG
  198. CLIENTAPI
  199. TAPICLIENT_LineSetMediaControl(
  200. HMANAGEMENTCLIENT hmClient,
  201. LPTAPIPERMANENTID pID,
  202. LPLINEMEDIACONTROLDIGIT const lpDigitList,
  203. DWORD dwDigitNumEntries,
  204. LPLINEMEDIACONTROLMEDIA const lpMediaList,
  205. DWORD dwMediaNumEntries,
  206. LPLINEMEDIACONTROLTONE const lpToneList,
  207. DWORD dwToneNumEntries,
  208. LPLINEMEDIACONTROLCALLSTATE const lpCallstateList,
  209. DWORD dwCallstateNumEntries
  210. );
  211. LONG
  212. CLIENTAPI
  213. TAPICLIENT_LineSetMediaMode(
  214. HMANAGEMENTCLIENT hmClient,
  215. LPTAPIPERMANENTID pID,
  216. DWORD dwMediaModes
  217. );
  218. LONG
  219. CLIENTAPI
  220. TAPICLIENT_LineSetTerminal(
  221. HMANAGEMENTCLIENT hmClient,
  222. LPTAPIPERMANENTID pID,
  223. DWORD dwTerminalModes,
  224. DWORD dwTerminalID,
  225. BOOL bEnable
  226. );
  227. LONG
  228. CLIENTAPI
  229. TAPICLIENT_LineSetTollList(
  230. HMANAGEMENTCLIENT hmClient,
  231. LPTAPIPERMANENTID pID,
  232. LPCWSTR lpszAddress,
  233. DWORD dwTollListOption
  234. );
  235. LONG
  236. CLIENTAPI
  237. TAPICLIENT_PhoneConfigDialog(
  238. HMANAGEMENTCLIENT hmClient,
  239. LPTAPIPERMANENTID pID,
  240. LPCWSTR lpszDeviceClass
  241. );
  242. LONG
  243. CLIENTAPI
  244. TAPICLIENT_PhoneOpen(
  245. HMANAGEMENTCLIENT hmClient,
  246. LPTAPIPERMANENTID pID,
  247. DWORD dwAPIVersion,
  248. DWORD dwExtVersion,
  249. DWORD dwPrivilege
  250. );
  251. #ifdef __cplusplus
  252. } /* End of extern "C" { */
  253. #endif /* __cplusplus */
  254. #endif // TAPICLIENT_H