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

283 lines
9.0 KiB

  1. /*
  2. * Lzexpand APIs thunks for Win32s
  3. */
  4. __foldwin32sstuff __foldwin32sstuff;
  5. //**********************************foldstyleinitialization = true;
  6. enablemapdirect3216 = true;
  7. flatthunks = false;
  8. #include "types.thk"
  9. typedef HANDLE HINSTANCE;
  10. typedef DWORD HTAPI;
  11. typedef HTAPI *LPHTAPI;
  12. typedef HTAPI HAPP;
  13. typedef HAPP HLINEAPP;
  14. typedef HAPP HPHONEAPP;
  15. typedef HAPP *LPHAPP;
  16. typedef HTAPI HCALL;
  17. typedef HCALL *LPHCALL;
  18. typedef HTAPI HLINE;
  19. typedef HLINE *LPHLINE;
  20. typedef HTAPI HPHONE;
  21. typedef HPHONE *LPHPHONE;
  22. typedef HICON *LPHICON;
  23. typedef void LINECALLBACK;
  24. typedef void PHONECALLBACK;
  25. typedef LPSTR LPCSTR;
  26. typedef HLINEAPP *LPHLINEAPP;
  27. typedef HPHONEAPP *LPHPHONEAPP;
  28. typedef LPVOID LPLINEEXTENSIONID;
  29. typedef WORD WPARAM;
  30. typedef LPVOID LPLINETRANSLATEOUTPUT; /* LP to data structure */
  31. typedef LPVOID LPLINETRANSLATECAPS; /* LP to data structure */
  32. typedef LPVOID LPLINEFORWARDLIST;
  33. typedef LPVOID LPLINECALLPARAMS;
  34. typedef LPVOID LPLINEGENERATETONE;
  35. typedef LPVOID LPLINEADDRESSCAPS;
  36. typedef LPVOID LPLINEADDRESSSTATUS;
  37. typedef LPVOID LPLINECALLINFO;
  38. typedef LPVOID LPLINECALLSTATUS;
  39. typedef LPVOID LPLINECALLLIST;
  40. typedef LPVOID LPLINEDEVCAPS;
  41. typedef LPVOID LPLINEDEVSTATUS;
  42. typedef LPVOID LPLINEMONITORTONE;
  43. typedef LPVOID LPVARSTRING;
  44. typedef LPVOID LPLINEDIALPARAMS;
  45. typedef LPVOID LPLINEMEDIACONTROLDIGIT;
  46. typedef LPVOID LPLINEMEDIACONTROLMEDIA;
  47. typedef LPVOID LPLINEMEDIACONTROLTONE;
  48. typedef LPVOID LPLINEMEDIACONTROLCALLSTATE;
  49. typedef LPVOID LPPHONEBUTTONINFO;
  50. typedef LPVOID LPPHONECAPS;
  51. typedef LPVOID LPPHONESTATUS;
  52. typedef LPVOID LPPHONEEXTENSIONID;
  53. typedef LPVOID LPLINECOUNTRYLIST;
  54. typedef LPVOID LPLINEPROVIDERLIST;
  55. /* Simple Telephony prototypes */
  56. LONG tapiRequestMakeCall (LPCSTR lpszDestAddress, LPCSTR lpszAppName, LPCSTR lpszCalledParty, LPCSTR lpszComment) =
  57. LONG tapiRequestMakeCall (LPCSTR lpszDestAddress, LPCSTR lpszAppName, LPCSTR lpszCalledParty, LPCSTR lpszComment)
  58. {
  59. }
  60. /*PROBLEM? WORD as parameter */
  61. LONG tapiRequestMediaCall (HWND hWnd, WORD wRequestID, LPCSTR lpszDeviceClass, LPCSTR lpDeviceID, DWORD dwSize,
  62. DWORD dwSecure, LPCSTR lpszDestAddress, LPCSTR lpszAppName, LPCSTR lpszCalledParty, LPCSTR lpszComment) =
  63. LONG tapiRequestMediaCall (HWND hWnd, WORD wRequestID, LPCSTR lpszDeviceClass, LPCSTR lpDeviceID, DWORD dwSize,
  64. DWORD dwSecure, LPCSTR lpszDestAddress, LPCSTR lpszAppName, LPCSTR lpszCalledParty, LPCSTR lpszComment)
  65. {
  66. body = special;
  67. }
  68. /*PROBLEM? WORD as parameter */
  69. LONG tapiRequestDrop (HWND hWnd, WPARAM wRequestID) =
  70. LONG tapiRequestDrop (HWND hWnd, WPARAM wRequestID)
  71. {
  72. body = special;
  73. }
  74. LONG tapiGetLocationInfo(LPSTR lpszCountryCode, LPSTR lpszCityCode) =
  75. LONG tapiGetLocationInfo(LPSTR lpszCountryCode, LPSTR lpszCityCode)
  76. {}
  77. LONG lineRegisterRequestRecipient (HLINEAPP hLineApp, DWORD dwRegistrationInstance, DWORD dwRequestMode, DWORD bEnable) =
  78. LONG lineRegisterRequestRecipient (HLINEAPP hLineApp, DWORD dwRegistrationInstance, DWORD dwRequestMode, DWORD bEnable)
  79. {
  80. body = special;
  81. }
  82. /* Other TAPI functions */
  83. // hInstance = push;
  84. // lpfnCallback = push;
  85. LONG lineInitialize16 (LPHLINEAPP lphLineApp, HINSTANCE hInstance, LINECALLBACK lpfnCallback,
  86. LPCSTR lpszAppName, LPDWORD lpdwNumDevs) =
  87. LONG lineInitialize16 (LPHLINEAPP lphLineApp, HINSTANCE hInstance, LINECALLBACK lpfnCallback,
  88. LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
  89. {
  90. body = special;
  91. }
  92. LONG lineShutdown16 (HLINEAPP hLineApp) =
  93. LONG lineShutdown16 (HLINEAPP hLineApp)
  94. {
  95. body = special;
  96. }
  97. // hInstance = push;
  98. // lpfnCallback = push;
  99. LONG phoneInitialize16 (LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback,
  100. LPCSTR lpszAppName, LPDWORD lpdwNumDevs) =
  101. LONG phoneInitialize16 (LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback,
  102. LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
  103. {
  104. body = special;
  105. }
  106. LONG phoneShutdown16 (HPHONEAPP hPhoneApp) =
  107. LONG phoneShutdown16 (HPHONEAPP hPhoneApp)
  108. {
  109. body = special;
  110. }
  111. LONG lineForward (HLINE hLine, DWORD bAllAddresses, DWORD dwAddressID, LPLINEFORWARDLIST lpForwardList,
  112. DWORD dwNumRingsNoAnswer, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams) =
  113. LONG lineForward (HLINE hLine, DWORD bAllAddresses, DWORD dwAddressID, LPLINEFORWARDLIST lpForwardList,
  114. DWORD dwNumRingsNoAnswer, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
  115. {
  116. body = special;
  117. }
  118. LONG lineMakeCall (HLINE hLine, LPHCALL lphCall, LPCSTR lpszDestAddress, DWORD dwCountryCode, LPLINECALLPARAMS lpCallParams) =
  119. LONG lineMakeCall (HLINE hLine, LPHCALL lphCall, LPCSTR lpszDestAddress, DWORD dwCountryCode, LPLINECALLPARAMS lpCallParams)
  120. {
  121. body = special;
  122. }
  123. LONG lineUnpark (HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress) =
  124. LONG lineUnpark (HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress)
  125. {
  126. body = special;
  127. }
  128. LONG linePickup (HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress, LPCSTR lpszGroupID) =
  129. LONG linePickup (HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress, LPCSTR lpszGroupID)
  130. {
  131. body = special;
  132. }
  133. LONG lineSetupConference (HCALL hCall, HLINE hLine, LPHCALL lphConfCall, LPHCALL lphConsultCall,
  134. DWORD dwNumParties, LPLINECALLPARAMS lpCallParams) =
  135. LONG lineSetupConference (HCALL hCall, HLINE hLine, LPHCALL lphConfCall, LPHCALL lphConsultCall,
  136. DWORD dwNumParties, LPLINECALLPARAMS lpCallParams)
  137. {
  138. body = special;
  139. }
  140. LONG lineCompleteTransfer (HCALL hCall, HCALL hConsultCall, LPHCALL lphConfCall, DWORD dwTransferMode) =
  141. LONG lineCompleteTransfer (HCALL hCall, HCALL hConsultCall, LPHCALL lphConfCall, DWORD dwTransferMode)
  142. {
  143. body = special;
  144. }
  145. LONG linePrepareAddToConference (HCALL hConfCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams) =
  146. LONG linePrepareAddToConference (HCALL hConfCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
  147. {
  148. body = special;
  149. }
  150. LONG lineSetupTransfer (HCALL hCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams) =
  151. LONG lineSetupTransfer (HCALL hCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
  152. {
  153. body = special;
  154. }
  155. LONG lineCompleteCall (HCALL hCall, LPDWORD lpdwCompletionID, DWORD dwCompletionMode, DWORD dwMessageID) =
  156. LONG lineCompleteCall (HCALL hCall, LPDWORD lpdwCompletionID, DWORD dwCompletionMode, DWORD dwMessageID)
  157. {
  158. body = special;
  159. }
  160. LONG lineDevSpecific (HLINE hLine, DWORD dwAddressID, HCALL hCall, LPVOID lpParams, DWORD dwSize) =
  161. LONG lineDevSpecific (HLINE hLine, DWORD dwAddressID, HCALL hCall, LPVOID lpParams, DWORD dwSize)
  162. {
  163. body = special;
  164. }
  165. LONG lineDevSpecificFeature (HLINE hLine, DWORD dwFeature, LPVOID lpParams, DWORD dwSize) =
  166. LONG lineDevSpecificFeature (HLINE hLine, DWORD dwFeature, LPVOID lpParams, DWORD dwSize)
  167. {
  168. body = special;
  169. }
  170. LONG lineGatherDigits (HCALL hCall, DWORD dwDigitModes, LPSTR lpsDigits, DWORD dwNumDigits,
  171. LPCSTR lpszTerminationDigits, DWORD dwFirstDigitTimeout, DWORD dwInterDigitTimeout) =
  172. LONG lineGatherDigits (HCALL hCall, DWORD dwDigitModes, LPSTR lpsDigits, DWORD dwNumDigits,
  173. LPCSTR lpszTerminationDigits, DWORD dwFirstDigitTimeout, DWORD dwInterDigitTimeout)
  174. {
  175. body = special;
  176. }
  177. LONG linePark (HCALL hCall, DWORD dwParkMode, LPCSTR lpszDirAddress, LPVARSTRING lpNonDirAddress) =
  178. LONG linePark (HCALL hCall, DWORD dwParkMode, LPCSTR lpszDirAddress, LPVARSTRING lpNonDirAddress)
  179. {
  180. body = special;
  181. }
  182. LONG phoneDevSpecific (HPHONE hPhone, LPVOID lpParams, DWORD dwSize) =
  183. LONG phoneDevSpecific (HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
  184. {
  185. body = special;
  186. }
  187. //*
  188. //*
  189. //* /* Private API: TAPI32 must run this thunk to clean up our act.
  190. //* *
  191. //* * We declare pCB32Tab as DWORD, not POINTER. We want the linear
  192. //* * address passed thru untouched.
  193. //* */
  194. //* VOID TapiThunkInit(DWORD pCB32Tab) =
  195. //* VOID TapiThunkInit(DWORD pCB32Tab)
  196. //* {
  197. //* }
  198. //* /* Private API: TAPI32 must run this thunk before any other.
  199. //* *
  200. //* * We declare pCB32Tab as DWORD, not POINTER. We want the linear
  201. //* * address passed thru untouched.
  202. //* */
  203. //* VOID TapiThunkTerminate(DWORD pCB32Tab) =
  204. //* VOID TapiThunkTerminate(DWORD pCB32Tab)
  205. //* {
  206. //* }
  207. //*
  208. //*
  209. /*
  210. typedef void (CALLBACK * LINECALLBACK) (DWORD hDevice, DWORD dwMessage, DWORD dwInstance,
  211. DWORD dwParam1, DWORD dwParam2, DWORD dwParam3) =
  212. typedef void (CALLBACK * LINECALLBACK) (DWORD hDevice, DWORD dwMessage, DWORD dwInstance,
  213. DWORD dwParam1, DWORD dwParam2, DWORD dwParam3)
  214. {}
  215. */
  216. /*
  217. typedef void (CALLBACK * PHONECALLBACK) (DWORD hDevice, DWORD dwMessage, DWORD dwInstance,
  218. DWORD dwParam1, DWORD dwParam2, DWORD dwParam3) =
  219. typedef void (CALLBACK * PHONECALLBACK) (DWORD hDevice, DWORD dwMessage, DWORD dwInstance,
  220. DWORD dwParam1, DWORD dwParam2, DWORD dwParam3)
  221. {}
  222. */