| 1 | /*
|
|---|
| 2 | * Implementation of IFilterMapper3 for CLSID_FilterMapper2.
|
|---|
| 3 | *
|
|---|
| 4 | * FIXME - stub.
|
|---|
| 5 | *
|
|---|
| 6 | * hidenori@a2.ctktv.ne.jp
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | #include "config.h"
|
|---|
| 10 |
|
|---|
| 11 | #include "windef.h"
|
|---|
| 12 | #include "winbase.h"
|
|---|
| 13 | #include "wingdi.h"
|
|---|
| 14 | #include "winreg.h"
|
|---|
| 15 | #include "winerror.h"
|
|---|
| 16 | #include "wine/obj_base.h"
|
|---|
| 17 | #include "wine/obj_oleaut.h"
|
|---|
| 18 | #include "strmif.h"
|
|---|
| 19 | #include "control.h"
|
|---|
| 20 | #include "uuids.h"
|
|---|
| 21 |
|
|---|
| 22 | #include "debugtools.h"
|
|---|
| 23 | DEFAULT_DEBUG_CHANNEL(quartz);
|
|---|
| 24 |
|
|---|
| 25 | #include "quartz_private.h"
|
|---|
| 26 | #include "fmap2.h"
|
|---|
| 27 | #include "regsvr.h"
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | static HRESULT WINAPI
|
|---|
| 31 | IFilterMapper3_fnQueryInterface(IFilterMapper3* iface,REFIID riid,void** ppobj)
|
|---|
| 32 | {
|
|---|
| 33 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 34 |
|
|---|
| 35 | TRACE("(%p)->()\n",This);
|
|---|
| 36 |
|
|---|
| 37 | return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | static ULONG WINAPI
|
|---|
| 41 | IFilterMapper3_fnAddRef(IFilterMapper3* iface)
|
|---|
| 42 | {
|
|---|
| 43 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 44 |
|
|---|
| 45 | TRACE("(%p)->()\n",This);
|
|---|
| 46 |
|
|---|
| 47 | return IUnknown_AddRef(This->unk.punkControl);
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 | static ULONG WINAPI
|
|---|
| 51 | IFilterMapper3_fnRelease(IFilterMapper3* iface)
|
|---|
| 52 | {
|
|---|
| 53 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 54 |
|
|---|
| 55 | TRACE("(%p)->()\n",This);
|
|---|
| 56 |
|
|---|
| 57 | return IUnknown_Release(This->unk.punkControl);
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | static HRESULT WINAPI
|
|---|
| 61 | IFilterMapper3_fnCreateCategory(IFilterMapper3* iface,REFCLSID rclsidCategory,DWORD dwMerit,LPCWSTR lpwszDesc)
|
|---|
| 62 | {
|
|---|
| 63 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 64 |
|
|---|
| 65 | FIXME("(%p)->(%s,%lu,%s) stub!\n",This,
|
|---|
| 66 | debugstr_guid(rclsidCategory),
|
|---|
| 67 | (unsigned long)dwMerit,debugstr_w(lpwszDesc));
|
|---|
| 68 |
|
|---|
| 69 | return E_NOTIMPL;
|
|---|
| 70 | }
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | static HRESULT WINAPI
|
|---|
| 74 | IFilterMapper3_fnUnregisterFilter(IFilterMapper3* iface,const CLSID* pclsidCategory,const OLECHAR* lpwszInst,REFCLSID rclsidFilter)
|
|---|
| 75 | {
|
|---|
| 76 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 77 |
|
|---|
| 78 | FIXME("(%p)->(%s,%s,%s) stub!\n",This,
|
|---|
| 79 | debugstr_guid(pclsidCategory),
|
|---|
| 80 | debugstr_w(lpwszInst),
|
|---|
| 81 | debugstr_guid(rclsidFilter));
|
|---|
| 82 |
|
|---|
| 83 | if ( pclsidCategory == NULL )
|
|---|
| 84 | pclsidCategory = &CLSID_LegacyAmFilterCategory;
|
|---|
| 85 |
|
|---|
| 86 | /* FIXME */
|
|---|
| 87 | return QUARTZ_RegisterAMovieFilter(
|
|---|
| 88 | pclsidCategory,
|
|---|
| 89 | rclsidFilter,
|
|---|
| 90 | NULL, 0,
|
|---|
| 91 | NULL, lpwszInst, FALSE );
|
|---|
| 92 | }
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | static HRESULT WINAPI
|
|---|
| 96 | IFilterMapper3_fnRegisterFilter(IFilterMapper3* iface,REFCLSID rclsidFilter,LPCWSTR lpName,IMoniker** ppMoniker,const CLSID* pclsidCategory,const OLECHAR* lpwszInst,const REGFILTER2* pRF2)
|
|---|
| 97 | {
|
|---|
| 98 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 99 |
|
|---|
| 100 | FIXME( "(%p)->(%s,%s,%p,%s,%s,%p) stub!\n",This,
|
|---|
| 101 | debugstr_guid(rclsidFilter),debugstr_w(lpName),
|
|---|
| 102 | ppMoniker,debugstr_guid(pclsidCategory),
|
|---|
| 103 | debugstr_w(lpwszInst),pRF2 );
|
|---|
| 104 |
|
|---|
| 105 | if ( lpName == NULL || pRF2 == NULL )
|
|---|
| 106 | return E_POINTER;
|
|---|
| 107 |
|
|---|
| 108 | if ( ppMoniker != NULL )
|
|---|
| 109 | {
|
|---|
| 110 | FIXME( "ppMoniker != NULL - not implemented!\n" );
|
|---|
| 111 | return E_NOTIMPL;
|
|---|
| 112 | }
|
|---|
| 113 |
|
|---|
| 114 | if ( pclsidCategory == NULL )
|
|---|
| 115 | pclsidCategory = &CLSID_LegacyAmFilterCategory;
|
|---|
| 116 |
|
|---|
| 117 | /* FIXME!! - all members in REGFILTER2 are ignored ! */
|
|---|
| 118 |
|
|---|
| 119 | return QUARTZ_RegisterAMovieFilter(
|
|---|
| 120 | pclsidCategory,
|
|---|
| 121 | rclsidFilter,
|
|---|
| 122 | NULL, 0,
|
|---|
| 123 | lpName, lpwszInst, TRUE );
|
|---|
| 124 | }
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 | static HRESULT WINAPI
|
|---|
| 128 | IFilterMapper3_fnEnumMatchingFilters(IFilterMapper3* iface,IEnumMoniker** ppMoniker,DWORD dwFlags,BOOL bExactMatch,DWORD dwMerit,BOOL bInputNeeded,DWORD cInputTypes,const GUID* pguidInputTypes,const REGPINMEDIUM* pPinMediumIn,const CLSID* pPinCategoryIn,BOOL bRender,BOOL bOutputNeeded,DWORD cOutputTypes,const GUID* pguidOutputTypes,const REGPINMEDIUM* pPinMediumOut,const CLSID* pPinCategoryOut)
|
|---|
| 129 | {
|
|---|
| 130 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 131 |
|
|---|
| 132 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 133 |
|
|---|
| 134 | return E_NOTIMPL;
|
|---|
| 135 | }
|
|---|
| 136 |
|
|---|
| 137 | static HRESULT WINAPI
|
|---|
| 138 | IFilterMapper3_fnGetICreateDevEnum(IFilterMapper3* iface,ICreateDevEnum** ppDevEnum)
|
|---|
| 139 | {
|
|---|
| 140 | CFilterMapper2_THIS(iface,fmap3);
|
|---|
| 141 |
|
|---|
| 142 | /* undocumented */
|
|---|
| 143 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 144 |
|
|---|
| 145 | return E_NOTIMPL;
|
|---|
| 146 | }
|
|---|
| 147 |
|
|---|
| 148 |
|
|---|
| 149 |
|
|---|
| 150 |
|
|---|
| 151 | static ICOM_VTABLE(IFilterMapper3) ifmap3 =
|
|---|
| 152 | {
|
|---|
| 153 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
|---|
| 154 | /* IUnknown fields */
|
|---|
| 155 | IFilterMapper3_fnQueryInterface,
|
|---|
| 156 | IFilterMapper3_fnAddRef,
|
|---|
| 157 | IFilterMapper3_fnRelease,
|
|---|
| 158 | /* IFilterMapper2 fields */
|
|---|
| 159 | IFilterMapper3_fnCreateCategory,
|
|---|
| 160 | IFilterMapper3_fnUnregisterFilter,
|
|---|
| 161 | IFilterMapper3_fnRegisterFilter,
|
|---|
| 162 | IFilterMapper3_fnEnumMatchingFilters,
|
|---|
| 163 | /* IFilterMapper3 fields */
|
|---|
| 164 | IFilterMapper3_fnGetICreateDevEnum,
|
|---|
| 165 | };
|
|---|
| 166 |
|
|---|
| 167 |
|
|---|
| 168 | HRESULT CFilterMapper2_InitIFilterMapper3( CFilterMapper2* pfm )
|
|---|
| 169 | {
|
|---|
| 170 | TRACE("(%p)\n",pfm);
|
|---|
| 171 | ICOM_VTBL(&pfm->fmap3) = &ifmap3;
|
|---|
| 172 |
|
|---|
| 173 | return NOERROR;
|
|---|
| 174 | }
|
|---|
| 175 |
|
|---|
| 176 | void CFilterMapper2_UninitIFilterMapper3( CFilterMapper2* pfm )
|
|---|
| 177 | {
|
|---|
| 178 | TRACE("(%p)\n",pfm);
|
|---|
| 179 | }
|
|---|
| 180 |
|
|---|