From: Austin English Subject: PATCH] uiautomationcore: add stub dll, with UiaClientsAreListening (try 2) Message-Id: Date: Tue, 15 Nov 2016 23:47:26 -0600 https://bugs.winehq.org/show_bug.cgi?id=41684 Try 2: fix spec file shortly debug channel name -- -Austin GPG: 14FB D7EA A041 937B From 0b64aec80c4e470000da1055b2a3aaf67c99aa35 Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 15 Nov 2016 23:06:30 -0600 Subject: [PATCH] uiautomationcore: add stub dll, with UiaClientsAreListening (try 2) Signed-off-by: Austin English --- configure.ac | 1 + dlls/uiautomationcore/Makefile.in | 4 ++ dlls/uiautomationcore/main.c | 49 +++++++++++++++ dlls/uiautomationcore/uiautomationcore.spec | 93 +++++++++++++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 dlls/uiautomationcore/Makefile.in create mode 100644 dlls/uiautomationcore/main.c create mode 100644 dlls/uiautomationcore/uiautomationcore.spec diff --git a/configure.ac b/configure.ac index 2489ac0..3f0223e 100644 --- a/configure.ac +++ b/configure.ac @@ -3378,6 +3378,7 @@ WINE_CONFIG_TEST(dlls/twain_32/tests) WINE_CONFIG_DLL(typelib.dll16,enable_win16) WINE_CONFIG_DLL(ucrtbase,,[implib]) WINE_CONFIG_TEST(dlls/ucrtbase/tests) +WINE_CONFIG_DLL(uiautomationcore) WINE_CONFIG_DLL(unicows,,[implib]) WINE_CONFIG_DLL(updspapi) WINE_CONFIG_DLL(url,,[implib]) diff --git a/dlls/uiautomationcore/Makefile.in b/dlls/uiautomationcore/Makefile.in new file mode 100644 index 0000000..01a5642 --- /dev/null +++ b/dlls/uiautomationcore/Makefile.in @@ -0,0 +1,4 @@ +MODULE = uiautomationcore.dll + +C_SRCS = \ + main.c diff --git a/dlls/uiautomationcore/main.c b/dlls/uiautomationcore/main.c new file mode 100644 index 0000000..704c965 --- /dev/null +++ b/dlls/uiautomationcore/main.c @@ -0,0 +1,49 @@ +/* + * + * Copyright 2016 Austin English + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(uiautomationcore); + +BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved) +{ + TRACE("(0x%p, %d, %p)\n", dll, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(dll); + break; + default: + break; + } + + return TRUE; +} + +BOOL WINAPI UiaClientsAreListening(void) +{ + FIXME("stub! Returning false\n"); + return FALSE; +} diff --git a/dlls/uiautomationcore/uiautomationcore.spec b/dlls/uiautomationcore/uiautomationcore.spec new file mode 100644 index 0000000..3026001 --- /dev/null +++ b/dlls/uiautomationcore/uiautomationcore.spec @@ -0,0 +1,93 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer +@ stub DockPattern_SetDockPosition +@ stub ExpandCollapsePattern_Collapse +@ stub ExpandCollapsePattern_Expand +@ stub GridPattern_GetItem +@ stub InvokePattern_Invoke +@ stub ItemContainerPattern_FindItemByProperty +@ stub LegacyIAccessiblePattern_DoDefaultAction +@ stub LegacyIAccessiblePattern_GetIAccessible +@ stub LegacyIAccessiblePattern_Select +@ stub LegacyIAccessiblePattern_SetValue +@ stub MultipleViewPattern_GetViewName +@ stub MultipleViewPattern_SetCurrentView +@ stub RangeValuePattern_SetValue +@ stub ScrollItemPattern_ScrollIntoView +@ stub ScrollPattern_Scroll +@ stub ScrollPattern_SetScrollPercent +@ stub SelectionItemPattern_AddToSelection +@ stub SelectionItemPattern_RemoveFromSelection +@ stub SelectionItemPattern_Select +@ stub SynchronizedInputPattern_Cancel +@ stub SynchronizedInputPattern_StartListening +@ stub TextPattern_GetSelection +@ stub TextPattern_GetVisibleRanges +@ stub TextPattern_RangeFromChild +@ stub TextPattern_RangeFromPoint +@ stub TextPattern_get_DocumentRange +@ stub TextPattern_get_SupportedTextSelection +@ stub TextRange_AddToSelection +@ stub TextRange_Clone +@ stub TextRange_Compare +@ stub TextRange_CompareEndpoints +@ stub TextRange_ExpandToEnclosingUnit +@ stub TextRange_FindAttribute +@ stub TextRange_FindText +@ stub TextRange_GetAttributeValue +@ stub TextRange_GetBoundingRectangles +@ stub TextRange_GetChildren +@ stub TextRange_GetEnclosingElement +@ stub TextRange_GetText +@ stub TextRange_Move +@ stub TextRange_MoveEndpointByRange +@ stub TextRange_MoveEndpointByUnit +@ stub TextRange_RemoveFromSelection +@ stub TextRange_ScrollIntoView +@ stub TextRange_Select +@ stub TogglePattern_Toggle +@ stub TransformPattern_Move +@ stub TransformPattern_Resize +@ stub TransformPattern_Rotate +@ stub UiaAddEvent +@ stdcall UiaClientsAreListening() +@ stub UiaEventAddWindow +@ stub UiaEventRemoveWindow +@ stub UiaFind +@ stub UiaGetErrorDescription +@ stub UiaGetPatternProvider +@ stub UiaGetPropertyValue +@ stub UiaGetReservedMixedAttributeValue +@ stub UiaGetReservedNotSupportedValue +@ stub UiaGetRootNode +@ stub UiaGetRuntimeId +@ stub UiaGetUpdatedCache +@ stub UiaHPatternObjectFromVariant +@ stub UiaHTextRangeFromVariant +@ stub UiaHUiaNodeFromVariant +@ stub UiaHasServerSideProvider +@ stub UiaHostProviderFromHwnd +@ stub UiaLookupId +@ stub UiaNavigate +@ stub UiaNodeFromFocus +@ stub UiaNodeFromHandle +@ stub UiaNodeFromPoint +@ stub UiaNodeFromProvider +@ stub UiaNodeRelease +@ stub UiaPatternRelease +@ stub UiaRaiseAsyncContentLoadedEvent +@ stub UiaRaiseAutomationEvent +@ stub UiaRaiseAutomationPropertyChangedEvent +@ stub UiaRaiseStructureChangedEvent +@ stub UiaRegisterProviderCallback +@ stub UiaRemoveEvent +@ stub UiaReturnRawElementProvider +@ stub UiaSetFocus +@ stub UiaTextRangeRelease +@ stub ValuePattern_SetValue +@ stub VirtualizedItemPattern_Realize +@ stub WindowPattern_Close +@ stub WindowPattern_SetWindowVisualState +@ stub WindowPattern_WaitForInputIdle -- 2.7.3 From 5d53c580accbe1472ee00fe8974c1fecbcf07e4b Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 15 Nov 2016 23:06:30 -0600 Subject: [PATCH] uiautomationcore: add stub dll, with UiaClientsAreListening (try 2) Signed-off-by: Austin English --- configure | 2 + configure.ac | 1 + dlls/uiautomationcore/Makefile.in | 4 ++ dlls/uiautomationcore/main.c | 49 +++++++++++++++ dlls/uiautomationcore/uiautomationcore.spec | 93 +++++++++++++++++++++++++++++ 5 files changed, 149 insertions(+) create mode 100644 dlls/uiautomationcore/Makefile.in create mode 100644 dlls/uiautomationcore/main.c create mode 100644 dlls/uiautomationcore/uiautomationcore.spec diff --git a/configure b/configure index f91d64d..af824e4 100755 --- a/configure +++ b/configure @@ -1409,6 +1409,7 @@ enable_tdi_sys enable_traffic enable_twain_32 enable_ucrtbase +enable_uiautomationcore enable_unicows enable_updspapi enable_url @@ -18308,6 +18309,7 @@ wine_fn_config_test dlls/twain_32/tests twain_32_test wine_fn_config_dll typelib.dll16 enable_win16 wine_fn_config_dll ucrtbase enable_ucrtbase implib wine_fn_config_test dlls/ucrtbase/tests ucrtbase_test +wine_fn_config_dll uiautomationcore enable_uiautomationcore wine_fn_config_dll unicows enable_unicows implib wine_fn_config_dll updspapi enable_updspapi wine_fn_config_dll url enable_url implib diff --git a/configure.ac b/configure.ac index 2489ac0..3f0223e 100644 --- a/configure.ac +++ b/configure.ac @@ -3378,6 +3378,7 @@ WINE_CONFIG_TEST(dlls/twain_32/tests) WINE_CONFIG_DLL(typelib.dll16,enable_win16) WINE_CONFIG_DLL(ucrtbase,,[implib]) WINE_CONFIG_TEST(dlls/ucrtbase/tests) +WINE_CONFIG_DLL(uiautomationcore) WINE_CONFIG_DLL(unicows,,[implib]) WINE_CONFIG_DLL(updspapi) WINE_CONFIG_DLL(url,,[implib]) diff --git a/dlls/uiautomationcore/Makefile.in b/dlls/uiautomationcore/Makefile.in new file mode 100644 index 0000000..01a5642 --- /dev/null +++ b/dlls/uiautomationcore/Makefile.in @@ -0,0 +1,4 @@ +MODULE = uiautomationcore.dll + +C_SRCS = \ + main.c diff --git a/dlls/uiautomationcore/main.c b/dlls/uiautomationcore/main.c new file mode 100644 index 0000000..0093bb1 --- /dev/null +++ b/dlls/uiautomationcore/main.c @@ -0,0 +1,49 @@ +/* + * + * Copyright 2016 Austin English + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(uiac); + +BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved) +{ + TRACE("(0x%p, %d, %p)\n", dll, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(dll); + break; + default: + break; + } + + return TRUE; +} + +BOOL WINAPI UiaClientsAreListening(void) +{ + FIXME("stub! Returning false\n"); + return FALSE; +} diff --git a/dlls/uiautomationcore/uiautomationcore.spec b/dlls/uiautomationcore/uiautomationcore.spec new file mode 100644 index 0000000..3026001 --- /dev/null +++ b/dlls/uiautomationcore/uiautomationcore.spec @@ -0,0 +1,93 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer +@ stub DockPattern_SetDockPosition +@ stub ExpandCollapsePattern_Collapse +@ stub ExpandCollapsePattern_Expand +@ stub GridPattern_GetItem +@ stub InvokePattern_Invoke +@ stub ItemContainerPattern_FindItemByProperty +@ stub LegacyIAccessiblePattern_DoDefaultAction +@ stub LegacyIAccessiblePattern_GetIAccessible +@ stub LegacyIAccessiblePattern_Select +@ stub LegacyIAccessiblePattern_SetValue +@ stub MultipleViewPattern_GetViewName +@ stub MultipleViewPattern_SetCurrentView +@ stub RangeValuePattern_SetValue +@ stub ScrollItemPattern_ScrollIntoView +@ stub ScrollPattern_Scroll +@ stub ScrollPattern_SetScrollPercent +@ stub SelectionItemPattern_AddToSelection +@ stub SelectionItemPattern_RemoveFromSelection +@ stub SelectionItemPattern_Select +@ stub SynchronizedInputPattern_Cancel +@ stub SynchronizedInputPattern_StartListening +@ stub TextPattern_GetSelection +@ stub TextPattern_GetVisibleRanges +@ stub TextPattern_RangeFromChild +@ stub TextPattern_RangeFromPoint +@ stub TextPattern_get_DocumentRange +@ stub TextPattern_get_SupportedTextSelection +@ stub TextRange_AddToSelection +@ stub TextRange_Clone +@ stub TextRange_Compare +@ stub TextRange_CompareEndpoints +@ stub TextRange_ExpandToEnclosingUnit +@ stub TextRange_FindAttribute +@ stub TextRange_FindText +@ stub TextRange_GetAttributeValue +@ stub TextRange_GetBoundingRectangles +@ stub TextRange_GetChildren +@ stub TextRange_GetEnclosingElement +@ stub TextRange_GetText +@ stub TextRange_Move +@ stub TextRange_MoveEndpointByRange +@ stub TextRange_MoveEndpointByUnit +@ stub TextRange_RemoveFromSelection +@ stub TextRange_ScrollIntoView +@ stub TextRange_Select +@ stub TogglePattern_Toggle +@ stub TransformPattern_Move +@ stub TransformPattern_Resize +@ stub TransformPattern_Rotate +@ stub UiaAddEvent +@ stdcall UiaClientsAreListening() +@ stub UiaEventAddWindow +@ stub UiaEventRemoveWindow +@ stub UiaFind +@ stub UiaGetErrorDescription +@ stub UiaGetPatternProvider +@ stub UiaGetPropertyValue +@ stub UiaGetReservedMixedAttributeValue +@ stub UiaGetReservedNotSupportedValue +@ stub UiaGetRootNode +@ stub UiaGetRuntimeId +@ stub UiaGetUpdatedCache +@ stub UiaHPatternObjectFromVariant +@ stub UiaHTextRangeFromVariant +@ stub UiaHUiaNodeFromVariant +@ stub UiaHasServerSideProvider +@ stub UiaHostProviderFromHwnd +@ stub UiaLookupId +@ stub UiaNavigate +@ stub UiaNodeFromFocus +@ stub UiaNodeFromHandle +@ stub UiaNodeFromPoint +@ stub UiaNodeFromProvider +@ stub UiaNodeRelease +@ stub UiaPatternRelease +@ stub UiaRaiseAsyncContentLoadedEvent +@ stub UiaRaiseAutomationEvent +@ stub UiaRaiseAutomationPropertyChangedEvent +@ stub UiaRaiseStructureChangedEvent +@ stub UiaRegisterProviderCallback +@ stub UiaRemoveEvent +@ stub UiaReturnRawElementProvider +@ stub UiaSetFocus +@ stub UiaTextRangeRelease +@ stub ValuePattern_SetValue +@ stub VirtualizedItemPattern_Realize +@ stub WindowPattern_Close +@ stub WindowPattern_SetWindowVisualState +@ stub WindowPattern_WaitForInputIdle -- 2.7.3