phone.c 10.4 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
/***********************************************************************
 *		phoneGetRing (TAPI32.@)
 */
161 162
DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
{
163
    FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
164 165 166
    return 0;
}

167 168 169
/***********************************************************************
 *		phoneGetStatus (TAPI32.@)
 */
170
DWORD WINAPI phoneGetStatusA(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
171
{
172
    FIXME("(%p, %p): stub.\n", hPhone, lpPhoneStatus);
Andreas Mohr's avatar
Andreas Mohr committed
173
    /* call TSPI function here ! */
174 175 176
    return 0;
}

177 178 179
/***********************************************************************
 *		phoneGetStatusMessages (TAPI32.@)
 */
180 181 182
DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates,
		          LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
{
183
    FIXME("(%p, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
184 185 186
    return 0;
}

187 188 189
/***********************************************************************
 *		phoneGetVolume (TAPI32.@)
 */
190 191 192
DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs,
		            LPDWORD lpdwVolume)
{
193
    FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
Andreas Mohr's avatar
Andreas Mohr committed
194
    /* call TSPI function here ! */
195 196 197
    return 0;
}

198 199 200
/***********************************************************************
 *		phoneInitialize (TAPI32.@)
 */
201 202
DWORD WINAPI phoneInitialize(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
{
203
    FIXME("(%p, %p, %p, %s, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs);
204 205 206
    return 0;
}

207 208 209
/***********************************************************************
 *		phoneNegotiateAPIVersion (TAPI32.@)
 */
210 211
DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
{
212
    FIXME("(): stub.\n");
213 214 215
    return 0;
}

216 217 218
/***********************************************************************
 *		phoneNegotiateExtVersion (TAPI32.@)
 */
219 220 221 222
DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
		                 DWORD dwAPIVersion, DWORD dwExtLowVersion,
				 DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
{
223
    FIXME("(): stub.\n");
Andreas Mohr's avatar
Andreas Mohr committed
224
    /* call TSPI function here ! */
225 226 227
    return 0;
}

228 229 230
/***********************************************************************
 *		phoneOpen (TAPI32.@)
 */
231 232
DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
{
233
    FIXME("(): stub.\n");
Andreas Mohr's avatar
Andreas Mohr committed
234
    /* call TSPI function here ! */
235 236 237
    return 0;
}

238 239 240
/***********************************************************************
 *		phoneSetButtonInfo (TAPI32.@)
 */
241
DWORD WINAPI phoneSetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
242
{
243
    FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
244 245 246
    return 0;
}

247 248 249
/***********************************************************************
 *		phoneSetData (TAPI32.@)
 */
250 251
DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
{
252
    FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize);
253 254 255
    return 1;
}

256 257 258
/***********************************************************************
 *		phoneSetDisplay (TAPI32.@)
 */
259 260
DWORD WINAPI phoneSetDisplay(HPHONE hPhone, DWORD dwRow, DWORD dwColumn, LPCSTR lpszDisplay, DWORD dwSize)
{
261
    FIXME("(%p, '%s' at %d/%d, len %d): stub.\n", hPhone, lpszDisplay, dwRow, dwColumn, dwSize);
262 263 264
    return 1;
}

265 266 267
/***********************************************************************
 *		phoneSetGain (TAPI32.@)
 */
268 269
DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
{
270
    FIXME("(%p, %08x, %d): stub.\n", hPhone, dwHookSwitchDev, dwGain);
Andreas Mohr's avatar
Andreas Mohr committed
271
    /* call TSPI function here ! */
272 273 274
    return 1;
}

275 276 277
/***********************************************************************
 *		phoneSetHookSwitch (TAPI32.@)
 */
278 279
DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
{
280
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
Andreas Mohr's avatar
Andreas Mohr committed
281
    /* call TSPI function here ! */
282 283 284
    return 1;
}

285 286 287
/***********************************************************************
 *		phoneSetLamp (TAPI32.@)
 */
288 289
DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
{
290
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
291 292 293
    return 1;
}

294 295 296
/***********************************************************************
 *		phoneSetRing (TAPI32.@)
 */
297 298
DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
{
299
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwRingMode, dwVolume);
300 301 302
    return 1;
}

303 304 305
/***********************************************************************
 *		phoneSetStatusMessages (TAPI32.@)
 */
306 307
DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
{
308
    FIXME("(%p, %08x, %08x, %08x): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
Andreas Mohr's avatar
Andreas Mohr committed
309
    /* call TSPI function here ! */
310 311 312
    return 0; /* FIXME ? */
}

313 314 315
/***********************************************************************
 *		phoneSetVolume (TAPI32.@)
 */
316 317
DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
{
318
    FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
Andreas Mohr's avatar
Andreas Mohr committed
319
    /* call TSPI function here ! */
320 321 322
    return 1;
}

323 324 325
/***********************************************************************
 *		phoneShutdown (TAPI32.@)
 */
326 327
DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp)
{
328
    FIXME("(%p): stub.\n", hPhoneApp);
329 330
    return 0;
}