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 18
 *
 * 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
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 20
 */

21 22
#include <stdarg.h>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

157 158 159
/***********************************************************************
 *		phoneGetRing (TAPI32.@)
 */
160 161
DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
{
162
    FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
163 164 165
    return 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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