Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/tests/uiautomation.c:
+ HRESULT hr; + VARIANT v; + + CoInitializeEx(NULL, COINIT_MULTITHREADED); + + /* + * Tree looks like: + * -Provider + * ---Provider_child + * -----Provider_child_child + * -----Provider_child_child2 + * ---Provider_child2 + * -----Provider_child2_child + * -------Provider_child2_child_child + */ + set_provider_nav_ifaces(&Provider, NULL, NULL, NULL, NULL, &Provider_child, &Provider_child2); Is there some way you could have in the code only a description of the tree? It's a bit much specifying every individual link, and leaves open the possibility of accidental inconsistencies.
For example, you could write an "add to parent" function that sets these links automatically. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1249#note_13527