Fixed differences between SetRectRgn16 and SetRectRgn32. Also a bug fix for
[wine/multimedia.git] / dlls / msacm / msacm_main.c
blob206c4ce39d1f34514d84514e1e70ed3216720e6f
1 /*
2 * MSACM library
4 * Copyright 1998 Patrik Stridvall
5 */
7 #include "windows.h"
8 #include "winerror.h"
9 #include "wintypes.h"
10 #include "debug.h"
11 #include "mmsystem.h"
12 #include "msacm.h"
14 /***********************************************************************
15 * ACMGETVERSION (MSACM.7)
17 DWORD WINAPI acmGetVersion16()
19 FIXME(msacm, "(): stub\n");
20 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
21 return 0; /* FIXME */
24 /***********************************************************************
25 * ACMMETRICS (MSACM.8)
28 MMRESULT16 WINAPI acmMetrics16(
29 HACMOBJ16 hao, UINT16 uMetric, LPVOID pMetric)
31 FIXME(msacm, "(0x%04x, %d, %p): stub\n", hao, uMetric, pMetric);
32 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
33 return MMSYSERR_ERROR;
36 /***********************************************************************
37 * ACMDRIVERENUM (MSACM.10)
39 MMRESULT16 WINAPI acmDriverEnum16(
40 ACMDRIVERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
42 FIXME(msacm, "(%p, %ld, %ld): stub\n",
43 fnCallback, dwInstance, fdwEnum
45 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
46 return MMSYSERR_ERROR;
49 /***********************************************************************
50 * ACMDRIVERDETAILS (MSACM.11)
53 MMRESULT16 WINAPI acmDriverDetails16(
54 HACMDRIVERID16 hadid, LPACMDRIVERDETAILS16 padd, DWORD fdwDetails)
56 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", hadid, padd, fdwDetails);
57 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
58 return MMSYSERR_ERROR;
61 /***********************************************************************
62 * ACMDRIVERADD (MSACM.12)
64 MMRESULT16 WINAPI acmDriverAdd16(
65 LPHACMDRIVERID16 phadid, HINSTANCE16 hinstModule,
66 LPARAM lParam, DWORD dwPriority, DWORD fdwAdd)
68 FIXME(msacm, "(%p, 0x%04x, %ld, %ld, %ld): stub\n",
69 phadid, hinstModule, lParam, dwPriority, fdwAdd
71 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
72 return MMSYSERR_ERROR;
75 /***********************************************************************
76 * ACMDRIVERREMOVE (MSACM.13)
78 MMRESULT16 WINAPI acmDriverRemove16(
79 HACMDRIVERID16 hadid, DWORD fdwRemove)
81 FIXME(msacm, "(0x%04x, %ld): stub\n", hadid, fdwRemove);
82 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
83 return MMSYSERR_ERROR;
86 /***********************************************************************
87 * ACMDRIVEROPEN (MSACM.14)
89 MMRESULT16 WINAPI acmDriverOpen16(
90 LPHACMDRIVER16 phad, HACMDRIVERID16 hadid, DWORD fdwOpen)
92 FIXME(msacm, "(%p, 0x%04x, %ld): stub\n", phad, hadid, fdwOpen);
93 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
94 return MMSYSERR_ERROR;
97 /***********************************************************************
98 * ACMDRIVERCLOSE (MSACM.15)
100 MMRESULT16 WINAPI acmDriverClose16(
101 HACMDRIVER16 had, DWORD fdwClose)
103 FIXME(msacm, "(0x%04x, %ld): stub\n", had, fdwClose);
104 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
105 return MMSYSERR_ERROR;
108 /***********************************************************************
109 * ACMDRIVERMESSAGE (MSACM.16)
111 LRESULT WINAPI acmDriverMessage16(
112 HACMDRIVER16 had, UINT16 uMsg, LPARAM lParam1, LPARAM lParam2)
114 FIXME(msacm, "(0x%04x, %d, %ld, %ld): stub\n",
115 had, uMsg, lParam1, lParam2
117 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
118 return 0;
121 /***********************************************************************
122 * ACMDRIVERID (MSACM.17)
124 MMRESULT16 WINAPI acmDriverID16(
125 HACMOBJ16 hao, LPHACMDRIVERID16 phadid, DWORD fdwDriverID)
127 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", hao, phadid, fdwDriverID);
128 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
129 return MMSYSERR_ERROR;
132 /***********************************************************************
133 * ACMDRIVERPRIORITY (MSACM.18)
135 MMRESULT16 WINAPI acmDriverPriority16(
136 HACMDRIVERID16 hadid, DWORD dwPriority, DWORD fdwPriority)
138 FIXME(msacm, "(0x%04x, %ld, %ld): stub\n",
139 hadid, dwPriority, fdwPriority
141 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
142 return MMSYSERR_ERROR;
145 /***********************************************************************
146 * ACMFORMATTAGDETAILS (MSACM.30)
148 MMRESULT16 WINAPI acmFormatTagDetails16(
149 HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd, DWORD fdwDetails)
151 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", had, paftd, fdwDetails);
152 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
153 return MMSYSERR_ERROR;
156 /***********************************************************************
157 * ACMFORMATTAGENUM (MSACM.31)
159 MMRESULT16 WINAPI acmFormatTagEnum16(
160 HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd,
161 ACMFORMATTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
163 FIXME(msacm, "(0x%04x, %p, %p, %ld, %ld): stub\n",
164 had, paftd, fnCallback, dwInstance, fdwEnum
166 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
167 return MMSYSERR_ERROR;
170 /***********************************************************************
171 * ACMFORMATCHOOSE (MSACM.40)
173 MMRESULT16 WINAPI acmFormatChoose16(
174 LPACMFORMATCHOOSE16 pafmtc)
176 FIXME(msacm, "(%p): stub\n", pafmtc);
177 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
178 return MMSYSERR_ERROR;
181 /***********************************************************************
182 * ACMFORMATDETAILS (MSACM.41)
184 MMRESULT16 WINAPI acmFormatDetails16(
185 HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd, DWORD fdwDetails)
187 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", had, pafd, fdwDetails);
188 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
189 return MMSYSERR_ERROR;
192 /***********************************************************************
193 * ACMFORMATENUM (MSACM.42)
195 MMRESULT16 WINAPI acmFormatEnum16(
196 HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd,
197 ACMFORMATENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
199 FIXME(msacm, "(0x%04x, %p, %p, %ld, %ld): stub\n",
200 had, pafd, fnCallback, dwInstance, fdwEnum
202 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
203 return MMSYSERR_ERROR;
206 /***********************************************************************
207 * ACMFORMATSUGGEST (MSACM.45)
209 MMRESULT16 WINAPI acmFormatSuggest16(
210 HACMDRIVER16 had, LPWAVEFORMATEX16 pwfxSrc,
211 LPWAVEFORMATEX16 pwfxDst, DWORD cbwfxDst, DWORD fdwSuggest)
213 FIXME(msacm, "(0x%04x, %p, %p, %ld, %ld): stub\n",
214 had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest
216 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
217 return MMSYSERR_ERROR;
220 /***********************************************************************
221 * ACMFILTERTAGDETAILS (MSACM.50)
223 MMRESULT16 WINAPI acmFilterTagDetails16(
224 HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd, DWORD fdwDetails)
226 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", had, paftd, fdwDetails);
227 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
228 return MMSYSERR_ERROR;
231 /***********************************************************************
232 * ACMFILTERTAGENUM (MSACM.51)
234 MMRESULT16 WINAPI acmFilterTagEnum16(
235 HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd,
236 ACMFILTERTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
238 FIXME(msacm, "(0x%04x, %p, %p, %ld, %ld): stub\n",
239 had, paftd, fnCallback, dwInstance, fdwEnum
241 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
242 return MMSYSERR_ERROR;
245 /***********************************************************************
246 * ACMFILTERCHOOSE (MSACM.60)
248 MMRESULT16 WINAPI acmFilterChoose16(
249 LPACMFILTERCHOOSE16 pafltrc)
251 FIXME(msacm, "(%p): stub\n", pafltrc);
252 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
253 return MMSYSERR_ERROR;
256 /***********************************************************************
257 * ACMFILTERDETAILS (MSACM.61)
259 MMRESULT16 WINAPI acmFilterDetails16(
260 HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd, DWORD fdwDetails)
262 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", had, pafd, fdwDetails);
263 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
264 return MMSYSERR_ERROR;
267 /***********************************************************************
268 * ACMFILTERENUM (MSACM.62)
270 MMRESULT16 WINAPI acmFilterEnum16(
271 HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd,
272 ACMFILTERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
274 FIXME(msacm, "(0x%04x, %p, %p, %ld, %ld): stub\n",
275 had, pafd, fnCallback, dwInstance, fdwEnum
277 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
278 return MMSYSERR_ERROR;
281 /***********************************************************************
282 * ACMSTREAMOPEN (MSACM.70)
284 MMRESULT16 WINAPI acmStreamOpen16(
285 LPHACMSTREAM16 phas, HACMDRIVER16 had,
286 LPWAVEFORMATEX16 pwfxSrc, LPWAVEFORMATEX16 pwfxDst,
287 LPWAVEFILTER16 pwfltr, DWORD dwCallback,
288 DWORD dwInstance, DWORD fdwOpen)
290 FIXME(msacm, "(%p, 0x%04x, %p, %p, %p, %ld, %ld, %ld): stub\n",
291 phas, had, pwfxSrc, pwfxDst, pwfltr,
292 dwCallback, dwInstance, fdwOpen
294 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
295 return MMSYSERR_ERROR;
298 /***********************************************************************
299 * ACMSTREAMCLOSE (MSACM.71)
301 MMRESULT16 WINAPI acmStreamClose16(
302 HACMSTREAM16 has, DWORD fdwClose)
304 FIXME(msacm, "(0x%04x, %ld): stub\n", has, fdwClose);
305 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
306 return MMSYSERR_ERROR;
309 /***********************************************************************
310 * ACMSTREAMSIZE (MSACM.72)
312 MMRESULT16 WINAPI acmStreamSize16(
313 HACMSTREAM16 has, DWORD cbInput,
314 LPDWORD pdwOutputBytes, DWORD fdwSize)
316 FIXME(msacm, "(0x%04x, %ld, %p, %ld): stub\n",
317 has, cbInput, pdwOutputBytes, fdwSize
319 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
320 return MMSYSERR_ERROR;
323 /***********************************************************************
324 * ACMSTREAMCONVERT (MSACM.75)
326 MMRESULT16 WINAPI acmStreamConvert16(
327 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwConvert)
329 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", has, pash, fdwConvert);
330 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
331 return MMSYSERR_ERROR;
334 /***********************************************************************
335 * ACMSTREAMRESET (MSACM.76)
337 MMRESULT16 WINAPI acmStreamReset16(
338 HACMSTREAM16 has, DWORD fdwReset)
340 FIXME(msacm, "(0x%04x, %ld): stub\n", has, fdwReset);
341 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
342 return MMSYSERR_ERROR;
345 /***********************************************************************
346 * ACMSTREAMPREPAREHEADER (MSACM.77)
348 MMRESULT16 WINAPI acmStreamPrepareHeader16(
349 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwPrepare)
351 FIXME(msacm, "(0x%04x, %p, %ld): stub\n", has, pash, fdwPrepare);
352 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
353 return MMSYSERR_ERROR;
356 /***********************************************************************
357 * ACMSTREAMUNPREPAREHEADER (MSACM.78)
359 MMRESULT16 WINAPI acmStreamUnprepareHeader16(
360 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwUnprepare)
362 FIXME(msacm, "(0x%04x, %p, %ld): stub\n",
363 has, pash, fdwUnprepare
365 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
366 return MMSYSERR_ERROR;
369 /***********************************************************************
370 * ACMAPPLICATIONEXIT (MSACM.150)
371 * FIXME
372 * No documentation found.
375 /***********************************************************************
376 * ACMHUGEPAGELOCK (MSACM.175)
377 * FIXME
378 * No documentation found.
381 /***********************************************************************
382 * ACMHUGEPAGEUNLOCK (MSACM.176)
383 * FIXME
384 * No documentation found.
387 /***********************************************************************
388 * ACMOPENCONVERSION (MSACM.200)
389 * FIXME
390 * No documentation found.
393 /***********************************************************************
394 * ACMCLOSECONVERSION (MSACM.201)
395 * FIXME
396 * No documentation found.
399 /***********************************************************************
400 * ACMCONVERT (MSACM.202)
401 * FIXME
402 * No documentation found.
405 /***********************************************************************
406 * ACMCHOOSEFORMAT (MSACM.203)
407 * FIXME
408 * No documentation found.