From c9fcbf14ae25c241ac470c0df4d129233263cb2c Mon Sep 17 00:00:00 2001 From: Andrey Gusev Date: Mon, 20 Mar 2017 15:15:07 +0200 Subject: [PATCH] uiautomationcore: Add UiaLookupId stub. Signed-off-by: Andrey Gusev Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/uiautomationcore/uia_main.c | 11 ++++++++++- dlls/uiautomationcore/uiautomationcore.spec | 2 +- include/uiautomationcoreapi.h | 10 ++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/dlls/uiautomationcore/uia_main.c b/dlls/uiautomationcore/uia_main.c index 994d8e6080..ceb2d1d263 100644 --- a/dlls/uiautomationcore/uia_main.c +++ b/dlls/uiautomationcore/uia_main.c @@ -16,7 +16,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "uiautomationcore.h" +#include "uiautomation.h" #include "wine/debug.h" @@ -45,3 +45,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 3026001b6b..39af30a540 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 340f5005db..7d9fdbaf17 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);