"Fossies" - the Fresh Open Source Software Archive

Member "wine-6.0.1/dlls/uiautomationcore/uia_main.c" (7 Jun 2021, 3210 Bytes) of package /linux/misc/wine-6.0.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "uia_main.c" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 6.0_vs_6.0.1.

    1 /*
    2  * Copyright 2017 Jacek Caban for CodeWeavers
    3  *
    4  * This library is free software; you can redistribute it and/or
    5  * modify it under the terms of the GNU Lesser General Public
    6  * License as published by the Free Software Foundation; either
    7  * version 2.1 of the License, or (at your option) any later version.
    8  *
    9  * This library is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   12  * Lesser General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU Lesser General Public
   15  * License along with this library; if not, write to the Free Software
   16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
   17  */
   18 
   19 #include "uiautomation.h"
   20 
   21 #include "wine/debug.h"
   22 
   23 WINE_DEFAULT_DEBUG_CHANNEL(uiautomation);
   24 
   25 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, void *lpv)
   26 {
   27     TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv);
   28 
   29     switch(fdwReason) {
   30     case DLL_WINE_PREATTACH:
   31         return FALSE;  /* prefer native version */
   32     case DLL_PROCESS_ATTACH:
   33         DisableThreadLibraryCalls(hInstDLL);
   34         break;
   35     }
   36 
   37     return TRUE;
   38 }
   39 
   40 /***********************************************************************
   41  *          UiaClientsAreListening (uiautomationcore.@)
   42  */
   43 BOOL WINAPI UiaClientsAreListening(void)
   44 {
   45     FIXME("()\n");
   46     return FALSE;
   47 }
   48 
   49 /***********************************************************************
   50  *          UiaGetReservedMixedAttributeValue (uiautomationcore.@)
   51  */
   52 HRESULT WINAPI UiaGetReservedMixedAttributeValue(IUnknown **value)
   53 {
   54     FIXME("(%p) stub!\n", value);
   55     *value = NULL;
   56     return S_OK;
   57 }
   58 
   59 /***********************************************************************
   60  *          UiaGetReservedNotSupportedValue (uiautomationcore.@)
   61  */
   62 HRESULT WINAPI UiaGetReservedNotSupportedValue(IUnknown **value)
   63 {
   64     FIXME("(%p) stub!\n", value);
   65     *value = NULL;
   66     return S_OK;
   67 }
   68 
   69 /***********************************************************************
   70  *          UiaLookupId (uiautomationcore.@)
   71  */
   72 int WINAPI UiaLookupId(enum AutomationIdentifierType type, const GUID *guid)
   73 {
   74     FIXME("(%d, %s) stub!\n", type, debugstr_guid(guid));
   75     return 1;
   76 }
   77 
   78 /***********************************************************************
   79  *          UiaReturnRawElementProvider (uiautomationcore.@)
   80  */
   81 LRESULT WINAPI UiaReturnRawElementProvider(HWND hwnd, WPARAM wParam,
   82         LPARAM lParam, IRawElementProviderSimple *elprov)
   83 {
   84     FIXME("(%p, %lx, %lx, %p) stub!\n", hwnd, wParam, lParam, elprov);
   85     return 0;
   86 }
   87 
   88 /***********************************************************************
   89  *          UiaRaiseAutomationEvent (uiautomationcore.@)
   90  */
   91 HRESULT WINAPI UiaRaiseAutomationEvent(IRawElementProviderSimple *provider, EVENTID id)
   92 {
   93     FIXME("(%p, %d): stub\n", provider, id);
   94     return S_OK;
   95 }
   96 
   97 void WINAPI UiaRegisterProviderCallback(UiaProviderCallback *callback)
   98 {
   99     FIXME("(%p): stub\n", callback);
  100 }
  101 
  102 HRESULT WINAPI UiaHostProviderFromHwnd(HWND hwnd, IRawElementProviderSimple **provider)
  103 {
  104     FIXME("(%p, %p): stub\n", hwnd, provider);
  105     return E_NOTIMPL;
  106 }