[PATCH 1/3] uiautomationcore: Add UiaLookupId stub.

Andrey Gusev andrey.goosev at gmail.com
Sat Mar 18 18:13:39 CDT 2017


Fixes bug 42665

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
 dlls/uiautomationcore/uia_main.c            | 10 ++++++++++
 dlls/uiautomationcore/uiautomationcore.spec |  2 +-
 include/uiautomationcoreapi.h               | 10 ++++++++++
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/dlls/uiautomationcore/uia_main.c b/dlls/uiautomationcore/uia_main.c
index 994d8e6..a16d3d1 100644
--- a/dlls/uiautomationcore/uia_main.c
+++ b/dlls/uiautomationcore/uia_main.c
@@ -17,6 +17,7 @@
  */
 
 #include "uiautomationcore.h"
+#include "uiautomationcoreapi.h"
 
 #include "wine/debug.h"
 
@@ -45,3 +46,12 @@ BOOL WINAPI UiaClientsAreListening(void)
     FIXME("()\n");
     return FALSE;
 }
+
+/***********************************************************************
+ *          UiaLookupId (uiautomationcore.@)
+ */
+int WINAPI UiaLookupId(enum AutomationIdentifierType type, const GUID *guid)
+{
+    FIXME("(%d, %s) stub!\n", type, debugstr_guid(guid));
+    return 1;
+}
diff --git a/dlls/uiautomationcore/uiautomationcore.spec b/dlls/uiautomationcore/uiautomationcore.spec
index 3026001..39af30a 100644
--- a/dlls/uiautomationcore/uiautomationcore.spec
+++ b/dlls/uiautomationcore/uiautomationcore.spec
@@ -69,7 +69,7 @@
 @ stub UiaHUiaNodeFromVariant
 @ stub UiaHasServerSideProvider
 @ stub UiaHostProviderFromHwnd
-@ stub UiaLookupId
+@ stdcall UiaLookupId(long ptr)
 @ stub UiaNavigate
 @ stub UiaNodeFromFocus
 @ stub UiaNodeFromHandle
diff --git a/include/uiautomationcoreapi.h b/include/uiautomationcoreapi.h
index 340f500..7d9fdba 100644
--- a/include/uiautomationcoreapi.h
+++ b/include/uiautomationcoreapi.h
@@ -39,6 +39,16 @@ DECLARE_HANDLE(HUIAPATTERNOBJECT);
 DECLARE_HANDLE(HUIATEXTRANGE);
 DECLARE_HANDLE(HUIAEVENT);
 
+enum AutomationIdentifierType
+{
+    AutomationIdentifierType_Property,
+    AutomationIdentifierType_Pattern,
+    AutomationIdentifierType_Event,
+    AutomationIdentifierType_ControlType,
+    AutomationIdentifierType_TextAttribute
+};
+
+int WINAPI UiaLookupId(enum AutomationIdentifierType type, const GUID *guid);
 BOOL WINAPI UiaPatternRelease(HUIAPATTERNOBJECT hobj);
 BOOL WINAPI UiaTextRangeRelease(HUIATEXTRANGE hobj);
 
-- 
2.7.4




More information about the wine-patches mailing list