Changeset 6710 for trunk/src/quartz/imevent.c
- Timestamp:
- Sep 15, 2001, 11:28:23 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/quartz/imevent.c
r6649 r6710 1 /* $Id: imevent.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */2 1 /* 3 2 * Implementation of IMediaEvent[Ex] for FilterGraph. … … 31 30 IMediaEventEx_fnQueryInterface(IMediaEventEx* iface,REFIID riid,void** ppobj) 32 31 { 33 34 35 36 37 32 CFilterGraph_THIS(iface,mediaevent); 33 34 TRACE("(%p)->()\n",This); 35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 38 37 } 39 38 … … 41 40 IMediaEventEx_fnAddRef(IMediaEventEx* iface) 42 41 { 43 44 45 46 47 42 CFilterGraph_THIS(iface,mediaevent); 43 44 TRACE("(%p)->()\n",This); 45 46 return IUnknown_AddRef(This->unk.punkControl); 48 47 } 49 48 … … 51 50 IMediaEventEx_fnRelease(IMediaEventEx* iface) 52 51 { 53 54 55 56 57 52 CFilterGraph_THIS(iface,mediaevent); 53 54 TRACE("(%p)->()\n",This); 55 56 return IUnknown_Release(This->unk.punkControl); 58 57 } 59 58 … … 61 60 IMediaEventEx_fnGetTypeInfoCount(IMediaEventEx* iface,UINT* pcTypeInfo) 62 61 { 63 64 65 66 67 62 CFilterGraph_THIS(iface,mediaevent); 63 64 FIXME("(%p)->()\n",This); 65 66 return E_NOTIMPL; 68 67 } 69 68 … … 71 70 IMediaEventEx_fnGetTypeInfo(IMediaEventEx* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 72 71 { 73 74 75 76 77 72 CFilterGraph_THIS(iface,mediaevent); 73 74 FIXME("(%p)->()\n",This); 75 76 return E_NOTIMPL; 78 77 } 79 78 … … 81 80 IMediaEventEx_fnGetIDsOfNames(IMediaEventEx* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 82 81 { 83 84 85 86 87 82 CFilterGraph_THIS(iface,mediaevent); 83 84 FIXME("(%p)->()\n",This); 85 86 return E_NOTIMPL; 88 87 } 89 88 … … 91 90 IMediaEventEx_fnInvoke(IMediaEventEx* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 92 91 { 93 94 95 96 97 92 CFilterGraph_THIS(iface,mediaevent); 93 94 FIXME("(%p)->()\n",This); 95 96 return E_NOTIMPL; 98 97 } 99 98 … … 102 101 IMediaEventEx_fnGetEventHandle(IMediaEventEx* iface,OAEVENT* hEvent) 103 102 { 104 CFilterGraph_THIS(iface,mediaevent); 105 106 FIXME("(%p)->() stub!\n",This); 107 108 return E_NOTIMPL; 103 CFilterGraph_THIS(iface,mediaevent); 104 105 TRACE("(%p)->()\n",This); 106 107 *hEvent = (OAEVENT)This->m_hMediaEvent; 108 109 return NOERROR; 109 110 } 110 111 … … 112 113 IMediaEventEx_fnGetEvent(IMediaEventEx* iface,long* lEventCode,LONG_PTR* plParam1,LONG_PTR* plParam2,long lTimeOut) 113 114 { 114 115 116 117 118 115 CFilterGraph_THIS(iface,mediaevent); 116 117 FIXME("(%p)->() stub!\n",This); 118 119 return E_NOTIMPL; 119 120 } 120 121 … … 122 123 IMediaEventEx_fnWaitForCompletion(IMediaEventEx* iface,long lTimeOut,long* plEventCode) 123 124 { 124 125 126 127 128 125 CFilterGraph_THIS(iface,mediaevent); 126 127 FIXME("(%p)->() stub!\n",This); 128 129 return E_NOTIMPL; 129 130 } 130 131 … … 132 133 IMediaEventEx_fnCancelDefaultHandling(IMediaEventEx* iface,long lEventCode) 133 134 { 134 135 136 137 138 135 CFilterGraph_THIS(iface,mediaevent); 136 137 FIXME("(%p)->() stub!\n",This); 138 139 return E_NOTIMPL; 139 140 } 140 141 … … 142 143 IMediaEventEx_fnRestoreDefaultHandling(IMediaEventEx* iface,long lEventCode) 143 144 { 144 145 146 147 148 145 CFilterGraph_THIS(iface,mediaevent); 146 147 FIXME("(%p)->() stub!\n",This); 148 149 return E_NOTIMPL; 149 150 } 150 151 … … 152 153 IMediaEventEx_fnFreeEventParams(IMediaEventEx* iface,long lEventCode,LONG_PTR lParam1,LONG_PTR lParam2) 153 154 { 154 155 156 157 158 155 CFilterGraph_THIS(iface,mediaevent); 156 157 FIXME("(%p)->() stub!\n",This); 158 159 return E_NOTIMPL; 159 160 } 160 161 … … 162 163 IMediaEventEx_fnSetNotifyWindow(IMediaEventEx* iface,OAHWND hwnd,long message,LONG_PTR lParam) 163 164 { 164 165 166 167 168 165 CFilterGraph_THIS(iface,mediaevent); 166 167 FIXME("(%p)->() stub!\n",This); 168 169 return E_NOTIMPL; 169 170 } 170 171 … … 172 173 IMediaEventEx_fnSetNotifyFlags(IMediaEventEx* iface,long lNotifyFlags) 173 174 { 174 175 176 177 178 175 CFilterGraph_THIS(iface,mediaevent); 176 177 FIXME("(%p)->() stub!\n",This); 178 179 return E_NOTIMPL; 179 180 } 180 181 … … 182 183 IMediaEventEx_fnGetNotifyFlags(IMediaEventEx* iface,long* plNotifyFlags) 183 184 { 184 185 186 187 188 185 CFilterGraph_THIS(iface,mediaevent); 186 187 FIXME("(%p)->() stub!\n",This); 188 189 return E_NOTIMPL; 189 190 } 190 191 … … 193 194 static ICOM_VTABLE(IMediaEventEx) imediaevent = 194 195 { 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 196 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 197 /* IUnknown fields */ 198 IMediaEventEx_fnQueryInterface, 199 IMediaEventEx_fnAddRef, 200 IMediaEventEx_fnRelease, 201 /* IDispatch fields */ 202 IMediaEventEx_fnGetTypeInfoCount, 203 IMediaEventEx_fnGetTypeInfo, 204 IMediaEventEx_fnGetIDsOfNames, 205 IMediaEventEx_fnInvoke, 206 /* IMediaEvent fields */ 207 IMediaEventEx_fnGetEventHandle, 208 IMediaEventEx_fnGetEvent, 209 IMediaEventEx_fnWaitForCompletion, 210 IMediaEventEx_fnCancelDefaultHandling, 211 IMediaEventEx_fnRestoreDefaultHandling, 212 IMediaEventEx_fnFreeEventParams, 213 /* IMediaEventEx fields */ 214 IMediaEventEx_fnSetNotifyWindow, 215 IMediaEventEx_fnSetNotifyFlags, 216 IMediaEventEx_fnGetNotifyFlags, 216 217 }; 217 218 218 219 219 void CFilterGraph_InitIMediaEventEx( CFilterGraph* pfg ) 220 { 221 TRACE("(%p)\n",pfg); 222 ICOM_VTBL(&pfg->mediaevent) = &imediaevent; 223 } 220 HRESULT CFilterGraph_InitIMediaEventEx( CFilterGraph* pfg ) 221 { 222 TRACE("(%p)\n",pfg); 223 ICOM_VTBL(&pfg->mediaevent) = &imediaevent; 224 225 pfg->m_hMediaEvent = CreateEventA( NULL, TRUE, FALSE, NULL ); 226 if ( pfg->m_hMediaEvent == (HANDLE)NULL ) 227 return E_OUTOFMEMORY; 228 229 return NOERROR; 230 } 231 232 void CFilterGraph_UninitIMediaEventEx( CFilterGraph* pfg ) 233 { 234 TRACE("(%p)\n",pfg); 235 236 CloseHandle( pfg->m_hMediaEvent ); 237 }
Note:
See TracChangeset
for help on using the changeset viewer.