uiautomationcore: Return TRUE from UiaClientsAreListening().

This function always returns TRUE on Windows 7 and above, and now that we
have stubs for all the event raising functions there should be no harm
in doing the same.

Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
This commit is contained in:
Connor McAdams 2023-10-30 08:44:31 -04:00 committed by Alexandre Julliard
parent 0cbca47dae
commit d81256e7b6
3 changed files with 13 additions and 2 deletions

View file

@ -18607,6 +18607,15 @@ static void test_uia_event_ProxyProviderWinEventHandler(void)
UiaRegisterProviderCallback(NULL); UiaRegisterProviderCallback(NULL);
} }
static void test_UiaClientsAreListening(void)
{
BOOL ret;
/* Always returns TRUE on Windows 7 and above. */
ret = UiaClientsAreListening();
ok(!!ret, "ret != TRUE\n");
}
/* /*
* Once a process returns a UI Automation provider with * Once a process returns a UI Automation provider with
* UiaReturnRawElementProvider it ends up in an implicit MTA until exit. This * UiaReturnRawElementProvider it ends up in an implicit MTA until exit. This
@ -18663,6 +18672,7 @@ START_TEST(uiautomation)
return; return;
} }
test_UiaClientsAreListening();
test_UiaHostProviderFromHwnd(); test_UiaHostProviderFromHwnd();
test_uia_reserved_value_ifaces(); test_uia_reserved_value_ifaces();
test_UiaLookupId(); test_UiaLookupId();

View file

@ -264,8 +264,8 @@ static const IRawElementProviderSimpleVtbl hwnd_host_provider_vtbl = {
*/ */
BOOL WINAPI UiaClientsAreListening(void) BOOL WINAPI UiaClientsAreListening(void)
{ {
FIXME("()\n"); TRACE("()\n");
return FALSE; return TRUE;
} }
/*********************************************************************** /***********************************************************************

View file

@ -559,6 +559,7 @@ HRESULT WINAPI UiaRemoveEvent(HUIAEVENT huiaevent);
HRESULT WINAPI UiaEventAddWindow(HUIAEVENT huiaevent, HWND hwnd); HRESULT WINAPI UiaEventAddWindow(HUIAEVENT huiaevent, HWND hwnd);
HRESULT WINAPI UiaEventRemoveWindow(HUIAEVENT huiaevent, HWND hwnd); HRESULT WINAPI UiaEventRemoveWindow(HUIAEVENT huiaevent, HWND hwnd);
BOOL WINAPI UiaHasServerSideProvider(HWND hwnd); BOOL WINAPI UiaHasServerSideProvider(HWND hwnd);
BOOL WINAPI UiaClientsAreListening(void);
#ifdef __cplusplus #ifdef __cplusplus
} }