Intern all the atoms we'll need in one step to avoid multiple server
[wine] / dlls / msdmo / dmoreg.c
1 /*
2  * Copyright (C) 2003 Michael Günnewig
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #define COM_NO_WINDOWS_H
20 #include <stdarg.h>
21
22 #include "windef.h"
23 #include "winbase.h"
24 #include "objbase.h"
25 #include "mediaobj.h"
26 #include "dmoreg.h"
27
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(msdmo);
31
32 /***********************************************************************/
33
34 HRESULT WINAPI DMORegister(LPCWSTR a, REFCLSID b, REFGUID c, DWORD d, DWORD e,
35                            const DMO_PARTIAL_MEDIATYPE* f,
36                            DWORD g, const DMO_PARTIAL_MEDIATYPE* h)
37 {
38   FIXME("(%p,%p,%p,%lu,%lu,%p,%lu,%p),stub!\n",a,b,c,d,e,f,g,h);
39
40   return E_NOTIMPL;
41 }
42
43 HRESULT WINAPI DMOUnregister(REFCLSID a,REFGUID b)
44 {
45   FIXME("(%p,%p),stub!\n",a,b);
46
47   return E_NOTIMPL;
48 }
49
50 HRESULT WINAPI DMOEnum(REFGUID guidCategory, DWORD dwFlags, DWORD cInTypes,
51                        const DMO_PARTIAL_MEDIATYPE*pInTypes, DWORD cOutTypes,
52                        const DMO_PARTIAL_MEDIATYPE*pOutTypes,IEnumDMO**ppEnum)
53 {
54   FIXME("(%s,0x%lX,%lu,%p,%lu,%p,%p),stub!\n",debugstr_guid(guidCategory),
55         dwFlags,cInTypes,pInTypes,cOutTypes,pOutTypes,ppEnum);
56
57   if (guidCategory == NULL || ppEnum == NULL)
58     return E_FAIL;
59   if (dwFlags != 0 && dwFlags != DMO_ENUMF_INCLUDE_KEYED)
60     return E_FAIL;
61
62   *ppEnum = NULL;
63
64   return E_NOTIMPL;
65 }
66
67 HRESULT WINAPI DMOGetTypes(REFCLSID a, unsigned long b, unsigned long* c,
68                            DMO_PARTIAL_MEDIATYPE* d, unsigned long e,
69                            unsigned long* f, DMO_PARTIAL_MEDIATYPE* g)
70 {
71   FIXME("(%p,%lu,%p,%p,%lu,%p,%p),stub!\n",a,b,c,d,e,f,g);
72
73   return E_NOTIMPL;
74 }
75
76 HRESULT WINAPI DMOGetName(REFCLSID pclsid, WCHAR* pstr)
77 {
78   FIXME("(%s,%p),stub!\n", debugstr_guid(pclsid), pstr);
79
80   if (pclsid == NULL || pstr == NULL)
81     return E_FAIL;
82
83   pstr[0] = '\0';
84
85   return E_NOTIMPL;
86 }