uiautomationcoreapi.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. #ifndef _INC_UIAUTOMATIONCOREAPI
  19. #define _INC_UIAUTOMATIONCOREAPI
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #define UIA_E_ELEMENTNOTENABLED 0x80040200
  24. #define UIA_E_ELEMENTNOTAVAILABLE 0x80040201
  25. #define UIA_E_NOCLICKABLEPOINT 0x80040202
  26. #define UIA_E_PROXYASSEMBLYNOTLOADED 0x80040203
  27. #define UIA_E_NOTSUPPORTED 0x80040204
  28. #define UIA_E_INVALIDOPERATION 0x80131509
  29. #define UIA_E_TIMEOUT 0x80131505
  30. #define UiaAppendRuntimeId 3
  31. #define UiaRootObjectId -25
  32. #define UIA_PFIA_DEFAULT 0x00
  33. #define UIA_PFIA_UNWRAP_BRIDGE 0x01
  34. DECLARE_HANDLE(HUIANODE);
  35. DECLARE_HANDLE(HUIAPATTERNOBJECT);
  36. DECLARE_HANDLE(HUIATEXTRANGE);
  37. DECLARE_HANDLE(HUIAEVENT);
  38. enum AutomationIdentifierType
  39. {
  40. AutomationIdentifierType_Property,
  41. AutomationIdentifierType_Pattern,
  42. AutomationIdentifierType_Event,
  43. AutomationIdentifierType_ControlType,
  44. AutomationIdentifierType_TextAttribute,
  45. AutomationIdentifierType_LandmarkType,
  46. AutomationIdentifierType_Annotation,
  47. AutomationIdentifierType_Changes,
  48. AutomationIdentifierType_Style
  49. };
  50. enum ProviderType
  51. {
  52. ProviderType_BaseHwnd,
  53. ProviderType_Proxy,
  54. ProviderType_NonClientArea,
  55. };
  56. typedef SAFEARRAY * WINAPI UiaProviderCallback(HWND hwnd,enum ProviderType providerType);
  57. HRESULT WINAPI UiaGetReservedMixedAttributeValue(IUnknown **value);
  58. HRESULT WINAPI UiaGetReservedNotSupportedValue(IUnknown **value);
  59. int WINAPI UiaLookupId(enum AutomationIdentifierType type, const GUID *guid);
  60. WINBOOL WINAPI UiaPatternRelease(HUIAPATTERNOBJECT hobj);
  61. HRESULT WINAPI UiaRaiseAutomationEvent(IRawElementProviderSimple *provider, EVENTID id);
  62. HRESULT WINAPI UiaRaiseAutomationPropertyChangedEvent(IRawElementProviderSimple *, PROPERTYID, VARIANT, VARIANT);
  63. void WINAPI UiaRegisterProviderCallback(UiaProviderCallback *pCallback);
  64. LRESULT WINAPI UiaReturnRawElementProvider(HWND hwnd, WPARAM wParam, LPARAM lParam, IRawElementProviderSimple *elprov);
  65. WINBOOL WINAPI UiaTextRangeRelease(HUIATEXTRANGE hobj);
  66. HRESULT WINAPI UiaHostProviderFromHwnd(HWND hwnd, IRawElementProviderSimple **elprov);
  67. HRESULT WINAPI UiaProviderFromIAccessible(IAccessible *acc, long child_id, DWORD flags, IRawElementProviderSimple **elprov);
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif /* _INC_UIAUTOMATIONCOREAPI */