phone.c 11.7 KB
Newer Older
1 2 3 4
/*
 * TAPI32 phone services
 *
 * Copyright 1999  Andreas Mohr
5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * 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 22
#include <stdarg.h>

23
#include "windef.h"
24
#include "winbase.h"
25
#include "objbase.h"
26
#include "tapi.h"
27
#include "wine/debug.h"
28

Andreas Mohr's avatar
Andreas Mohr committed
29 30 31 32 33 34 35 36
/*
 * Additional TSPI functions:
 * - voiceGetHandles
 * - TSPI_ProviderInit
 * - TSPI_ProviderShutdown
 * - TSPI_ProviderEnumDevices
 * - TSPI_ProviderConfig
*/
37
WINE_DEFAULT_DEBUG_CHANNEL(tapi);
38

39 40 41
/***********************************************************************
 *		phoneClose (TAPI32.@)
 */
42 43
DWORD WINAPI phoneClose(HPHONE hPhone)
{
44
    FIXME("(%p), stub.\n", hPhone);
Andreas Mohr's avatar
Andreas Mohr committed
45
    /* call TSPI function here ! */
46 47 48
    return 0;
}

49 50 51
/***********************************************************************
 *		phoneConfigDialog (TAPI32.@)
 */
52
DWORD WINAPI phoneConfigDialogA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
53
{
54
    FIXME("(%08x, %p, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
55 56 57
    return 0;
}

58 59 60
/***********************************************************************
 *		phoneDevSpecific (TAPI32.@)
 */
61 62
DWORD WINAPI phoneDevSpecific(HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
{
63
    FIXME("(%p, %p, %d): stub.\n", hPhone, lpParams, dwSize);
64 65 66
    return 1;
}

67 68 69
/***********************************************************************
 *		phoneGetButtonInfo (TAPI32.@)
 */
70
DWORD WINAPI phoneGetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID,
71 72
                                LPPHONEBUTTONINFO lpButtonInfo)
{
73
    FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
74 75 76
    return 0;
}

77 78 79
/***********************************************************************
 *		phoneGetData (TAPI32.@)
 */
80 81
DWORD WINAPI phoneGetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
{
82
    FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize);
83 84 85
    return 0;
}

86 87 88
/***********************************************************************
 *		phoneGetDevCaps (TAPI32.@)
 */
