inkobj: Add stubs for InkCollector _get_Enabled and _put_Enabled

John Klehm xixsimplicityxix at gmail.com
Fri Aug 24 03:30:51 CDT 2007


Yet more stubs to keep EventSink.exe from crashing.  With these two it
stops crashing and gives much love.  Of course on an unmodified
EventSink.exe it will exit because I don't have IConnectionPoint
implemented yet (it will exit nicely though).

However you can run EventSinkMin.exe which has the calls to
IConnectionPoint removed. You can download it at
http://klehm.net/EventSinkMin.exe
or you can compile it yourself from the tablet pc sdk by commenting
out the Advise api call in the EventSink sample program.

Hope that sounds fun because it took a bit to get here =P

Regards,
John Klehm
-------------- next part --------------
From 0a22e79d8b9f8abdda814fc746322f7b36e767e4 Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Fri, 24 Aug 2007 02:45:19 -0500
Subject: inkobj: Add stubs for InkCollector _get_Enabled and _put_Enabled

---
 dlls/inkobj/inkcollector.c |   19 ++++++++++++++++++-
 include/msinkaut.idl       |    4 ++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/dlls/inkobj/inkcollector.c b/dlls/inkobj/inkcollector.c
index f47c07d..48f3246 100644
--- a/dlls/inkobj/inkcollector.c
+++ b/dlls/inkobj/inkcollector.c
@@ -115,6 +115,21 @@ static HRESULT WINAPI InkCollector_put_hWnd(
     return S_OK;
 }
 
+static HRESULT WINAPI InkCollector_get_Enabled(
+    IInkCollector* This, VARIANT_BOOL* Collecting)
+{
+    FIXME("stub!\n");
+    return S_OK;
+}
+
+static HRESULT WINAPI InkCollector_put_Enabled(
+    IInkCollector* This, VARIANT_BOOL Collecting)
+{
+    FIXME("stub!\n");
+    return S_OK;
+}
+
+
 static const IInkCollectorVtbl InkCollectorVtbl =
 {
     InkCollector_QueryInterface,
@@ -125,7 +140,9 @@ static const IInkCollectorVtbl InkCollectorVtbl =
     InkCollector_GetIDsOfNames,
     InkCollector_Invoke,
     InkCollector_get_hWnd,
-    InkCollector_put_hWnd
+    InkCollector_put_hWnd,
+    InkCollector_get_Enabled,
+    InkCollector_put_Enabled
 };
 
 HRESULT InkCollector_Create(IUnknown* pUnkOuter, REFIID riid, void** ppvObject)
diff --git a/include/msinkaut.idl b/include/msinkaut.idl
index 323f2a6..8c1a964 100644
--- a/include/msinkaut.idl
+++ b/include/msinkaut.idl
@@ -38,6 +38,10 @@ library MSINKAUTLib
         [id(0x00000002), propget]    HRESULT hWnd(
             [out, retval] HWND* CurrentWindow);
         [id(0x00000002), propput]    HRESULT hWnd([in] HWND CurrentWindow);
+        [id(0x00000001), propget]    HRESULT Enabled(
+            [out, retval] VARIANT_BOOL* Collecting);
+        [id(0x00000001), propput]    HRESULT Enabled(
+            [in] VARIANT_BOOL Collecting);
     };
 
     [
-- 
1.5.1.6



More information about the wine-patches mailing list