Ignore:
Timestamp:
Sep 15, 2001, 11:28:23 AM (24 years ago)
Author:
sandervl
Message:

wine update

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 $ */
    21/*
    32 * Implementation of IMediaEvent[Ex] for FilterGraph.
     
    3130IMediaEventEx_fnQueryInterface(IMediaEventEx* iface,REFIID riid,void** ppobj)
    3231{
    33     CFilterGraph_THIS(iface,mediaevent);
    34 
    35     TRACE("(%p)->()\n",This);
    36 
    37     return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     32        CFilterGraph_THIS(iface,mediaevent);
     33
     34        TRACE("(%p)->()\n",This);
     35
     36        return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3837}
    3938
     
    4140IMediaEventEx_fnAddRef(IMediaEventEx* iface)
    4241{
    43     CFilterGraph_THIS(iface,mediaevent);
    44 
    45     TRACE("(%p)->()\n",This);
    46 
    47     return IUnknown_AddRef(This->unk.punkControl);
     42        CFilterGraph_THIS(iface,mediaevent);
     43
     44        TRACE("(%p)->()\n",This);
     45
     46        return IUnknown_AddRef(This->unk.punkControl);
    4847}
    4948
     
    5150IMediaEventEx_fnRelease(IMediaEventEx* iface)
    5251{
    53     CFilterGraph_THIS(iface,mediaevent);
    54 
    55     TRACE("(%p)->()\n",This);
    56 
    57     return IUnknown_Release(This->unk.punkControl);
     52        CFilterGraph_THIS(iface,mediaevent);
     53
     54        TRACE("(%p)->()\n",This);
     55
     56        return IUnknown_Release(This->unk.punkControl);
    5857}
    5958
     
    6160IMediaEventEx_fnGetTypeInfoCount(IMediaEventEx* iface,UINT* pcTypeInfo)
    6261{
    63     CFilterGraph_THIS(iface,mediaevent);
    64 
    65     FIXME("(%p)->()\n",This);
    66 
    67     return E_NOTIMPL;
     62        CFilterGraph_THIS(iface,mediaevent);
     63
     64        FIXME("(%p)->()\n",This);
     65
     66        return E_NOTIMPL;
    6867}
    6968
     
    7170IMediaEventEx_fnGetTypeInfo(IMediaEventEx* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7271{
    73     CFilterGraph_THIS(iface,mediaevent);
    74 
    75     FIXME("(%p)->()\n",This);
    76 
    77     return E_NOTIMPL;
     72        CFilterGraph_THIS(iface,mediaevent);
     73
     74        FIXME("(%p)->()\n",This);
     75
     76        return E_NOTIMPL;
    7877}
    7978
     
    8180IMediaEventEx_fnGetIDsOfNames(IMediaEventEx* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8281{
    83     CFilterGraph_THIS(iface,mediaevent);
    84 
    85     FIXME("(%p)->()\n",This);
    86 
    87     return E_NOTIMPL;
     82        CFilterGraph_THIS(iface,mediaevent);
     83
     84        FIXME("(%p)->()\n",This);
     85
     86        return E_NOTIMPL;
    8887}
    8988
     
    9190IMediaEventEx_fnInvoke(IMediaEventEx* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9291{
    93     CFilterGraph_THIS(iface,mediaevent);
    94 
    95     FIXME("(%p)->()\n",This);
    96 
    97     return E_NOTIMPL;
     92        CFilterGraph_THIS(iface,mediaevent);
     93
     94        FIXME("(%p)->()\n",This);
     95
     96        return E_NOTIMPL;
    9897}
    9998
     
    102101IMediaEventEx_fnGetEventHandle(IMediaEventEx* iface,OAEVENT* hEvent)
    103102{
    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;
    109110}
    110111
     
    112113IMediaEventEx_fnGetEvent(IMediaEventEx* iface,long* lEventCode,LONG_PTR* plParam1,LONG_PTR* plParam2,long lTimeOut)
    113114{
    114     CFilterGraph_THIS(iface,mediaevent);
    115 
    116     FIXME("(%p)->() stub!\n",This);
    117 
    118     return E_NOTIMPL;
     115        CFilterGraph_THIS(iface,mediaevent);
     116
     117        FIXME("(%p)->() stub!\n",This);
     118
     119        return E_NOTIMPL;
    119120}
    120121
     
    122123IMediaEventEx_fnWaitForCompletion(IMediaEventEx* iface,long lTimeOut,long* plEventCode)
    123124{
    124     CFilterGraph_THIS(iface,mediaevent);
    125 
    126     FIXME("(%p)->() stub!\n",This);
    127 
    128     return E_NOTIMPL;
     125        CFilterGraph_THIS(iface,mediaevent);
     126
     127        FIXME("(%p)->() stub!\n",This);
     128
     129        return E_NOTIMPL;
    129130}
    130131
     
    132133IMediaEventEx_fnCancelDefaultHandling(IMediaEventEx* iface,long lEventCode)
    133134{
    134     CFilterGraph_THIS(iface,mediaevent);
    135 
    136     FIXME("(%p)->() stub!\n",This);
    137 
    138     return E_NOTIMPL;
     135        CFilterGraph_THIS(iface,mediaevent);
     136
     137        FIXME("(%p)->() stub!\n",This);
     138
     139        return E_NOTIMPL;
    139140}
    140141
     
    142143IMediaEventEx_fnRestoreDefaultHandling(IMediaEventEx* iface,long lEventCode)
    143144{
    144     CFilterGraph_THIS(iface,mediaevent);
    145 
    146     FIXME("(%p)->() stub!\n",This);
    147 
    148     return E_NOTIMPL;
     145        CFilterGraph_THIS(iface,mediaevent);
     146
     147        FIXME("(%p)->() stub!\n",This);
     148
     149        return E_NOTIMPL;
    149150}
    150151
     
    152153IMediaEventEx_fnFreeEventParams(IMediaEventEx* iface,long lEventCode,LONG_PTR lParam1,LONG_PTR lParam2)
    153154{
    154     CFilterGraph_THIS(iface,mediaevent);
    155 
    156     FIXME("(%p)->() stub!\n",This);
    157 
    158     return E_NOTIMPL;
     155        CFilterGraph_THIS(iface,mediaevent);
     156
     157        FIXME("(%p)->() stub!\n",This);
     158
     159        return E_NOTIMPL;
    159160}
    160161
     
    162163IMediaEventEx_fnSetNotifyWindow(IMediaEventEx* iface,OAHWND hwnd,long message,LONG_PTR lParam)
    163164{
    164     CFilterGraph_THIS(iface,mediaevent);
    165 
    166     FIXME("(%p)->() stub!\n",This);
    167 
    168     return E_NOTIMPL;
     165        CFilterGraph_THIS(iface,mediaevent);
     166
     167        FIXME("(%p)->() stub!\n",This);
     168
     169        return E_NOTIMPL;
    169170}
    170171
     
    172173IMediaEventEx_fnSetNotifyFlags(IMediaEventEx* iface,long lNotifyFlags)
    173174{
    174     CFilterGraph_THIS(iface,mediaevent);
    175 
    176     FIXME("(%p)->() stub!\n",This);
    177 
    178     return E_NOTIMPL;
     175        CFilterGraph_THIS(iface,mediaevent);
     176
     177        FIXME("(%p)->() stub!\n",This);
     178
     179        return E_NOTIMPL;
    179180}
    180181
     
    182183IMediaEventEx_fnGetNotifyFlags(IMediaEventEx* iface,long* plNotifyFlags)
    183184{
    184     CFilterGraph_THIS(iface,mediaevent);
    185 
    186     FIXME("(%p)->() stub!\n",This);
    187 
    188     return E_NOTIMPL;
     185        CFilterGraph_THIS(iface,mediaevent);
     186
     187        FIXME("(%p)->() stub!\n",This);
     188
     189        return E_NOTIMPL;
    189190}
    190191
     
    193194static ICOM_VTABLE(IMediaEventEx) imediaevent =
    194195{
    195     ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    196     /* IUnknown fields */
    197     IMediaEventEx_fnQueryInterface,
    198     IMediaEventEx_fnAddRef,
    199     IMediaEventEx_fnRelease,
    200     /* IDispatch fields */
    201     IMediaEventEx_fnGetTypeInfoCount,
    202     IMediaEventEx_fnGetTypeInfo,
    203     IMediaEventEx_fnGetIDsOfNames,
    204     IMediaEventEx_fnInvoke,
    205     /* IMediaEvent fields */
    206     IMediaEventEx_fnGetEventHandle,
    207     IMediaEventEx_fnGetEvent,
    208     IMediaEventEx_fnWaitForCompletion,
    209     IMediaEventEx_fnCancelDefaultHandling,
    210     IMediaEventEx_fnRestoreDefaultHandling,
    211     IMediaEventEx_fnFreeEventParams,
    212     /* IMediaEventEx fields */
    213     IMediaEventEx_fnSetNotifyWindow,
    214     IMediaEventEx_fnSetNotifyFlags,
    215     IMediaEventEx_fnGetNotifyFlags,
     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,
    216217};
    217218
    218219
    219 void CFilterGraph_InitIMediaEventEx( CFilterGraph* pfg )
    220 {
    221     TRACE("(%p)\n",pfg);
    222     ICOM_VTBL(&pfg->mediaevent) = &imediaevent;
    223 }
     220HRESULT 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
     232void 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.