89
DWORD WINAPI phoneGetDevCapsA(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
90 91
               DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps)
{
92
    FIXME("(%p, %08x, %08x, %08x, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps);
Andreas Mohr's avatar
Andreas Mohr committed
93
    /* call TSPI function here ! */
94 95 96
    return 0;
}

97 98 99
/***********************************************************************
 *		phoneGetDisplay (TAPI32.@)
 */
100 101
DWORD WINAPI phoneGetDisplay(HPHONE hPhone, LPVARSTRING lpDisplay)
{
102
    FIXME("(%p, %p): stub.\n", hPhone, lpDisplay);
103 104 105
    return 0;
}

106 107 108
/***********************************************************************
 *		phoneGetGain (TAPI32.@)
 */
109 110
DWORD WINAPI phoneGetGain(HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain)
{
111
    FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
Andreas Mohr's avatar
Andreas Mohr committed
112
    /* call TSPI function here ! */
113
    return 0;
114 115
}

116 117 118
/***********************************************************************
 *		phoneGetHookSwitch (TAPI32.@)
 */
119 120
DWORD WINAPI phoneGetHookSwitch(HPHONE hPhone, LPDWORD lpdwHookSwitchDevs)
{
121
   FIXME("(%p, %p): stub.\n", hPhone, lpdwHookSwitchDevs);
Andreas Mohr's avatar
Andreas Mohr committed
122
    /* call TSPI function here ! */
123 124 125
   return 0;
}

126 127 128
/***********************************************************************
 *		phoneGetID (TAPI32.@)
 */
129
DWORD WINAPI phoneGetIDA(HPHONE hPhone, LPVARSTRING lpDeviceID,
130 131
                        LPCSTR lpszDeviceClass)
{
Andreas Mohr's avatar
Andreas Mohr committed
132 133 134
    FIXME("(%p, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass);
    /* call TSPI function here ! */
    return 0;
135 136
}

137 138 139
/***********************************************************************
 *		phoneGetIcon (TAPI32.@)
 */
140
DWORD WINAPI phoneGetIconA(DWORD dwDeviceID, LPCSTR lpszDeviceClass,
141 142
		          HICON *lphIcon)
{
143
    FIXME("(%08x, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
Andreas Mohr's avatar
Andreas Mohr committed
144
    /* call TSPI function here ! */
145 146 147
    return 0;
}

148 149 150
/***********************************************************************
 *		phoneGetLamp (TAPI32.@)
 */
151 152 153
DWORD WINAPI phoneGetLamp(HPHONE hPhone, DWORD dwButtonLampID,
		          LPDWORD lpdwLampMode)
{
154
    FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
155 156 157
    return 0;
}

158 159 160 161 162 163 164 165 166
/***********************************************************************
 *              phoneGetMessage (TAPI32.@)
 */
DWORD WINAPI phoneGetMessage(HPHONEAPP hPhoneApp, LPPHONEMESSAGE lpMessage, DWORD dwTimeout)
{
    FIXME("(%p, %p, %08x): stub.\n", hPhoneApp, lpMessage, dwTimeout);
    return 0;
}

167 168 169
/***********************************************************************
 *		phoneGetRing (TAPI32.@)
 */
170 171
DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
{
172
    FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
173 174 175
    return 0;
}

176 177 178
/***********************************************************************
 *		phoneGetStatus (TAPI32.@)
 */
179
DWORD WINAPI phoneGetStatusA(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
180
{
181
    FIXME("(%p, %p): stub.\n", hPhone, lpPhoneStatus);
Andreas Mohr's avatar
Andreas Mohr committed
182
    /* call TSPI function here ! */
183 184 185
    return 0;
}

186 187 188
/***********************************************************************
 *		phoneGetStatusMessages (TAPI32.@)
 */
189 190 191
DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates,
		          LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
{
192
    FIXME("(%p, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
193 194 195
    return 0;
}

196 197 198
/***********************************************************************
 *		phoneGetVolume (TAPI32.@)
 */
199 200 201
DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs,
		            LPDWORD lpdwVolume)
{
202
    FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
Andreas Mohr's avatar
Andreas Mohr committed
203
    /* call TSPI function here ! */
204 205 206
    return 0;
}

207 208 209
/***********************************************************************
 *		phoneInitialize (TAPI32.@)
 */
210 211
DWORD WINAPI phoneInitialize(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
{
212
    FIXME("(%p, %p, %p, %s, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs);
213 214 215
    return 0;
}

216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
/***********************************************************************
 *              phoneInitializeiExA (TAPI32.@)
 */
DWORD WINAPI phoneInitializeExA(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs, LPDWORD lpdwAPIVersion, LPPHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams)
{
    FIXME("(%p, %p, %p, %s, %p, %p, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs, lpdwAPIVersion, lpPhoneInitializeExParams);
    *lpdwNumDevs = 0;
    return 0;
}

/***********************************************************************
 *              phoneInitializeiExW (TAPI32.@)
 */
DWORD WINAPI phoneInitializeExW(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCWSTR lpszAppName, LPDWORD lpdwNumDevs, LPDWORD lpdwAPIVersion, LPPHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams)
{
    FIXME("(%p, %p, %p, %s, %p, %p, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, debugstr_w(lpszAppName), lpdwNumDevs, lpdwAPIVersion, lpPhoneInitializeExParams);
    *lpdwNumDevs = 0;
    return 0;
}

236 237 238
/***********************************************************************
 *		phoneNegotiateAPIVersion (TAPI32.@)
 */
239 240
DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
{
241
    FIXME("(): stub.\n");
242 243 244
    return 0;
}

245 246 247
/***********************************************************************
 *		phoneNegotiateExtVersion (TAPI32.@)
 */
248 249 250 251
DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
		                 DWORD dwAPIVersion, DWORD dwExtLowVersion,
				 DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
{
252
    FIXME("(): stub.\n");
Andreas Mohr's avatar
Andreas Mohr committed
253
    /* call TSPI function here ! */
254 255 256
    return 0;
}

257 258 259
/***********************************************************************
 *		phoneOpen (TAPI32.@)
 */
260 261
DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
{
262
    FIXME("(): stub.\n");
Andreas Mohr's avatar
Andreas Mohr committed
263
    /* call TSPI function here ! */
264 265 266
    return 0;
}

267 268 269
/***********************************************************************
 *		phoneSetButtonInfo (TAPI32.@)
 */
270
DWORD WINAPI phoneSetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
271
{
272
    FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
273 274 275
    return 0;
}

276 277 278
/***********************************************************************
 *		phoneSetData (TAPI32.@)
 */
279 280
DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
{
281
    FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize);
282 283 284
    return 1;
}

285 286 287
/***********************************************************************
 *		phoneSetDisplay (TAPI32.@)
 */
288 289
DWORD WINAPI phoneSetDisplay(HPHONE hPhone, DWORD dwRow, DWORD dwColumn, LPCSTR lpszDisplay, DWORD dwSize)
{
290
    FIXME("(%p, '%s' at %d/%d, len %d): stub.\n", hPhone, lpszDisplay, dwRow, dwColumn, dwSize);
291 292 293
    return 1;
}

294 295 296
/***********************************************************************
 *		phoneSetGain (TAPI32.@)
 */
297 298
DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
{
299
    FIXME("(%p, %08x, %d): stub.\n", hPhone, dwHookSwitchDev, dwGain);
Andreas Mohr's avatar
Andreas Mohr committed
300
    /* call TSPI function here ! */
301 302 303
    return 1;
}

304 305 306
/***********************************************************************
 *		phoneSetHookSwitch (TAPI32.@)
 */
307 308
DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
{
309
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
Andreas Mohr's avatar
Andreas Mohr committed
310
    /* call TSPI function here ! */
311 312 313
    return 1;
}

314 315 316
/***********************************************************************
 *		phoneSetLamp (TAPI32.@)
 */
317 318
DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
{
319
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
320 321 322
    return 1;
}

323 324 325
/***********************************************************************
 *		phoneSetRing (TAPI32.@)
 */
326 327
DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
{
328
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwRingMode, dwVolume);
329 330 331
    return 1;
}

332 333 334
/***********************************************************************
 *		phoneSetStatusMessages (TAPI32.@)
 */
335 336
DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
{
337
    FIXME("(%p, %08x, %08x, %08x): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
Andreas Mohr's avatar
Andreas Mohr committed
338
    /* call TSPI function here ! */
339 340 341
    return 0; /* FIXME ? */
}

342 343 344
/***********************************************************************
 *		phoneSetVolume (TAPI32.@)
 */
345 346
DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
{
347
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
Andreas Mohr's avatar
Andreas Mohr committed
348
    /* call TSPI function here ! */
349 350 351
    return 1;
}

352 353 354
/***********************************************************************
 *		phoneShutdown (TAPI32.@)
 */
355 356
DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp)
{
357
    FIXME("(%p): stub.\n", hPhoneApp);
358 359
    return 0;
}