|
| 1 | +/* |
| 2 | + * Copyright 2022 Connor McAdams 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 | +#pragma makedep regtypelib |
| 20 | + |
| 21 | +import "oaidl.idl"; |
| 22 | +import "uiautomationcore.idl"; |
| 23 | + |
| 24 | +struct uia_prop_info { |
| 25 | + const GUID *guid; |
| 26 | + int prop_id; |
| 27 | + int prop_type; |
| 28 | + int type; |
| 29 | + int pattern_id; |
| 30 | +}; |
| 31 | + |
| 32 | +struct uia_event_info { |
| 33 | + const GUID *guid; |
| 34 | + int event_id; |
| 35 | + int event_arg_type; |
| 36 | +}; |
| 37 | + |
| 38 | +struct uia_pattern_info { |
| 39 | + const GUID *guid; |
| 40 | + int pattern_id; |
| 41 | + const GUID *pattern_iid; |
| 42 | +}; |
| 43 | + |
| 44 | +struct uia_control_type_info { |
| 45 | + const GUID *guid; |
| 46 | + int control_type_id; |
| 47 | +}; |
| 48 | + |
| 49 | +[ |
| 50 | + version(1.0), |
| 51 | + uuid(8a9ca8eb-856b-43d9-abd7-4a590054064f), |
| 52 | + id(1), |
| 53 | +] |
| 54 | +library UIA_wine_private |
| 55 | +{ |
| 56 | + importlib("stdole2.tlb"); |
| 57 | + |
| 58 | + [ |
| 59 | + object, |
| 60 | + uuid(9a754e12-e570-49ab-b223-6f6871007d28), |
| 61 | + pointer_default(unique), |
| 62 | + ] |
| 63 | + interface IWineUiaEventAdviser : IUnknown |
| 64 | + { |
| 65 | + HRESULT advise([in]BOOL advise_added, [in]LONG_PTR huiaevent); |
| 66 | + } |
| 67 | + |
| 68 | + [ |
| 69 | + object, |
| 70 | + uuid(5e60162c-ab0e-4e22-a61d-3a3acd442aba), |
| 71 | + pointer_default(unique), |
| 72 | + oleautomation, |
| 73 | + ] |
| 74 | + interface IWineUiaEvent : IUnknown |
| 75 | + { |
| 76 | + HRESULT advise_events([in]BOOL advise_added, [in]long adviser_start_idx); |
| 77 | + HRESULT set_event_data([in]const GUID *event_guid, [in]long scope, [in]VARIANT runtime_id, |
| 78 | + [in]IWineUiaEvent *event_iface); |
| 79 | + HRESULT raise_event([in]VARIANT in_node, [in]VARIANT in_nav_start_node); |
| 80 | + } |
| 81 | + |
| 82 | + [ |
| 83 | + object, |
| 84 | + uuid(57865755-6c05-4522-98df-4ca658b768ef), |
| 85 | + pointer_default(unique), |
| 86 | + oleautomation, |
| 87 | + ] |
| 88 | + interface IWineUiaProvider : IUnknown |
| 89 | + { |
| 90 | + HRESULT get_prop_val([in]const struct uia_prop_info *prop_info, [out, retval]VARIANT *ret_val); |
| 91 | + HRESULT get_prov_opts([out, retval]int *out_opts); |
| 92 | + HRESULT has_parent([out, retval]BOOL *out_val); |
| 93 | + HRESULT navigate([in]int nav_dir, [out, retval]VARIANT *ret_val); |
| 94 | + HRESULT get_focus([in]long flags, [out, retval]VARIANT *ret_val); |
| 95 | + HRESULT attach_event([in]LONG_PTR huiaevent); |
| 96 | + HRESULT respond_to_win_event([in]DWORD win_event, [in]ULONG hwnd, [in]LONG obj_id, [in]LONG child_id, |
| 97 | + [in]IProxyProviderWinEventSink *sink); |
| 98 | + HRESULT create_node_from_prov([in]long flags, [out, retval]VARIANT *ret_val); |
| 99 | + } |
| 100 | + |
| 101 | + [ |
| 102 | + object, |
| 103 | + uuid(bccb6799-d831-4057-bd50-6425823ff1a3), |
| 104 | + pointer_default(unique), |
| 105 | + oleautomation, |
| 106 | + ] |
| 107 | + interface IWineUiaNode : IUnknown |
| 108 | + { |
| 109 | + HRESULT get_provider([in]int idx, [out, retval]IWineUiaProvider **out_prov); |
| 110 | + HRESULT get_prop_val([in]const GUID *prop_guid, [out, retval]VARIANT *ret_val); |
| 111 | + HRESULT disconnect(); |
| 112 | + HRESULT get_hwnd([out, retval]ULONG *out_hwnd); |
| 113 | + HRESULT attach_event([in]long proc_id, [in]long event_cookie, [out, retval]IWineUiaEvent **ret_event); |
| 114 | + } |
| 115 | +} |
0 commit comments