Add AppDefaults app selection to control panel
[wine/gsoc-2012-control.git] / dlls / tapi32 / phone.c
blob994d787be705dc78479b97784714489c8e56055f
1 /*
2 * TAPI32 phone services
4 * Copyright 1999 Andreas Mohr
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.
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.
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
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "objbase.h"
26 #include "tapi.h"
27 #include "wine/debug.h"
30 * Additional TSPI functions:
31 * - voiceGetHandles
32 * - TSPI_ProviderInit
33 * - TSPI_ProviderShutdown
34 * - TSPI_ProviderEnumDevices
35 * - TSPI_ProviderConfig
37 WINE_DEFAULT_DEBUG_CHANNEL(tapi);
39 /***********************************************************************
40 * phoneClose (TAPI32.@)
42 DWORD WINAPI phoneClose(HPHONE hPhone)
44 FIXME("(%p), stub.\n", hPhone);
45 /* call TSPI function here ! */
46 return 0;
49 /***********************************************************************
50 * phoneConfigDialog (TAPI32.@)
52 DWORD WINAPI phoneConfigDialogA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
54 FIXME("(%08x, %p, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
55 return 0;
58 /***********************************************************************
59 * phoneDevSpecific (TAPI32.@)
61 DWORD WINAPI phoneDevSpecific(HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
63 FIXME("(%p, %p, %d): stub.\n", hPhone, lpParams, dwSize);
64 return 1;
67 /***********************************************************************
68 * phoneGetButtonInfo (TAPI32.@)
70 DWORD WINAPI phoneGetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID,
71 LPPHONEBUTTONINFO lpButtonInfo)
73 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
74 return 0;
77 /***********************************************************************
78 * phoneGetData (TAPI32.@)
80 DWORD WINAPI phoneGetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
82 FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize);
83 return 0;
86 /***********************************************************************
87 * phoneGetDevCaps (TAPI32.@)
89 DWORD WINAPI phoneGetDevCapsA(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
90 DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps)
92 FIXME("(%p, %08x, %08x, %08x, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps);
93 /* call TSPI function here ! */
94 return 0;
97 /***********************************************************************
98 * phoneGetDisplay (TAPI32.@)
100 DWORD WINAPI phoneGetDisplay(HPHONE hPhone, LPVARSTRING lpDisplay)
102 FIXME("(%p, %p): stub.\n", hPhone, lpDisplay);
103 return 0;
106 /***********************************************************************
107 * phoneGetGain (TAPI32.@)
109 DWORD WINAPI phoneGetGain(HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain)
111 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
112 /* call TSPI function here ! */
113 return 0;
116 /***********************************************************************
117 * phoneGetHookSwitch (TAPI32.@)
119 DWORD WINAPI phoneGetHookSwitch(HPHONE hPhone, LPDWORD lpdwHookSwitchDevs)
121 FIXME("(%p, %p): stub.\n", hPhone, lpdwHookSwitchDevs);
122 /* call TSPI function here ! */
123 return 0;
126 /***********************************************************************
127 * phoneGetID (TAPI32.@)
129 DWORD WINAPI phoneGetIDA(HPHONE hPhone, LPVARSTRING lpDeviceID,
130 LPCSTR lpszDeviceClass)
132 FIXME("(%p, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass);
133 /* call TSPI function here ! */
134 return 0;
137 /***********************************************************************
138 * phoneGetIcon (TAPI32.@)
140 DWORD WINAPI phoneGetIconA(DWORD dwDeviceID, LPCSTR lpszDeviceClass,
141 HICON *lphIcon)
143 FIXME("(%08x, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
144 /* call TSPI function here ! */
145 return 0;
148 /***********************************************************************
149 * phoneGetLamp (TAPI32.@)
151 DWORD WINAPI phoneGetLamp(HPHONE hPhone, DWORD dwButtonLampID,
152 LPDWORD lpdwLampMode)
154 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
155 return 0;
158 /***********************************************************************
159 * phoneGetRing (TAPI32.@)
161 DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
163 FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
164 return 0;
167 /***********************************************************************
168 * phoneGetStatus (TAPI32.@)
170 DWORD WINAPI phoneGetStatusA(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
172 FIXME("(%p, %p): stub.\n", hPhone, lpPhoneStatus);
173 /* call TSPI function here ! */
174 return 0;
177 /***********************************************************************
178 * phoneGetStatusMessages (TAPI32.@)
180 DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates,
181 LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
183 FIXME("(%p, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
184 return 0;
187 /***********************************************************************
188 * phoneGetVolume (TAPI32.@)
190 DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs,
191 LPDWORD lpdwVolume)
193 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
194 /* call TSPI function here ! */
195 return 0;
198 /***********************************************************************
199 * phoneInitialize (TAPI32.@)
201 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 return 0;
207 /***********************************************************************
208 * phoneNegotiateAPIVersion (TAPI32.@)
210 DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
212 FIXME("(): stub.\n");
213 return 0;
216 /***********************************************************************
217 * phoneNegotiateExtVersion (TAPI32.@)
219 DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
220 DWORD dwAPIVersion, DWORD dwExtLowVersion,
221 DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
223 FIXME("(): stub.\n");
224 /* call TSPI function here ! */
225 return 0;
228 /***********************************************************************
229 * phoneOpen (TAPI32.@)
231 DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
233 FIXME("(): stub.\n");
234 /* call TSPI function here ! */
235 return 0;
238 /***********************************************************************
239 * phoneSetButtonInfo (TAPI32.@)
241 DWORD WINAPI phoneSetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
243 FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
244 return 0;
247 /***********************************************************************
248 * phoneSetData (TAPI32.@)
250 DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
252 FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize);
253 return 1;
256 /***********************************************************************
257 * phoneSetDisplay (TAPI32.@)
259 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 return 1;
265 /***********************************************************************
266 * phoneSetGain (TAPI32.@)
268 DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
270 FIXME("(%p, %08x, %d): stub.\n", hPhone, dwHookSwitchDev, dwGain);
271 /* call TSPI function here ! */
272 return 1;
275 /***********************************************************************
276 * phoneSetHookSwitch (TAPI32.@)
278 DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
280 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
281 /* call TSPI function here ! */
282 return 1;
285 /***********************************************************************
286 * phoneSetLamp (TAPI32.@)
288 DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
290 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
291 return 1;
294 /***********************************************************************
295 * phoneSetRing (TAPI32.@)
297 DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
299 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwRingMode, dwVolume);
300 return 1;
303 /***********************************************************************
304 * phoneSetStatusMessages (TAPI32.@)
306 DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
308 FIXME("(%p, %08x, %08x, %08x): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
309 /* call TSPI function here ! */
310 return 0; /* FIXME ? */
313 /***********************************************************************
314 * phoneSetVolume (TAPI32.@)
316 DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
318 FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
319 /* call TSPI function here ! */
320 return 1;
323 /***********************************************************************
324 * phoneShutdown (TAPI32.@)
326 DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp)
328 FIXME("(%p): stub.\n", hPhoneApp);
329 return 0;