1 /* 2 * TAPI32 phone services 3 * 4 * Copyright 1999 Andreas Mohr 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 */ 20 21 #include "precomp.h" 22 23 /* 24 * Additional TSPI functions: 25 * - voiceGetHandles 26 * - TSPI_ProviderInit 27 * - TSPI_ProviderShutdown 28 * - TSPI_ProviderEnumDevices 29 * - TSPI_ProviderConfig 30 */ 31 32 /*********************************************************************** 33 * phoneClose (TAPI32.@) 34 */ 35 DWORD WINAPI phoneClose(HPHONE hPhone) 36 { 37 FIXME("(%p), stub.\n", hPhone); 38 /* call TSPI function here ! */ 39 return 0; 40 } 41 42 /*********************************************************************** 43 * phoneConfigDialog (TAPI32.@) 44 */ 45 DWORD WINAPI phoneConfigDialogA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass) 46 { 47 FIXME("(%08x, %p, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass); 48 return 0; 49 } 50 51 /*********************************************************************** 52 * phoneDevSpecific (TAPI32.@) 53 */ 54 DWORD WINAPI phoneDevSpecific(HPHONE hPhone, LPVOID lpParams, DWORD dwSize) 55 { 56 FIXME("(%p, %p, %d): stub.\n", hPhone, lpParams, dwSize); 57 return 1; 58 } 59 60 /*********************************************************************** 61 * phoneGetButtonInfo (TAPI32.@) 62 */ 63 DWORD WINAPI phoneGetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID, 64 LPPHONEBUTTONINFO lpButtonInfo) 65 { 66 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo); 67 return 0; 68 } 69 70 /*********************************************************************** 71 * phoneGetData (TAPI32.@) 72 */ 73 DWORD WINAPI phoneGetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize) 74 { 75 FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize); 76 return 0; 77 } 78 79 /*********************************************************************** 80 * phoneGetDevCaps (TAPI32.@) 81 */ 82 DWORD WINAPI phoneGetDevCapsA(HPHONEAPP hPhoneApp, DWORD dwDeviceID, 83 DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps) 84 { 85 FIXME("(%p, %08x, %08x, %08x, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps); 86 /* call TSPI function here ! */ 87 return 0; 88 } 89 90 /*********************************************************************** 91 * phoneGetDisplay (TAPI32.@) 92 */ 93 DWORD WINAPI phoneGetDisplay(HPHONE hPhone, LPVARSTRING lpDisplay) 94 { 95 FIXME("(%p, %p): stub.\n", hPhone, lpDisplay); 96 return 0; 97 } 98 99 /*********************************************************************** 100 * phoneGetGain (TAPI32.@) 101 */ 102 DWORD WINAPI phoneGetGain(HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain) 103 { 104 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain); 105 /* call TSPI function here ! */ 106 return 0; 107 } 108 109 /*********************************************************************** 110 * phoneGetHookSwitch (TAPI32.@) 111 */ 112 DWORD WINAPI phoneGetHookSwitch(HPHONE hPhone, LPDWORD lpdwHookSwitchDevs) 113 { 114 FIXME("(%p, %p): stub.\n", hPhone, lpdwHookSwitchDevs); 115 /* call TSPI function here ! */ 116 return 0; 117 } 118 119 /*********************************************************************** 120 * phoneGetID (TAPI32.@) 121 */ 122 DWORD WINAPI phoneGetIDA(HPHONE hPhone, LPVARSTRING lpDeviceID, 123 LPCSTR lpszDeviceClass) 124 { 125 FIXME("(%p, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass); 126 /* call TSPI function here ! */ 127 return 0; 128 } 129 130 /*********************************************************************** 131 * phoneGetIcon (TAPI32.@) 132 */ 133 DWORD WINAPI phoneGetIconA(DWORD dwDeviceID, LPCSTR lpszDeviceClass, 134 HICON *lphIcon) 135 { 136 FIXME("(%08x, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon); 137 /* call TSPI function here ! */ 138 return 0; 139 } 140 141 /*********************************************************************** 142 * phoneGetLamp (TAPI32.@) 143 */ 144 DWORD WINAPI phoneGetLamp(HPHONE hPhone, DWORD dwButtonLampID, 145 LPDWORD lpdwLampMode) 146 { 147 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode); 148 return 0; 149 } 150 151 /*********************************************************************** 152 * phoneGetMessage (TAPI32.@) 153 */ 154 DWORD WINAPI phoneGetMessage(HPHONEAPP hPhoneApp, LPPHONEMESSAGE lpMessage, DWORD dwTimeout) 155 { 156 FIXME("(%p, %p, %08x): stub.\n", hPhoneApp, lpMessage, dwTimeout); 157 return 0; 158 } 159 160 /*********************************************************************** 161 * phoneGetRing (TAPI32.@) 162 */ 163 DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume) 164 { 165 FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume); 166 return 0; 167 } 168 169 /*********************************************************************** 170 * phoneGetStatus (TAPI32.@) 171 */ 172 DWORD WINAPI phoneGetStatusA(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus) 173 { 174 FIXME("(%p, %p): stub.\n", hPhone, lpPhoneStatus); 175 /* call TSPI function here ! */ 176 return 0; 177 } 178 179 /*********************************************************************** 180 * phoneGetStatusMessages (TAPI32.@) 181 */ 182 DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates, 183 LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates) 184 { 185 FIXME("(%p, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates); 186 return 0; 187 } 188 189 /*********************************************************************** 190 * phoneGetVolume (TAPI32.@) 191 */ 192 DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs, 193 LPDWORD lpdwVolume) 194 { 195 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume); 196 /* call TSPI function here ! */ 197 return 0; 198 } 199 200 /*********************************************************************** 201 * phoneInitialize (TAPI32.@) 202 */ 203 DWORD WINAPI phoneInitialize(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs) 204 { 205 FIXME("(%p, %p, %p, %s, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs); 206 return 0; 207 } 208 209 /*********************************************************************** 210 * phoneInitializeiExA (TAPI32.@) 211 */ 212 DWORD WINAPI phoneInitializeExA(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs, LPDWORD lpdwAPIVersion, LPPHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams) 213 { 214 FIXME("(%p, %p, %p, %s, %p, %p, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs, lpdwAPIVersion, lpPhoneInitializeExParams); 215 *lpdwNumDevs = 0; 216 return 0; 217 } 218 219 /*********************************************************************** 220 * phoneInitializeiExW (TAPI32.@) 221 */ 222 DWORD WINAPI phoneInitializeExW(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCWSTR lpszAppName, LPDWORD lpdwNumDevs, LPDWORD lpdwAPIVersion, LPPHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams) 223 { 224 FIXME("(%p, %p, %p, %s, %p, %p, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, debugstr_w(lpszAppName), lpdwNumDevs, lpdwAPIVersion, lpPhoneInitializeExParams); 225 *lpdwNumDevs = 0; 226 return 0; 227 } 228 229 /*********************************************************************** 230 * phoneNegotiateAPIVersion (TAPI32.@) 231 */ 232 DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID) 233 { 234 FIXME("(): stub.\n"); 235 return 0; 236 } 237 238 /*********************************************************************** 239 * phoneNegotiateExtVersion (TAPI32.@) 240 */ 241 DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, 242 DWORD dwAPIVersion, DWORD dwExtLowVersion, 243 DWORD dwExtHighVersion, LPDWORD lpdwExtVersion) 244 { 245 FIXME("(): stub.\n"); 246 /* call TSPI function here ! */ 247 return 0; 248 } 249 250 /*********************************************************************** 251 * phoneOpen (TAPI32.@) 252 */ 253 DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges) 254 { 255 FIXME("(): stub.\n"); 256 /* call TSPI function here ! */ 257 return 0; 258 } 259 260 /*********************************************************************** 261 * phoneSetButtonInfo (TAPI32.@) 262 */ 263 DWORD WINAPI phoneSetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo) 264 { 265 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo); 266 return 0; 267 } 268 269 /*********************************************************************** 270 * phoneSetData (TAPI32.@) 271 */ 272 DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize) 273 { 274 FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize); 275 return 1; 276 } 277 278 /*********************************************************************** 279 * phoneSetDisplay (TAPI32.@) 280 */ 281 DWORD WINAPI phoneSetDisplay(HPHONE hPhone, DWORD dwRow, DWORD dwColumn, LPCSTR lpszDisplay, DWORD dwSize) 282 { 283 FIXME("(%p, '%s' at %d/%d, len %d): stub.\n", hPhone, lpszDisplay, dwRow, dwColumn, dwSize); 284 return 1; 285 } 286 287 /*********************************************************************** 288 * phoneSetGain (TAPI32.@) 289 */ 290 DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain) 291 { 292 FIXME("(%p, %08x, %d): stub.\n", hPhone, dwHookSwitchDev, dwGain); 293 /* call TSPI function here ! */ 294 return 1; 295 } 296 297 /*********************************************************************** 298 * phoneSetHookSwitch (TAPI32.@) 299 */ 300 DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode) 301 { 302 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode); 303 /* call TSPI function here ! */ 304 return 1; 305 } 306 307 /*********************************************************************** 308 * phoneSetLamp (TAPI32.@) 309 */ 310 DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode) 311 { 312 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwButtonLampID, lpdwLampMode); 313 return 1; 314 } 315 316 /*********************************************************************** 317 * phoneSetRing (TAPI32.@) 318 */ 319 DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume) 320 { 321 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwRingMode, dwVolume); 322 return 1; 323 } 324 325 /*********************************************************************** 326 * phoneSetStatusMessages (TAPI32.@) 327 */ 328 DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates) 329 { 330 FIXME("(%p, %08x, %08x, %08x): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates); 331 /* call TSPI function here ! */ 332 return 0; /* FIXME ? */ 333 } 334 335 /*********************************************************************** 336 * phoneSetVolume (TAPI32.@) 337 */ 338 DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume) 339 { 340 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDev, dwVolume); 341 /* call TSPI function here ! */ 342 return 1; 343 } 344 345 /*********************************************************************** 346 * phoneShutdown (TAPI32.@) 347 */ 348 DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp) 349 { 350 FIXME("(%p): stub.\n", hPhoneApp); 351 return 0; 352 } 353