Thomas Faber : msimtf: Add stub implementation for IActiveIMMMessagePumpOwner.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 25 08:19:40 CDT 2015
Module: wine
Branch: master
Commit: c4be28ed2605140d3cd9f3908a0f4535ed51c1d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c4be28ed2605140d3cd9f3908a0f4535ed51c1d0
Author: Thomas Faber <thomas.faber at reactos.org>
Date: Tue Jun 23 15:38:16 2015 +0200
msimtf: Add stub implementation for IActiveIMMMessagePumpOwner.
---
dlls/msimtf/activeimmapp.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/dlls/msimtf/activeimmapp.c b/dlls/msimtf/activeimmapp.c
index a9c259a..5749735 100644
--- a/dlls/msimtf/activeimmapp.c
+++ b/dlls/msimtf/activeimmapp.c
@@ -42,6 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msimtf);
typedef struct tagActiveIMMApp {
IActiveIMMApp IActiveIMMApp_iface;
+ IActiveIMMMessagePumpOwner IActiveIMMMessagePumpOwner_iface;
LONG refCount;
} ActiveIMMApp;
@@ -66,6 +67,10 @@ static HRESULT WINAPI ActiveIMMApp_QueryInterface (IActiveIMMApp* iface,
{
*ppvOut = This;
}
+ else if (IsEqualIID(iid, &IID_IActiveIMMMessagePumpOwner))
+ {
+ *ppvOut = &This->IActiveIMMMessagePumpOwner_iface;
+ }
if (*ppvOut)
{
@@ -812,6 +817,80 @@ static const IActiveIMMAppVtbl ActiveIMMAppVtbl =
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)
{
ActiveIMMApp *This;
@@ -823,6 +902,7 @@ DECLSPEC_HIDDEN HRESULT ActiveIMMApp_Constructor(IUnknown *pUnkOuter, IUnknown *
return E_OUTOFMEMORY;
This->IActiveIMMApp_iface.lpVtbl = &ActiveIMMAppVtbl;
+ This->IActiveIMMMessagePumpOwner_iface.lpVtbl = &ActiveIMMMessagePumpOwnerVtbl;
This->refCount = 1;
TRACE("returning %p\n",This);
More information about the wine-cvs
mailing list