Draw the scrollbar beside the buddy when neither UDS_ALIGN[RIGHT|LEFT]
[wine] / dlls / tapi32 / phone.c
1 /*
2  * TAPI32 phone services
3  *
4  * Copyright 1999  Andreas Mohr
5  */
6
7 #include "winbase.h"
8 #include "windef.h"
9 #include "tapi.h"
10 #include "debugtools.h"
11
12 DEFAULT_DEBUG_CHANNEL(tapi);
13
14 /***********************************************************************
15  *              phoneClose (TAPI32.@)
16  */
17 DWORD WINAPI phoneClose(HPHONE hPhone)
18 {
19     FIXME("(%04x), stub.\n", hPhone);
20     return 0;
21 }
22
23 /***********************************************************************
24  *              phoneConfigDialog (TAPI32.@)
25  */
26 DWORD WINAPI phoneConfigDialog(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
27 {
28     FIXME("(%08lx, %04x, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
29     return 0;
30 }
31
32 /***********************************************************************
33  *              phoneDevSpecific (TAPI32.@)
34  */
35 DWORD WINAPI phoneDevSpecific(HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
36 {
37     FIXME("(%04x, %p, %08ld): stub.\n", hPhone, lpParams, dwSize);
38     return 1;
39 }
40
41 /***********************************************************************
42  *              phoneGetButtonInfo (TAPI32.@)
43  */
44 DWORD WINAPI phoneGetButtonInfo(HPHONE hPhone, DWORD dwButtonLampID,
45                                 LPPHONEBUTTONINFO lpButtonInfo)
46 {
47     FIXME("(%04x, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
48     return 0;
49 }
50
51 /***********************************************************************
52  *              phoneGetData (TAPI32.@)
53  */
54 DWORD WINAPI phoneGetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
55 {
56     FIXME("(%04x, %08ld, %p, %08ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
57     return 0;
58 }
59
60 /***********************************************************************
61  *              phoneGetDevCaps (TAPI32.@)
62  */
63 DWORD WINAPI phoneGetDevCaps(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
64                DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps)
65 {
66     FIXME("(%04x, %08ld, %08lx, %08lx, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps);
67     return 0;
68 }
69
70 /***********************************************************************
71  *              phoneGetDisplay (TAPI32.@)
72  */
73 DWORD WINAPI phoneGetDisplay(HPHONE hPhone, LPVARSTRING lpDisplay)
74 {
75     FIXME("(%04x, %p): stub.\n", hPhone, lpDisplay);
76     return 0;
77 }
78
79 /***********************************************************************
80  *              phoneGetGain (TAPI32.@)
81  */
82 DWORD WINAPI phoneGetGain(HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain)
83 {
84     FIXME("(%04x, %08lx, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
85     return 0;
86 }       
87                 
88 /***********************************************************************
89  *              phoneGetHookSwitch (TAPI32.@)
90  */
91 DWORD WINAPI phoneGetHookSwitch(HPHONE hPhone, LPDWORD lpdwHookSwitchDevs)
92 {
93    FIXME("(%04x, %p): stub.\n", hPhone, lpdwHookSwitchDevs);
94    return 0;
95 }
96
97 /***********************************************************************
98  *              phoneGetID (TAPI32.@)
99  */
100 DWORD WINAPI phoneGetID(HPHONE hPhone, LPVARSTRING lpDeviceID,
101                         LPCSTR lpszDeviceClass)
102 {
103     FIXME("(%04x, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass);    return 0;
104 }
105
106 /***********************************************************************
107  *              phoneGetIcon (TAPI32.@)
108  */
109 DWORD WINAPI phoneGetIcon(DWORD dwDeviceID, LPCSTR lpszDeviceClass,
110                           HICON *lphIcon)
111 {
112     FIXME("(%08lx, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
113     return 0;
114 }
115
116 /***********************************************************************
117  *              phoneGetLamp (TAPI32.@)
118  */
119 DWORD WINAPI phoneGetLamp(HPHONE hPhone, DWORD dwButtonLampID,
120                           LPDWORD lpdwLampMode)
121 {
122     FIXME("(%04x, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
123     return 0;
124 }
125
126 /***********************************************************************
127  *              phoneGetRing (TAPI32.@)
128  */
129 DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
130 {
131     FIXME("(%04x, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
132     return 0;
133 }
134
135 /***********************************************************************
136  *              phoneGetStatus (TAPI32.@)
137  */
138 DWORD WINAPI phoneGetStatus(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
139 {
140     FIXME("(%04x, %p): stub.\n", hPhone, lpPhoneStatus);
141     return 0;
142 }
143
144 /***********************************************************************
145  *              phoneGetStatusMessages (TAPI32.@)
146  */
147 DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates,
148                           LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
149 {
150     FIXME("(%04x, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
151     return 0;
152 }
153
154 /***********************************************************************
155  *              phoneGetVolume (TAPI32.@)
156  */
157 DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs,
158                             LPDWORD lpdwVolume)
159 {
160     FIXME("(%04x, %08lx, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
161     return 0;
162 }
163
164 /***********************************************************************
165  *              phoneInitialize (TAPI32.@)
166  */
167 DWORD WINAPI phoneInitialize(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
168 {
169     FIXME("(%p, %04x, %p, %s, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs);
170     return 0;
171 }
172
173 /***********************************************************************
174  *              phoneNegotiateAPIVersion (TAPI32.@)
175  */
176 DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
177 {
178     FIXME("(): stub.\n");
179     return 0;
180 }
181
182 /***********************************************************************
183  *              phoneNegotiateExtVersion (TAPI32.@)
184  */
185 DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
186                                  DWORD dwAPIVersion, DWORD dwExtLowVersion,
187                                  DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
188 {
189     FIXME("(): stub.\n");
190     return 0;
191 }
192
193 /***********************************************************************
194  *              phoneOpen (TAPI32.@)
195  */
196 DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
197 {
198     FIXME("(): stub.\n");
199     return 0;
200 }
201
202 /***********************************************************************
203  *              phoneSetButtonInfo (TAPI32.@)
204  */
205 DWORD WINAPI phoneSetButtonInfo(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
206 {
207     FIXME("(%04x, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
208     return 0;
209 }
210
211 /***********************************************************************
212  *              phoneSetData (TAPI32.@)
213  */
214 DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
215 {
216     FIXME("(%04x, %08lx, %p, %ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
217     return 1;
218 }
219
220 /***********************************************************************
221  *              phoneSetDisplay (TAPI32.@)
222  */
223 DWORD WINAPI phoneSetDisplay(HPHONE hPhone, DWORD dwRow, DWORD dwColumn, LPCSTR lpszDisplay, DWORD dwSize)
224 {
225     FIXME("(%04x, '%s' at %ld/%ld, len %ld): stub.\n", hPhone, lpszDisplay, dwRow, dwColumn, dwSize);
226     return 1;
227 }
228
229 /***********************************************************************
230  *              phoneSetGain (TAPI32.@)
231  */
232 DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
233 {
234     FIXME("(%04x, %08lx, %ld): stub.\n", hPhone, dwHookSwitchDev, dwGain);
235     return 1;
236 }
237
238 /***********************************************************************
239  *              phoneSetHookSwitch (TAPI32.@)
240  */
241 DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
242 {
243     FIXME("(%04x, %08lx, %08lx): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
244     return 1;
245 }
246
247 /***********************************************************************
248  *              phoneSetLamp (TAPI32.@)
249  */
250 DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
251 {
252     FIXME("(%04x, %08lx, %08lx): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
253     return 1;
254 }
255
256 /***********************************************************************
257  *              phoneSetRing (TAPI32.@)
258  */
259 DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
260 {
261     FIXME("(%04x, %08lx, %08lx): stub.\n", hPhone, dwRingMode, dwVolume);
262     return 1;
263 }
264
265 /***********************************************************************
266  *              phoneSetStatusMessages (TAPI32.@)
267  */
268 DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
269 {
270     FIXME("(%04x, %08lx, %08lx, %08lx): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
271     return 0; /* FIXME ? */
272 }
273
274 /***********************************************************************
275  *              phoneSetVolume (TAPI32.@)
276  */
277 DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
278 {
279     FIXME("(%04x, %08lx, %08lx): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
280     return 1;
281 }
282
283 /***********************************************************************
284  *              phoneShutdown (TAPI32.@)
285  */
286 DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp)
287 {
288     FIXME("(%04x): stub.\n", hPhoneApp);
289     return 0;
290 }