winegstreamer: Allow setting the stop position to the stream duration.
[wine.git] / include / oleacc.idl
blob7cf0fa82db46353a335433b406c519e7027ccf10
1 /*
2 * Copyright (C) 2005 Dmitry Timoshkov
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.
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.
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
19 #if 0
20 #pragma makedep install
21 #pragma makedep typelib
22 #pragma makedep header
23 #endif
25 import "oaidl.idl";
27 #ifndef __WIDL__
28 #define threading(model)
29 #endif
31 cpp_quote("#define NAVDIR_MIN 0")
32 cpp_quote("#define NAVDIR_UP 1")
33 cpp_quote("#define NAVDIR_DOWN 2")
34 cpp_quote("#define NAVDIR_LEFT 3")
35 cpp_quote("#define NAVDIR_RIGHT 4")
36 cpp_quote("#define NAVDIR_NEXT 5")
37 cpp_quote("#define NAVDIR_PREVIOUS 6")
38 cpp_quote("#define NAVDIR_FIRSTCHILD 7")
39 cpp_quote("#define NAVDIR_LASTCHILD 8")
40 cpp_quote("#define NAVDIR_MAX 9")
42 cpp_quote("#define ROLE_SYSTEM_TITLEBAR 1")
43 cpp_quote("#define ROLE_SYSTEM_MENUBAR 2")
44 cpp_quote("#define ROLE_SYSTEM_SCROLLBAR 3")
45 cpp_quote("#define ROLE_SYSTEM_GRIP 4")
46 cpp_quote("#define ROLE_SYSTEM_SOUND 5")
47 cpp_quote("#define ROLE_SYSTEM_CURSOR 6")
48 cpp_quote("#define ROLE_SYSTEM_CARET 7")
49 cpp_quote("#define ROLE_SYSTEM_ALERT 8")
50 cpp_quote("#define ROLE_SYSTEM_WINDOW 9")
51 cpp_quote("#define ROLE_SYSTEM_CLIENT 10")
52 cpp_quote("#define ROLE_SYSTEM_MENUPOPUP 11")
53 cpp_quote("#define ROLE_SYSTEM_MENUITEM 12")
54 cpp_quote("#define ROLE_SYSTEM_TOOLTIP 13")
55 cpp_quote("#define ROLE_SYSTEM_APPLICATION 14")
56 cpp_quote("#define ROLE_SYSTEM_DOCUMENT 15")
57 cpp_quote("#define ROLE_SYSTEM_PANE 16")
58 cpp_quote("#define ROLE_SYSTEM_CHART 17")
59 cpp_quote("#define ROLE_SYSTEM_DIALOG 18")
60 cpp_quote("#define ROLE_SYSTEM_BORDER 19")
61 cpp_quote("#define ROLE_SYSTEM_GROUPING 20")
62 cpp_quote("#define ROLE_SYSTEM_SEPARATOR 21")
63 cpp_quote("#define ROLE_SYSTEM_TOOLBAR 22")
64 cpp_quote("#define ROLE_SYSTEM_STATUSBAR 23")
65 cpp_quote("#define ROLE_SYSTEM_TABLE 24")
66 cpp_quote("#define ROLE_SYSTEM_COLUMNHEADER 25")
67 cpp_quote("#define ROLE_SYSTEM_ROWHEADER 26")
68 cpp_quote("#define ROLE_SYSTEM_COLUMN 27")
69 cpp_quote("#define ROLE_SYSTEM_ROW 28")
70 cpp_quote("#define ROLE_SYSTEM_CELL 29")
71 cpp_quote("#define ROLE_SYSTEM_LINK 30")
72 cpp_quote("#define ROLE_SYSTEM_HELPBALLOON 31")
73 cpp_quote("#define ROLE_SYSTEM_CHARACTER 32")
74 cpp_quote("#define ROLE_SYSTEM_LIST 33")
75 cpp_quote("#define ROLE_SYSTEM_LISTITEM 34")
76 cpp_quote("#define ROLE_SYSTEM_OUTLINE 35")
77 cpp_quote("#define ROLE_SYSTEM_OUTLINEITEM 36")
78 cpp_quote("#define ROLE_SYSTEM_PAGETAB 37")
79 cpp_quote("#define ROLE_SYSTEM_PROPERTYPAGE 38")
80 cpp_quote("#define ROLE_SYSTEM_INDICATOR 39")
81 cpp_quote("#define ROLE_SYSTEM_GRAPHIC 40")
82 cpp_quote("#define ROLE_SYSTEM_STATICTEXT 41")
83 cpp_quote("#define ROLE_SYSTEM_TEXT 42")
84 cpp_quote("#define ROLE_SYSTEM_PUSHBUTTON 43")
85 cpp_quote("#define ROLE_SYSTEM_CHECKBUTTON 44")
86 cpp_quote("#define ROLE_SYSTEM_RADIOBUTTON 45")
87 cpp_quote("#define ROLE_SYSTEM_COMBOBOX 46")
88 cpp_quote("#define ROLE_SYSTEM_DROPLIST 47")
89 cpp_quote("#define ROLE_SYSTEM_PROGRESSBAR 48")
90 cpp_quote("#define ROLE_SYSTEM_DIAL 49")
91 cpp_quote("#define ROLE_SYSTEM_HOTKEYFIELD 50")
92 cpp_quote("#define ROLE_SYSTEM_SLIDER 51")
93 cpp_quote("#define ROLE_SYSTEM_SPINBUTTON 52")
94 cpp_quote("#define ROLE_SYSTEM_DIAGRAM 53")
95 cpp_quote("#define ROLE_SYSTEM_ANIMATION 54")
96 cpp_quote("#define ROLE_SYSTEM_EQUATION 55")
97 cpp_quote("#define ROLE_SYSTEM_BUTTONDROPDOWN 56")
98 cpp_quote("#define ROLE_SYSTEM_BUTTONMENU 57")
99 cpp_quote("#define ROLE_SYSTEM_BUTTONDROPDOWNGRID 58")
100 cpp_quote("#define ROLE_SYSTEM_WHITESPACE 59")
101 cpp_quote("#define ROLE_SYSTEM_PAGETABLIST 60")
102 cpp_quote("#define ROLE_SYSTEM_CLOCK 61")
103 cpp_quote("#define ROLE_SYSTEM_SPLITBUTTON 62")
104 cpp_quote("#define ROLE_SYSTEM_IPADDRESS 63")
105 cpp_quote("#define ROLE_SYSTEM_OUTLINEBUTTON 64")
107 cpp_quote("#define SELFLAG_NONE 0x00")
108 cpp_quote("#define SELFLAG_TAKEFOCUS 0x01")
109 cpp_quote("#define SELFLAG_TAKESELECTION 0x02")
110 cpp_quote("#define SELFLAG_EXTENDSELECTION 0x04")
111 cpp_quote("#define SELFLAG_ADDSELECTION 0x08")
112 cpp_quote("#define SELFLAG_REMOVESELECTION 0x10")
113 cpp_quote("#define SELFLAG_VALID 0x1f")
115 cpp_quote("#ifndef STATE_SYSTEM_UNAVAILABLE")
116 cpp_quote("#define STATE_SYSTEM_NORMAL 0x00000000")
117 cpp_quote("#define STATE_SYSTEM_UNAVAILABLE 0x00000001")
118 cpp_quote("#define STATE_SYSTEM_SELECTED 0x00000002")
119 cpp_quote("#define STATE_SYSTEM_FOCUSED 0x00000004")
120 cpp_quote("#define STATE_SYSTEM_PRESSED 0x00000008")
121 cpp_quote("#define STATE_SYSTEM_CHECKED 0x00000010")
122 cpp_quote("#define STATE_SYSTEM_MIXED 0x00000020")
123 cpp_quote("#define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED")
124 cpp_quote("#define STATE_SYSTEM_READONLY 0x00000040")
125 cpp_quote("#define STATE_SYSTEM_HOTTRACKED 0x00000080")
126 cpp_quote("#define STATE_SYSTEM_DEFAULT 0x00000100")
127 cpp_quote("#define STATE_SYSTEM_EXPANDED 0x00000200")
128 cpp_quote("#define STATE_SYSTEM_COLLAPSED 0x00000400")
129 cpp_quote("#define STATE_SYSTEM_BUSY 0x00000800")
130 cpp_quote("#define STATE_SYSTEM_FLOATING 0x00001000")
131 cpp_quote("#define STATE_SYSTEM_MARQUEED 0x00002000")
132 cpp_quote("#define STATE_SYSTEM_ANIMATED 0x00004000")
133 cpp_quote("#define STATE_SYSTEM_INVISIBLE 0x00008000")
134 cpp_quote("#define STATE_SYSTEM_OFFSCREEN 0x00010000")
135 cpp_quote("#define STATE_SYSTEM_SIZEABLE 0x00020000")
136 cpp_quote("#define STATE_SYSTEM_MOVEABLE 0x00040000")
137 cpp_quote("#define STATE_SYSTEM_SELFVOICING 0x00080000")
138 cpp_quote("#define STATE_SYSTEM_FOCUSABLE 0x00100000")
139 cpp_quote("#define STATE_SYSTEM_SELECTABLE 0x00200000")
140 cpp_quote("#define STATE_SYSTEM_LINKED 0x00400000")
141 cpp_quote("#define STATE_SYSTEM_TRAVERSED 0x00800000")
142 cpp_quote("#define STATE_SYSTEM_MULTISELECTABLE 0x01000000")
143 cpp_quote("#define STATE_SYSTEM_EXTSELECTABLE 0x02000000")
144 cpp_quote("#define STATE_SYSTEM_ALERT_LOW 0x04000000")
145 cpp_quote("#define STATE_SYSTEM_ALERT_MEDIUM 0x08000000")
146 cpp_quote("#define STATE_SYSTEM_ALERT_HIGH 0x10000000")
147 cpp_quote("#define STATE_SYSTEM_PROTECTED 0x20000000")
148 cpp_quote("#define STATE_SYSTEM_VALID 0x7FFFFFFF")
149 cpp_quote("#endif")
150 cpp_quote("#ifndef STATE_SYSTEM_HASPOPUP")
151 cpp_quote("#define STATE_SYSTEM_HASPOPUP 0x40000000")
152 cpp_quote("#endif")
154 typedef GUID MSAAPROPID;
156 typedef enum AnnoScope
158 ANNO_THIS,
159 ANNO_CONTAINER
160 } AnnoScope;
163 object,
164 hidden,
165 dual,
166 uuid(618736e0-3c3d-11cf-810c-00aa00389b71),
167 pointer_default(unique)
169 interface IAccessible : IDispatch
171 typedef [unique] IAccessible *LPACCESSIBLE;
172 const long DISPID_ACC_PARENT = -5000;
173 const long DISPID_ACC_CHILDCOUNT = -5001;
174 const long DISPID_ACC_CHILD = -5002;
175 const long DISPID_ACC_NAME = -5003;
176 const long DISPID_ACC_VALUE = -5004;
177 const long DISPID_ACC_DESCRIPTION= -5005;
178 const long DISPID_ACC_ROLE = -5006;
179 const long DISPID_ACC_STATE = -5007;
180 const long DISPID_ACC_HELP = -5008;
181 const long DISPID_ACC_HELPTOPIC = -5009;
182 const long DISPID_ACC_KEYBOARDSHORTCUT = -5010;
183 const long DISPID_ACC_FOCUS = -5011;
184 const long DISPID_ACC_SELECTION = -5012;
185 const long DISPID_ACC_DEFAULTACTION = -5013;
186 const long DISPID_ACC_SELECT = -5014;
187 const long DISPID_ACC_LOCATION = -5015;
188 const long DISPID_ACC_NAVIGATE = -5016;
189 const long DISPID_ACC_HITTEST = -5017;
190 const long DISPID_ACC_DODEFAULTACTION = -5018;
192 [hidden, propget, id(DISPID_ACC_PARENT)] HRESULT accParent([out, retval]IDispatch** ppdispParent);
193 [hidden, propget, id(DISPID_ACC_CHILDCOUNT)] HRESULT accChildCount([out, retval] long* pcountChildren);
194 [hidden, propget, id(DISPID_ACC_CHILD)] HRESULT accChild([in] VARIANT varChildID, [out, retval]IDispatch **ppdispChild);
195 [hidden, propget, id(DISPID_ACC_NAME)] HRESULT accName([in, optional] VARIANT varID, [out, retval] BSTR* pszName);
196 [hidden, propget, id(DISPID_ACC_VALUE)] HRESULT accValue([in, optional] VARIANT varID, [out, retval] BSTR* pszValue);
197 [hidden, propget, id(DISPID_ACC_DESCRIPTION)] HRESULT accDescription([in, optional] VARIANT varID, [out, retval] BSTR *description);
198 [hidden, propget, id(DISPID_ACC_ROLE)] HRESULT accRole([in, optional] VARIANT varID, [out, retval] VARIANT *role);
199 [hidden, propget, id(DISPID_ACC_STATE)] HRESULT accState([in, optional] VARIANT varID, [out, retval] VARIANT *state);
200 [hidden, propget, id(DISPID_ACC_HELP)] HRESULT accHelp([in, optional] VARIANT varID, [out, retval] BSTR *help);
201 [hidden, propget, id(DISPID_ACC_HELPTOPIC)] HRESULT accHelpTopic([out] BSTR *helpfile, [in, optional] VARIANT varID, [out, retval] long* pidTopic);
202 [hidden, propget, id(DISPID_ACC_KEYBOARDSHORTCUT)] HRESULT accKeyboardShortcut([in, optional] VARIANT varID, [out, retval] BSTR *shortcut);
203 [hidden, propget, id(DISPID_ACC_FOCUS)] HRESULT accFocus([out, retval] VARIANT* pvarID);
204 [hidden, propget, id(DISPID_ACC_SELECTION)] HRESULT accSelection([out, retval] VARIANT* pvarID);
205 [hidden, propget, id(DISPID_ACC_DEFAULTACTION)] HRESULT accDefaultAction([in, optional] VARIANT varID, [out, retval] BSTR *action);
207 [hidden, id(DISPID_ACC_SELECT)] HRESULT accSelect([in] long flagsSelect, [in, optional] VARIANT varID);
208 [hidden, id(DISPID_ACC_LOCATION)] HRESULT accLocation([out] long *left, [out] long *top, [out] long *width, [out] long *height, [in, optional] VARIANT varID);
209 [hidden, id(DISPID_ACC_NAVIGATE)] HRESULT accNavigate([in] long dir, [in, optional] VARIANT varStart, [out, retval] VARIANT *pvarEnd);
210 [hidden, id(DISPID_ACC_HITTEST)] HRESULT accHitTest([in] long left, [in] long top, [out, retval] VARIANT *pvarID);
211 [hidden, id(DISPID_ACC_DODEFAULTACTION)] HRESULT accDoDefaultAction([in, optional] VARIANT varID);
213 [hidden, propput, id(DISPID_ACC_NAME)] HRESULT accName([in, optional] VARIANT varID, [in] BSTR name);
214 [hidden, propput, id(DISPID_ACC_VALUE)] HRESULT accValue([in, optional] VARIANT varID, [in] BSTR value);
218 object,
219 uuid(03022430-ABC4-11d0-BDE2-00AA001A1953),
220 hidden,
221 oleautomation,
222 pointer_default(unique)
224 interface IAccessibleHandler : IUnknown
226 typedef [unique] IAccessibleHandler *LPACCESSIBLEHANDLER;
228 HRESULT AccessibleObjectFromID( [in] long hwnd, [in] long lObjectID, [out] LPACCESSIBLE *pIAccessible );
232 object,
233 uuid(7852b78d-1cfd-41c1-a615-9c0c85960b5f),
234 pointer_default(unique)
236 interface IAccIdentity : IUnknown
238 HRESULT GetIdentityString([in] DWORD idchild,
239 [out, size_is(,*string_len)] BYTE **str,
240 [out] DWORD *string_len);
244 object,
245 uuid(76c0dbbb-15e0-4e7b-b61b-20eeea2001e0),
246 pointer_default(unique)
248 interface IAccPropServer: IUnknown
250 HRESULT GetPropValue([in, size_is(string_len)] const BYTE *str,
251 [in] DWORD string_len,
252 [in] MSAAPROPID idProp,
253 [out] VARIANT *value,
254 [out] BOOL *has_prop);
258 object,
259 uuid(6e26e776-04f0-495d-80e4-3330352e3169),
260 pointer_default(unique)
262 interface IAccPropServices : IUnknown
264 HRESULT SetPropValue([in, size_is(string_len)] const BYTE *str,
265 [in] DWORD string_len,
266 [in] MSAAPROPID idProp,
267 [in] VARIANT var);
269 HRESULT SetPropServer([in, size_is(string_len)] const BYTE *str,
270 [in] DWORD string_len,
271 [in, size_is(cProps)] const MSAAPROPID *props,
272 [in] int cProps,
273 [in] IAccPropServer* pServer,
274 [in] AnnoScope AnnoScope);
276 HRESULT ClearProps([in, size_is(string_len)] const BYTE *str,
277 [in] DWORD string_len,
278 [in, size_is(cProps)] const MSAAPROPID *props,
279 [in] int cProps);
281 HRESULT SetHwndProp([in] HWND hwnd, [in] DWORD idObject, [in] DWORD idChild,
282 [in] MSAAPROPID idProp, [in] VARIANT var);
284 HRESULT SetHwndPropStr([in] HWND hwnd, [in] DWORD idObject, [in] DWORD idChild,
285 [in] MSAAPROPID idProp, [in, string] LPWSTR str);
287 HRESULT SetHwndPropServer([in] HWND hwnd,
288 [in] DWORD idObject,
289 [in] DWORD idChild,
290 [in, size_is(cProps)] const MSAAPROPID *props,
291 [in] int cProps,
292 [in] IAccPropServer *server,
293 [in] AnnoScope scope);
295 HRESULT ClearHwndProps([in] HWND hwnd,
296 [in] DWORD idObject,
297 [in] DWORD idChild,
298 [in, size_is(cProps)] const MSAAPROPID *props,
299 [in] int cProps);
301 HRESULT ComposeHwndIdentityString([in] HWND hwnd,
302 [in] DWORD idObject,
303 [in] DWORD idChild,
304 [out, size_is(,*string_len)] BYTE **str,
305 [out] DWORD *string_len);
307 HRESULT DecomposeHwndIdentityString([in, size_is(string_len)] const BYTE *str,
308 [in] DWORD string_len,
309 [out] HWND *phwnd,
310 [out] DWORD *pidObject,
311 [out] DWORD *pidChild);
313 HRESULT SetHmenuProp([in] HMENU hmenu, [in] DWORD idChild, [in] MSAAPROPID idProp, [in] VARIANT var);
315 HRESULT SetHmenuPropStr([in] HMENU hmenu, [in] DWORD idChild, [in] MSAAPROPID idProp, [in, string] LPWSTR str);
317 HRESULT SetHmenuPropServer([in] HMENU hmenu,
318 [in] DWORD idChild,
319 [in, size_is(cProps)] const MSAAPROPID *props,
320 [in] int cProps,
321 [in] IAccPropServer *server,
322 [in] AnnoScope scope);
324 HRESULT ClearHmenuProps([in] HMENU hmenu,
325 [in] DWORD idChild,
326 [in, size_is(cProps)] const MSAAPROPID *props,
327 [in] int cProps);
329 HRESULT ComposeHmenuIdentityString([in] HMENU hmenu,
330 [in] DWORD idChild,
331 [out, size_is(,*string_len)] BYTE **str,
332 [out] DWORD *string_len);
334 HRESULT DecomposeHmenuIdentityString([in, size_is(string_len)] const BYTE *str,
335 [in] DWORD string_len,
336 [out] HMENU *phmenu,
337 [out] DWORD *pidChild);
341 uuid(1ea4dbf0-3c3b-11cf-810c-00aa00389b71),
342 lcid(0),
343 version(1.1),
344 hidden
346 library Accessibility
348 importlib ("stdole2.tlb");
349 interface IAccessible;
350 interface IAccessibleHandler;
352 interface IAccIdentity;
353 interface IAccPropServer;
354 interface IAccPropServices;
357 uuid(b5f8350b-0548-48b1-a6ee-88bd00b4a5e7),
358 threading(apartment)
360 coclass CAccPropServices
362 interface IAccPropServices;
366 cpp_quote("DEFINE_GUID(CLSID_AccPropServices, 0xb5f8350b, 0x0548, 0x48b1, 0xa6, 0xee, 0x88, 0xbd, 0x00, 0xb4, 0xa5, 0xe7);")
367 cpp_quote("DEFINE_GUID(IIS_IsOleaccProxy, 0x902697fa, 0x80e4, 0x4560, 0x80, 0x2a, 0xa1, 0x3f, 0x22, 0xa6, 0x47, 0x09);")
369 cpp_quote("LRESULT WINAPI LresultFromObject(REFIID,WPARAM,LPUNKNOWN);")
370 cpp_quote("HRESULT WINAPI ObjectFromLresult(LRESULT,REFIID,WPARAM,void **);")
371 cpp_quote("HRESULT WINAPI WindowFromAccessibleObject(IAccessible *,HWND *);")
372 cpp_quote("HRESULT WINAPI AccessibleObjectFromWindow(HWND,DWORD,REFIID,void **);")
373 cpp_quote("HRESULT WINAPI AccessibleObjectFromEvent(HWND,DWORD,DWORD,IAccessible **,VARIANT *);")
374 cpp_quote("HRESULT WINAPI AccessibleObjectFromPoint(POINT,IAccessible **,VARIANT *);")
375 cpp_quote("HRESULT WINAPI AccessibleChildren(IAccessible *,LONG,LONG,VARIANT *,LONG *);")
377 cpp_quote("void WINAPI GetOleaccVersionInfo(DWORD *,DWORD *);")
378 cpp_quote("HRESULT WINAPI CreateStdAccessibleObject(HWND,LONG,REFIID,void **);")
379 cpp_quote("HRESULT WINAPI CreateStdAccessibleProxyA(HWND,LPCSTR,LONG,REFIID,void **);")
380 cpp_quote("HRESULT WINAPI CreateStdAccessibleProxyW(HWND,LPCWSTR,LONG,REFIID,void **);")
381 cpp_quote("#define CreateStdAccessibleProxy WINELIB_NAME_AW(CreateStdAccessibleProxy)")
383 cpp_quote("UINT WINAPI GetRoleTextA(DWORD,LPSTR,UINT);")
384 cpp_quote("UINT WINAPI GetRoleTextW(DWORD,LPWSTR,UINT);")
385 cpp_quote("#define GetRoleText WINELIB_NAME_AW(GetRoleText)")
386 cpp_quote("UINT WINAPI GetStateTextA(DWORD,LPSTR,UINT);")
387 cpp_quote("UINT WINAPI GetStateTextW(DWORD,LPWSTR,UINT);")
388 cpp_quote("#define GetStateText WINELIB_NAME_AW(GetStateText)")