1 | /*
|
---|
2 | * Copyright 2012 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 | #define DO_NO_IMPORTS
|
---|
20 | import "oaidl.idl";
|
---|
21 | import "oleacc.idl";
|
---|
22 |
|
---|
23 | enum ProviderOptions {
|
---|
24 | ProviderOptions_ClientSideProvider = 0x0001,
|
---|
25 | ProviderOptions_ServerSideProvider = 0x0002,
|
---|
26 | ProviderOptions_NonClientAreaProvider = 0x0004,
|
---|
27 | ProviderOptions_OverrideProvider = 0x0008,
|
---|
28 | ProviderOptions_ProviderOwnsSetFocus = 0x0010,
|
---|
29 | ProviderOptions_UseComThreading = 0x0020
|
---|
30 | };
|
---|
31 |
|
---|
32 | typedef int PROPERTYID;
|
---|
33 | typedef int PATTERNID;
|
---|
34 | typedef int EVENTID;
|
---|
35 | typedef int TEXTATTRIBUTEID;
|
---|
36 | typedef int CONTROLTYPEID;
|
---|
37 |
|
---|
38 | [
|
---|
39 | version(1.0),
|
---|
40 | uuid(930299ce-9965-4dec-b0f4-a54848d4b667),
|
---|
41 | lcid(0),
|
---|
42 | hidden
|
---|
43 | ]
|
---|
44 | library UIA
|
---|
45 | {
|
---|
46 | importlib("stdole2.tlb");
|
---|
47 |
|
---|
48 | [
|
---|
49 | object,
|
---|
50 | uuid(d6dd68d1-86fd-4332-8666-9abedea2d24c),
|
---|
51 | pointer_default(unique)
|
---|
52 | ]
|
---|
53 | interface IRawElementProviderSimple : IUnknown
|
---|
54 | {
|
---|
55 | [propget] HRESULT ProviderOptions([out, retval] enum ProviderOptions *pRetVal);
|
---|
56 |
|
---|
57 | HRESULT GetPatternProvider(
|
---|
58 | [in] PATTERNID patternId,
|
---|
59 | [out, retval] IUnknown **pRetVal);
|
---|
60 |
|
---|
61 | HRESULT GetPropertyValue(
|
---|
62 | [in] PROPERTYID propertyId,
|
---|
63 | [out, retval] VARIANT *pRetVal);
|
---|
64 |
|
---|
65 | [propget] HRESULT HostRawElementProvider([out, retval] IRawElementProviderSimple **pRetVal);
|
---|
66 | }
|
---|
67 |
|
---|
68 | [
|
---|
69 | object,
|
---|
70 | uuid(f8b80ada-2c44-48d0-89be-5ff23c9cd875),
|
---|
71 | pointer_default(unique),
|
---|
72 | oleautomation
|
---|
73 | ]
|
---|
74 | interface IAccessibleEx : IUnknown
|
---|
75 | {
|
---|
76 | HRESULT GetObjectForChild(
|
---|
77 | [in] long idChild,
|
---|
78 | [out, retval] IAccessibleEx **pRetVal);
|
---|
79 |
|
---|
80 | HRESULT GetIAccessiblePair(
|
---|
81 | [out] IAccessible **ppAcc,
|
---|
82 | [out] long *pidChild);
|
---|
83 |
|
---|
84 | HRESULT GetRuntimeId(
|
---|
85 | [out, retval] SAFEARRAY(int) *pRetVal);
|
---|
86 |
|
---|
87 | HRESULT ConvertReturnedElement(
|
---|
88 | [in] IRawElementProviderSimple *pIn,
|
---|
89 | [out] IAccessibleEx **ppRetValOut);
|
---|
90 | }
|
---|
91 | }
|
---|