From aca0a27cedfde05414112a505f727df2e36c95b6 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 22 Feb 2017 19:05:33 +0100 Subject: [PATCH] uiautomationcore: Added stub dll. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- configure | 2 + configure.ac | 1 + dlls/uiautomationcore/Makefile.in | 4 + dlls/uiautomationcore/uia_main.c | 38 +++++++++ dlls/uiautomationcore/uiautomationcore.spec | 93 +++++++++++++++++++++ 5 files changed, 138 insertions(+) create mode 100644 dlls/uiautomationcore/Makefile.in create mode 100644 dlls/uiautomationcore/uia_main.c create mode 100644 dlls/uiautomationcore/uiautomationcore.spec diff --git a/configure b/configure index 255dcdcc26d..a64a7661d02 100755 --- a/configure +++ b/configure @@ -1420,6 +1420,7 @@ enable_tdi_sys enable_traffic enable_twain_32 enable_ucrtbase +enable_uiautomationcore enable_unicows enable_updspapi enable_url @@ -18345,6 +18346,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 367851dd092..cdef9e6a891 100644 --- a/configure.ac +++ b/configure.ac @@ -3402,6 +3402,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 00000000000..78d6254a015 --- /dev/null +++ b/dlls/uiautomationcore/Makefile.in @@ -0,0 +1,4 @@ +MODULE = uiautomationcore.dll + +C_SRCS = \ + uia_main.c diff --git a/dlls/uiautomationcore/uia_main.c b/dlls/uiautomationcore/uia_main.c new file mode 100644 index 00000000000..6e6180ee9d2 --- /dev/null +++ b/dlls/uiautomationcore/uia_main.c @@ -0,0 +1,38 @@ +/* + * Copyright 2017 Jacek Caban for CodeWeavers + * + * 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 "uiautomationcore.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(uiautomation); + +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, void *lpv) +{ + TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv); + + switch(fdwReason) { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hInstDLL); + break; + } + + return TRUE; +} diff --git a/dlls/uiautomationcore/uiautomationcore.spec b/dlls/uiautomationcore/uiautomationcore.spec new file mode 100644 index 00000000000..3df7425af1a --- /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 +@ stub 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