msimtf: Add stub implementation for IActiveIMMMessagePumpOwner.
This commit is contained in:
parent
38fb26fbb3
commit
c4be28ed26
|
@ -42,6 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msimtf);
|
||||||
|
|
||||||
typedef struct tagActiveIMMApp {
|
typedef struct tagActiveIMMApp {
|
||||||
IActiveIMMApp IActiveIMMApp_iface;
|
IActiveIMMApp IActiveIMMApp_iface;
|
||||||
|
IActiveIMMMessagePumpOwner IActiveIMMMessagePumpOwner_iface;
|
||||||
LONG refCount;
|
LONG refCount;
|
||||||
} ActiveIMMApp;
|
} ActiveIMMApp;
|
||||||
|
|
||||||
|
@ -66,6 +67,10 @@ static HRESULT WINAPI ActiveIMMApp_QueryInterface (IActiveIMMApp* iface,
|
||||||
{
|
{
|
||||||
*ppvOut = This;
|
*ppvOut = This;
|
||||||
}
|
}
|
||||||
|
else if (IsEqualIID(iid, &IID_IActiveIMMMessagePumpOwner))
|
||||||
|
{
|
||||||
|
*ppvOut = &This->IActiveIMMMessagePumpOwner_iface;
|
||||||
|
}
|
||||||
|
|
||||||
if (*ppvOut)
|
if (*ppvOut)
|
||||||
{
|
{
|
||||||
|
@ -812,6 +817,80 @@ static const IActiveIMMAppVtbl ActiveIMMAppVtbl =
|
||||||
ActiveIMMApp_EnumInputContext
|
ActiveIMMApp_EnumInputContext
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static inline ActiveIMMApp *impl_from_IActiveIMMMessagePumpOwner(IActiveIMMMessagePumpOwner *iface)
|
||||||
|
{
|
||||||
|
return CONTAINING_RECORD(iface, ActiveIMMApp, IActiveIMMMessagePumpOwner_iface);
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ActiveIMMMessagePumpOwner_QueryInterface(IActiveIMMMessagePumpOwner* iface,
|
||||||
|
REFIID iid, LPVOID *ppvOut)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
return IActiveIMMApp_QueryInterface(&This->IActiveIMMApp_iface, iid, ppvOut);
|
||||||
|
}
|
||||||
|
|
||||||
|
static ULONG WINAPI ActiveIMMMessagePumpOwner_AddRef(IActiveIMMMessagePumpOwner* iface)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
return IActiveIMMApp_AddRef(&This->IActiveIMMApp_iface);
|
||||||
|
}
|
||||||
|
|
||||||
|
static ULONG WINAPI ActiveIMMMessagePumpOwner_Release(IActiveIMMMessagePumpOwner* iface)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
return IActiveIMMApp_Release(&This->IActiveIMMApp_iface);
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ActiveIMMMessagePumpOwner_Start(IActiveIMMMessagePumpOwner* iface)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
FIXME("(%p)->(): stub\n", This);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ActiveIMMMessagePumpOwner_End(IActiveIMMMessagePumpOwner* iface)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
FIXME("(%p)->(): stub\n", This);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ActiveIMMMessagePumpOwner_OnTranslateMessage(IActiveIMMMessagePumpOwner* iface,
|
||||||
|
const MSG *msg)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
FIXME("(%p)->(%p): stub\n", This, msg);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ActiveIMMMessagePumpOwner_Pause(IActiveIMMMessagePumpOwner* iface,
|
||||||
|
DWORD *cookie)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
FIXME("(%p)->(%p): stub\n", This, cookie);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ActiveIMMMessagePumpOwner_Resume(IActiveIMMMessagePumpOwner* iface,
|
||||||
|
DWORD cookie)
|
||||||
|
{
|
||||||
|
ActiveIMMApp *This = impl_from_IActiveIMMMessagePumpOwner(iface);
|
||||||
|
FIXME("(%p)->(%u): stub\n", This, cookie);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static const IActiveIMMMessagePumpOwnerVtbl ActiveIMMMessagePumpOwnerVtbl =
|
||||||
|
{
|
||||||
|
ActiveIMMMessagePumpOwner_QueryInterface,
|
||||||
|
ActiveIMMMessagePumpOwner_AddRef,
|
||||||
|
ActiveIMMMessagePumpOwner_Release,
|
||||||
|
ActiveIMMMessagePumpOwner_Start,
|
||||||
|
ActiveIMMMessagePumpOwner_End,
|
||||||
|
ActiveIMMMessagePumpOwner_OnTranslateMessage,
|
||||||
|
ActiveIMMMessagePumpOwner_Pause,
|
||||||
|
ActiveIMMMessagePumpOwner_Resume,
|
||||||
|
};
|
||||||
|
|
||||||
DECLSPEC_HIDDEN HRESULT ActiveIMMApp_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
|
DECLSPEC_HIDDEN HRESULT ActiveIMMApp_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
|
||||||
{
|
{
|
||||||
ActiveIMMApp *This;
|
ActiveIMMApp *This;
|
||||||
|
@ -823,6 +902,7 @@ DECLSPEC_HIDDEN HRESULT ActiveIMMApp_Constructor(IUnknown *pUnkOuter, IUnknown *
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
||||||
This->IActiveIMMApp_iface.lpVtbl = &ActiveIMMAppVtbl;
|
This->IActiveIMMApp_iface.lpVtbl = &ActiveIMMAppVtbl;
|
||||||
|
This->IActiveIMMMessagePumpOwner_iface.lpVtbl = &ActiveIMMMessagePumpOwnerVtbl;
|
||||||
This->refCount = 1;
|
This->refCount = 1;
|
||||||
|
|
||||||
TRACE("returning %p\n",This);
|
TRACE("returning %p\n",This);
|
||||||
|
|
Loading…
Reference in New Issue