riched20: Make EM_EXLINEFROMCHAR handle special case of lParam == -1.
[wine/wine64.git] / dlls / tapi32 / phone.c
blob2aed36e58f4046877cf5347f8062cc5c9224fb66
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 "tapi.h"
26 #include "wine/debug.h"
29 * Additional TSPI functions:
30 * - voiceGetHandles
31 * - TSPI_ProviderInit
32 * - TSPI_ProviderShutdown
33 * - TSPI_ProviderEnumDevices
34 * - TSPI_ProviderConfig
36 WINE_DEFAULT_DEBUG_CHANNEL(tapi);
38 /***********************************************************************
39 * phoneClose (TAPI32.@)
41 DWORD WINAPI phoneClose(HPHONE hPhone)
43 FIXME("(%p), stub.\n", hPhone);
44 /* call TSPI function here ! */
45 return 0;
48 /***********************************************************************
49 * phoneConfigDialog (TAPI32.@)
51 DWORD WINAPI phoneConfigDialogA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
53 FIXME("(%08lx, %p, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
54 return 0;
57 /***********************************************************************
58 * phoneDevSpecific (TAPI32.@)
60 DWORD WINAPI phoneDevSpecific(HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
62 FIXME("(%p, %p, %ld): stub.\n", hPhone, lpParams, dwSize);
63 return 1;
66 /***********************************************************************
67 * phoneGetButtonInfo (TAPI32.@)
69 DWORD WINAPI phoneGetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID,
70 LPPHONEBUTTONINFO lpButtonInfo)
72 FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
73 return 0;
76 /***********************************************************************
77 * phoneGetData (TAPI32.@)
79 DWORD WINAPI phoneGetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
81 FIXME("(%p, %08lx, %p, %ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
82 return 0;
85 /***********************************************************************
86 * phoneGetDevCaps (TAPI32.@)
88 DWORD WINAPI phoneGetDevCapsA(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
89 DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps)
91 FIXME("(%p, %08lx, %08lx, %08lx, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps);
92 /* call TSPI function here ! */
93 return 0;
96 /***********************************************************************
97 * phoneGetDisplay (TAPI32.@)
99 DWORD WINAPI phoneGetDisplay(HPHONE hPhone, LPVARSTRING lpDisplay)
101 FIXME("(%p, %p): stub.\n", hPhone, lpDisplay);
102 return 0;
105 /***********************************************************************
106 * phoneGetGain (TAPI32.@)
108 DWORD WINAPI phoneGetGain(HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain)
110 FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
111 /* call TSPI function here ! */
112 return 0;
115 /***********************************************************************
116 * phoneGetHookSwitch (TAPI32.@)
118 DWORD WINAPI phoneGetHookSwitch(HPHONE hPhone, LPDWORD lpdwHookSwitchDevs)
120 FIXME("(%p, %p): stub.\n", hPhone, lpdwHookSwitchDevs);
121 /* call TSPI function here ! */
122 return 0;
125 /***********************************************************************
126 * phoneGetID (TAPI32.@)
128 DWORD WINAPI phoneGetIDA(HPHONE hPhone, LPVARSTRING lpDeviceID,
129 LPCSTR lpszDeviceClass)
131 FIXME("(%p, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass);
132 /* call TSPI function here ! */
133 return 0;
136 /***********************************************************************
137 * phoneGetIcon (TAPI32.@)
139 DWORD WINAPI phoneGetIconA(DWORD dwDeviceID, LPCSTR lpszDeviceClass,
140 HICON *lphIcon)
142 FIXME("(%08lx, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
143 /* call TSPI function here ! */
144 return 0;
147 /***********************************************************************
148 * phoneGetLamp (TAPI32.@)
150 DWORD WINAPI phoneGetLamp(HPHONE hPhone, DWORD dwButtonLampID,
151 LPDWORD lpdwLampMode)
153 FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
154 return 0;
157 /***********************************************************************
158 * phoneGetRing (TAPI32.@)
160 DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
162 FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
163 return 0;
166 /***********************************************************************
167 * phoneGetStatus (TAPI32.@)
169 DWORD WINAPI phoneGetStatusA(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
171 FIXME("(%p, %p): stub.\n", hPhone, lpPhoneStatus);
172 /* call TSPI function here ! */
173 return 0;
176 /***********************************************************************
177 * phoneGetStatusMessages (TAPI32.@)
179 DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates,
180 LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
182 FIXME("(%p, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
183 return 0;
186 /***********************************************************************
187 * phoneGetVolume (TAPI32.@)
189 DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs,
190 LPDWORD lpdwVolume)
192 FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
193 /* call TSPI function here ! */
194 return 0;
197 /***********************************************************************
198 * phoneInitialize (TAPI32.@)
200 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 return 0;
206 /***********************************************************************
207 * phoneNegotiateAPIVersion (TAPI32.@)
209 DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
211 FIXME("(): stub.\n");
212 return 0;
215 /***********************************************************************
216 * phoneNegotiateExtVersion (TAPI32.@)
218 DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
219 DWORD dwAPIVersion, DWORD dwExtLowVersion,
220 DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
222 FIXME("(): stub.\n");
223 /* call TSPI function here ! */
224 return 0;
227 /***********************************************************************
228 * phoneOpen (TAPI32.@)
230 DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
232 FIXME("(): stub.\n");
233 /* call TSPI function here ! */
234 return 0;
237 /***********************************************************************
238 * phoneSetButtonInfo (TAPI32.@)
240 DWORD WINAPI phoneSetButtonInfoA(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
242 FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
243 return 0;
246 /***********************************************************************
247 * phoneSetData (TAPI32.@)
249 DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
251 FIXME("(%p, %08lx, %p, %ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
252 return 1;
255 /***********************************************************************
256 * phoneSetDisplay (TAPI32.@)
258 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 return 1;
264 /***********************************************************************
265 * phoneSetGain (TAPI32.@)
267 DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
269 FIXME("(%p, %08lx, %ld): stub.\n", hPhone, dwHookSwitchDev, dwGain);
270 /* call TSPI function here ! */
271 return 1;
274 /***********************************************************************
275 * phoneSetHookSwitch (TAPI32.@)
277 DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
279 FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
280 /* call TSPI function here ! */
281 return 1;
284 /***********************************************************************
285 * phoneSetLamp (TAPI32.@)
287 DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
289 FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
290 return 1;
293 /***********************************************************************
294 * phoneSetRing (TAPI32.@)
296 DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
298 FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwRingMode, dwVolume);
299 return 1;
302 /***********************************************************************
303 * phoneSetStatusMessages (TAPI32.@)
305 DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
307 FIXME("(%p, %08lx, %08lx, %08lx): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
308 /* call TSPI function here ! */
309 return 0; /* FIXME ? */
312 /***********************************************************************
313 * phoneSetVolume (TAPI32.@)
315 DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
317 FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
318 /* call TSPI function here ! */
319 return 1;
322 /***********************************************************************
323 * phoneShutdown (TAPI32.@)
325 DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp)
327 FIXME("(%p): stub.\n", hPhoneApp);
328 return 0;