Free the debug info when making a critical section global.
[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 "winbase.h"
21 #include "objbase.h"
22 #include "mediaobj.h"
23 #include "dmoreg.h"
24
25 #include "wine/debug.h"
26
27 WINE_DEFAULT_DEBUG_CHANNEL(msdmo);
28
29 /***********************************************************************/
30
31 HRESULT WINAPI DMORegister(LPCWSTR a, REFCLSID b, REFGUID c, DWORD d, DWORD e,
32                            const DMO_PARTIAL_MEDIATYPE* f,
33                            DWORD g, const DMO_PARTIAL_MEDIATYPE* h)
34 {
35   FIXME("(%p,%p,%p,%lu,%lu,%p,%lu,%p),stub!\n",a,b,c,d,e,f,g,h);
36
37   return E_NOTIMPL;
38 }
39
40 HRESULT WINAPI DMOUnregister(REFCLSID a,REFGUID b)
41 {
42   FIXME("(%p,%p),stub!\n",a,b);
43
44   return E_NOTIMPL;
45 }
46
47 HRESULT WINAPI DMOEnum(REFGUID guidCategory, DWORD dwFlags, DWORD cInTypes,
48                        const DMO_PARTIAL_MEDIATYPE*pInTypes, DWORD cOutTypes,
49                        const DMO_PARTIAL_MEDIATYPE*pOutTypes,IEnumDMO**ppEnum)
50 {
51   FIXME("(%s,0x%lX,%lu,%p,%lu,%p,%p),stub!\n",debugstr_guid(guidCategory),
52         dwFlags,cInTypes,pInTypes,cOutTypes,pOutTypes,ppEnum);
53
54   if (guidCategory == NULL || ppEnum == NULL)
55     return E_FAIL;
56   if (dwFlags != 0 && dwFlags != DMO_ENUMF_INCLUDE_KEYED)
57     return E_FAIL;
58
59   *ppEnum = NULL;
60
61   return E_NOTIMPL;
62 }
63
64 HRESULT WINAPI DMOGetTypes(REFCLSID a, unsigned long b, unsigned long* c,
65                            DMO_PARTIAL_MEDIATYPE* d, unsigned long e,
66                            unsigned long* f, DMO_PARTIAL_MEDIATYPE* g)
67 {
68   FIXME("(%p,%lu,%p,%p,%lu,%p,%p),stub!\n",a,b,c,d,e,f,g);
69
70   return E_NOTIMPL;
71 }
72
73 HRESULT WINAPI DMOGetName(REFCLSID pclsid, WCHAR* pstr)
74 {
75   FIXME("(%s,%p),stub!\n", debugstr_guid(pclsid), pstr);
76
77   if (pclsid == NULL || pstr == NULL)
78     return E_FAIL;
79
80   pstr[0] = '\0';
81
82   return E_NOTIMPL;
83 }