Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit UIAutomationClient_TLB;
- //=============================================================================
- // 2012年06月01日 作成 by Mr.XRAY
- // Microsoft Windows SDK v7.1 のUIAutomationClient.idlから作成した
- // 作成環境は,Windows XP(SP3) + Delphi XE + Windows SDK v7.1
- //
- // 以下の修正を行っている
- //
- // (1) 各関数の引数の var hwnd: Pointer をhwnd: HWNDに変更
- // MSDNの記事では,この値は,UIA_HWNDとなっているが,Windows SDKでは
- // typedef void *UIA_HWND;
- // となっている.そこで,DelphiのHWNDで置き換えた
- // UIA_HWNDという型で使用したい場合は
- // type UIA_HWND = LongInt;
- // と定義して,引数の型をUIA_HWNDにすればいいだろう.ただし,この変更を行
- // った場合は,関数の引数に渡す場合にUIA_HWNDでキャストしなければならない
- // (2) UIA_XXXXXXX等の定数値を追加
- // (3) var riid: TGUID の引数の varを削除.MSDNの記事で[in]となっているので
- // (4) 関数 GetStateTextW を追加
- //
- // 注意 : Delphi 2007以降の標準のOleAcc.pasとの同時使用は不可
- //=============================================================================
- // ************************************************************************ //
- // 警告
- // -------
- // このファイルで宣言されている型はタイプ ライブラリから読み取られたデータから
- // 生成されています。このタイプ ライブラリが明示的あるいは(このタイプ ライブラ
- // リを参照しているほかのタイプ ライブラリ経由で)間接的に再インポートされた
- // り、タイプ ライブライブラリの編集中にタイプ ライブラリ エディタの[更新]コマ
- // ンドを実行した場合、このファイルの内容はすべて再生成され、手動で加えた変更
- // はすべて失われます。
- // ************************************************************************ //
- // $Rev: 31855 $
- // 下に説明されたタイプ ライブラリから 2012/06/01 20:36:51 に生成されたファイル。
- // ************************************************************************ //
- // タイプ ライブラリ: UIAutomationClient.tlb (1)
- // LIBID: {944DE083-8FB8-45CF-BCB7-C477ACB2F897}
- // LCID: 0
- // ヘルプファイル:
- // ヘルプ文字列:
- // 依存関係リスト:
- // (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
- // エラー:
- // ヒント: IUIAutomationTextRange.Move のパラメータ 'unit' の名前が 'unit_' に変更されました。
- // ヒント: IUIAutomationTextRange.MoveEndpointByUnit のパラメータ 'unit' の名前が 'unit_' に変更されました。
- // ヒント: 'ClassName' の名前が '_className' に変更されました。
- // ヒント: 'ClassName' の名前が '_className' に変更されました。
- // ヒント: IUIAutomation.IntNativeArrayToSafeArray のパラメータ 'array' の名前が 'array_' に変更されました。
- // ヒント: IUIAutomation.IntSafeArrayToNativeArray のパラメータ 'array' の名前が 'array_' に変更されました。
- // ヒント: IUIAutomation.RectToVariant のパラメータ 'var' の名前が 'var_' に変更されました。
- // ヒント: IUIAutomation.VariantToRect のパラメータ 'var' の名前が 'var_' に変更されました。
- // ヒント: IUIAutomation.GetPropertyProgrammaticName のパラメータ 'property' の名前が 'property_' に変更されました。
- // ヒント: 'ClassName' の名前が '_className' に変更されました。
- // ヒント: 'ClassName' の名前が '_className' に変更されました。
- // "TCUIAutomation" のパレット用ビットマップの作成時エラー : サーバー C:\WINDOWS\system32\uiautomationcore.dll はアイコンを持っていません。
- // コマンドライン:
- // "C:\Program Files\Embarcadero\RAD Studio\8.0\bin\tlibimp.exe" -P UIAutomationClient.tlb
- // ************************************************************************ //
- // *************************************************************************//
- // メモ:
- // $IFDEF_LIVE_SERVER_AT_DESIGN_TIME でガードされた項目が使用されるのは、
- // プロパティでアクセスする前に関数呼び出しで明示的に作成する必要がある
- // オブジェクトが返されるプロパティです。これらの項目は
- // オブジェクト インスペクタ内から間違って使用されないように無効化されて
- // います。ここで LIVE_SERVER_AT_DESIGN_TIME を定義するか、
- // $IFDEF ブロックから選択して削除することによって有効にできます。
- // ただし、このような項目は使用する前に適切な CoClass のメソッドで
- // プログラムで作成される必要があります。
- {$TYPEDADDRESS OFF} // ポインタの型チェックをオフにしてコンパイルすること
- {$WARN SYMBOL_PLATFORM OFF}
- {$WRITEABLECONST ON}
- {$VARPROPSETTER ON}
- {$ALIGN 4}
- interface
- uses Windows, ActiveX, Classes, vcl.Graphics, vcl.OleServer, StdVCL, Variants;
- // *********************************************************************//
- // タイプ ライブラリで宣言される GUID. 以下のプレフィックスを使う:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- function GetStateTextW(dwStateBit: DWORD; lpszStateBit: PWideChar;
- cchStateBitMax: UINT): UINT; stdcall; external 'oleacc.dll';
- const
- // タイプ ライブラリのメジャー バージョンとマイナー バージョン
- UIAutomationClientMajorVersion = 1;
- UIAutomationClientMinorVersion = 0;
- LIBID_UIAutomationClient: TGUID = '{944DE083-8FB8-45CF-BCB7-C477ACB2F897}';
- IID_IUIAutomationElement: TGUID = '{D22108AA-8AC5-49A5-837B-37BBB3D7591E}';
- IID_IUIAutomationCondition: TGUID = '{352FFBA8-0973-437C-A61F-F64CAFD81DF9}';
- IID_IUIAutomationElementArray: TGUID = '{14314595-B4BC-4055-95F2-58F2E42C9855}';
- IID_IUIAutomationCacheRequest: TGUID = '{B32A92B5-BC25-4078-9C08-D7EE95C48E03}';
- IID_IUIAutomationBoolCondition: TGUID = '{1B4E1F2E-75EB-4D0B-8952-5A69988E2307}';
- IID_IUIAutomationPropertyCondition: TGUID = '{99EBF2CB-5578-4267-9AD4-AFD6EA77E94B}';
- IID_IUIAutomationAndCondition: TGUID = '{A7D0AF36-B912-45FE-9855-091DDC174AEC}';
- IID_IUIAutomationOrCondition: TGUID = '{8753F032-3DB1-47B5-A1FC-6E34A266C712}';
- IID_IUIAutomationNotCondition: TGUID = '{F528B657-847B-498C-8896-D52B565407A1}';
- IID_IUIAutomationTreeWalker: TGUID = '{4042C624-389C-4AFC-A630-9DF854A541FC}';
- IID_IUIAutomationEventHandler: TGUID = '{146C3C17-F12E-4E22-8C27-F894B9B79C69}';
- IID_IUIAutomationPropertyChangedEventHandler: TGUID = '{40CD37D4-C756-4B0C-8C6F-BDDFEEB13B50}';
- IID_IUIAutomationStructureChangedEventHandler: TGUID = '{E81D1B4E-11C5-42F8-9754-E7036C79F054}';
- IID_IUIAutomationFocusChangedEventHandler: TGUID = '{C270F6B5-5C69-4290-9745-7A7F97169468}';
- IID_IUIAutomationInvokePattern: TGUID = '{FB377FBE-8EA6-46D5-9C73-6499642D3059}';
- IID_IUIAutomationDockPattern: TGUID = '{FDE5EF97-1464-48F6-90BF-43D0948E86EC}';
- IID_IUIAutomationExpandCollapsePattern: TGUID = '{619BE086-1F4E-4EE4-BAFA-210128738730}';
- IID_IUIAutomationGridPattern: TGUID = '{414C3CDC-856B-4F5B-8538-3131C6302550}';
- IID_IUIAutomationGridItemPattern: TGUID = '{78F8EF57-66C3-4E09-BD7C-E79B2004894D}';
- IID_IUIAutomationMultipleViewPattern: TGUID = '{8D253C91-1DC5-4BB5-B18F-ADE16FA495E8}';
- IID_IUIAutomationRangeValuePattern: TGUID = '{59213F4F-7346-49E5-B120-80555987A148}';
- IID_IUIAutomationScrollPattern: TGUID = '{88F4D42A-E881-459D-A77C-73BBBB7E02DC}';
- IID_IUIAutomationScrollItemPattern: TGUID = '{B488300F-D015-4F19-9C29-BB595E3645EF}';
- IID_IUIAutomationSelectionPattern: TGUID = '{5ED5202E-B2AC-47A6-B638-4B0BF140D78E}';
- IID_IUIAutomationSelectionItemPattern: TGUID = '{A8EFA66A-0FDA-421A-9194-38021F3578EA}';
- IID_IUIAutomationSynchronizedInputPattern: TGUID = '{2233BE0B-AFB7-448B-9FDA-3B378AA5EAE1}';
- IID_IUIAutomationTablePattern: TGUID = '{620E691C-EA96-4710-A850-754B24CE2417}';
- IID_IUIAutomationTableItemPattern: TGUID = '{0B964EB3-EF2E-4464-9C79-61D61737A27E}';
- IID_IUIAutomationTogglePattern: TGUID = '{94CF8058-9B8D-4AB9-8BFD-4CD0A33C8C70}';
- IID_IUIAutomationTransformPattern: TGUID = '{A9B55844-A55D-4EF0-926D-569C16FF89BB}';
- IID_IUIAutomationValuePattern: TGUID = '{A94CD8B1-0844-4CD6-9D2D-640537AB39E9}';
- IID_IUIAutomationWindowPattern: TGUID = '{0FAEF453-9208-43EF-BBB2-3B485177864F}';
- IID_IUIAutomationTextRange: TGUID = '{A543CC6A-F4AE-494B-8239-C814481187A8}';
- IID_IUIAutomationTextRangeArray: TGUID = '{CE4AE76A-E717-4C98-81EA-47371D028EB6}';
- IID_IUIAutomationTextPattern: TGUID = '{32EBA289-3583-42C9-9C59-3B6D9A1E9B6A}';
- IID_IUIAutomationLegacyIAccessiblePattern: TGUID = '{828055AD-355B-4435-86D5-3B51C14A9B1B}';
- IID_IAccessible: TGUID = '{618736E0-3C3D-11CF-810C-00AA00389B71}';
- IID_IUIAutomationItemContainerPattern: TGUID = '{C690FDB2-27A8-423C-812D-429773C9084E}';
- IID_IUIAutomationVirtualizedItemPattern: TGUID = '{6BA3D7A6-04CF-4F11-8793-A8D1CDE9969F}';
- IID_IUIAutomationProxyFactory: TGUID = '{85B94ECD-849D-42B6-B94D-D6DB23FDF5A4}';
- IID_IRawElementProviderSimple: TGUID = '{D6DD68D1-86FD-4332-8666-9ABEDEA2D24C}';
- IID_IUIAutomationProxyFactoryEntry: TGUID = '{D50E472E-B64B-490C-BCA1-D30696F9F289}';
- IID_IUIAutomationProxyFactoryMapping: TGUID = '{09E31E18-872D-4873-93D1-1E541EC133FD}';
- IID_IUIAutomation: TGUID = '{30CBE57D-D9D0-452A-AB13-7AC5AC4825EE}';
- CLASS_CUIAutomation: TGUID = '{FF48DBA4-60EF-4201-AA87-54103EEF594E}';
- //----- Added Constants List Mr.XRAY ----------
- // Annotation Type Identifiers
- AnnotationType_Comment = 60003;
- AnnotationType_Footer = 60007;
- AnnotationType_FormulaError = 60004;
- AnnotationType_GrammarError = 60002;
- AnnotationType_Header = 60006;
- AnnotationType_Highlighted = 60008;
- AnnotationType_SpellingError = 60001;
- AnnotationType_TrackChanges = 60005;
- AnnotationType_Unknown = 60000;
- // Control Pattern Identifiers
- UIA_AnnotationPatternId = 10023;
- UIA_DockPatternId = 10011;
- UIA_DragPatternId = 10030;
- UIA_DropTargetPatternId = 10031;
- UIA_ExpandCollapsePatternId = 10005;
- UIA_GridItemPatternId = 10007;
- UIA_GridPatternId = 10006;
- UIA_InvokePatternId = 10000;
- UIA_ItemContainerPatternId = 10019;
- UIA_LegacyIAccessiblePatternId = 10018;
- UIA_MultipleViewPatternId = 10008;
- UIA_ObjectModelPatternId = 10022;
- UIA_RangeValuePatternId = 10003;
- UIA_ScrollItemPatternId = 10017;
- UIA_ScrollPatternId = 10004;
- UIA_SelectionItemPatternId = 10010;
- UIA_SelectionPatternId = 10001;
- UIA_SpreadsheetPatternId = 10026;
- UIA_SpreadsheetItemPatternId = 10027;
- UIA_StylesPatternId = 10025;
- UIA_SynchronizedInputPatternId = 10021;
- UIA_TableItemPatternId = 10013;
- UIA_TablePatternId = 10012;
- UIA_TextChildPatternId = 10029;
- UIA_TextPatternId = 10014;
- UIA_TextPattern2Id = 10024;
- UIA_TogglePatternId = 10015;
- UIA_TransformPatternId = 10016;
- UIA_TransformPattern2Id = 10028;
- UIA_ValuePatternId = 10002;
- UIA_VirtualizedItemPatternId = 10020;
- // Control Type Identifiers
- UIA_CalendarControlTypeId = 50001;
- UIA_CheckBoxControlTypeId = 50002;
- UIA_ComboBoxControlTypeId = 50003;
- UIA_CustomControlTypeId = 50025;
- UIA_DataGridControlTypeId = 50028;
- UIA_DataItemControlTypeId = 50029;
- UIA_DocumentControlTypeId = 50030;
- UIA_EditControlTypeId = 50004;
- UIA_GroupControlTypeId = 50026;
- UIA_HeaderControlTypeId = 50034;
- UIA_HeaderItemControlTypeId = 50035;
- UIA_HyperlinkControlTypeId = 50005;
- UIA_ImageControlTypeId = 50006;
- UIA_ListControlTypeId = 50008;
- UIA_ListItemControlTypeId = 50007;
- UIA_MenuBarControlTypeId = 50010;
- UIA_MenuControlTypeId = 50009;
- UIA_MenuItemControlTypeId = 50011;
- UIA_PaneControlTypeId = 50033;
- UIA_ProgressBarControlTypeId = 50012;
- UIA_RadioButtonControlTypeId = 50013;
- UIA_ScrollBarControlTypeId = 50014;
- UIA_SemanticZoomControlTypeId = 50039;
- UIA_SeparatorControlTypeId = 50038;
- UIA_SliderControlTypeId = 50015;
- UIA_SpinnerControlTypeId = 50016;
- UIA_SplitButtonControlTypeId = 50031;
- UIA_StatusBarControlTypeId = 50017;
- UIA_TabControlTypeId = 50018;
- UIA_TabItemControlTypeId = 50019;
- UIA_TableControlTypeId = 50036;
- UIA_TextControlTypeId = 50020;
- UIA_ThumbControlTypeId = 50027;
- UIA_TitleBarControlTypeId = 50037;
- UIA_ToolBarControlTypeId = 50021;
- UIA_ToolTipControlTypeId = 50022;
- UIA_TreeControlTypeId = 50023;
- UIA_TreeItemControlTypeId = 50024;
- UIA_WindowControlTypeId = 50032;
- // Error Codes
- UIA_E_ELEMENTNOTAVAILABLE = $80040201;
- UIA_E_ELEMENTNOTENABLED = $80040200;
- UIA_E_INVALIDOPERATION = $80131509;
- UIA_E_NOCLICKABLEPOINT = $80040202;
- UIA_E_NOTSUPPORTED = $80040204;
- UIA_E_PROXYASSEMBLYNOTLOADED = $80040203;
- UIA_E_TIMEOUT = $0;
- // Event Identifiers
- UIA_AsyncContentLoadedEventId = 20006;
- UIA_AutomationFocusChangedEventId = 20005;
- UIA_AutomationPropertyChangedEventId = 20004;
- UIA_Drag_DragStartEventId = 20026;
- UIA_Drag_DragCancelEventId = 20027;
- UIA_Drag_DragCompleteEventId = 20028;
- UIA_DropTarget_DragEnterEventId = 20029;
- UIA_DropTarget_DragLeaveEventId = 20030;
- UIA_DropTarget_DroppedEventId = 20031;
- UIA_HostedFragmentRootsInvalidatedEventId = 20015;
- UIA_InputDiscardedEventId = 20022;
- UIA_InputReachedOtherElementEventId = 20021;
- UIA_InputReachedTargetEventId = 20020;
- UIA_Invoke_InvokedEventId = 20009;
- UIA_LayoutInvalidatedEventId = 20008;
- UIA_LiveRegionChangedEventId = 20025;
- UIA_MenuClosedEventId = 20007;
- UIA_MenuModeEndEventId = 20019;
- UIA_MenuModeStartEventId = 20018;
- UIA_MenuOpenedEventId = 20003;
- UIA_Selection_InvalidatedEventId = 20013;
- UIA_SelectionItem_ElementAddedToSelectionEventId = 20010;
- UIA_SelectionItem_ElementRemovedFromSelectionEventId = 20011;
- UIA_SelectionItem_ElementSelectedEventId = 20012;
- UIA_StructureChangedEventId = 20002;
- UIA_SystemAlertEventId = 20024;
- UIA_Text_TextChangedEventId = 20015;
- UIA_Text_TextSelectionChangedEventId = 20014;
- UIA_ToolTipClosedEventId = 20001;
- UIA_ToolTipOpenedEventId = 20000;
- UIA_Window_WindowClosedEventId = 20017;
- UIA_Window_WindowOpenedEventId = 20016;
- // Automation Element Property Identifiers
- UIA_AcceleratorKeyPropertyId = 30006;
- UIA_AccessKeyPropertyId = 30007;
- UIA_AriaPropertiesPropertyId = 30102;
- UIA_AriaRolePropertyId = 30101;
- UIA_AutomationIdPropertyId = 30011;
- UIA_BoundingRectanglePropertyId = 30001;
- UIA_ClassNamePropertyId = 30012;
- UIA_ClickablePointPropertyId = 30014;
- UIA_ControllerForPropertyId = 30104;
- UIA_ControlTypePropertyId = 30003;
- UIA_CulturePropertyId = 30015;
- UIA_DescribedByPropertyId = 30105;
- UIA_FlowsToPropertyId = 30106;
- UIA_FrameworkIdPropertyId = 30024;
- UIA_HasKeyboardFocusPropertyId = 30008;
- UIA_HelpTextPropertyId = 30013;
- UIA_IsContentElementPropertyId = 30017;
- UIA_IsControlElementPropertyId = 30016;
- UIA_IsDataValidForFormPropertyId = 30103;
- UIA_IsEnabledPropertyId = 30010;
- UIA_IsKeyboardFocusablePropertyId = 30009;
- UIA_IsOffscreenPropertyId = 30022;
- UIA_IsPasswordPropertyId = 30019;
- UIA_IsRequiredForFormPropertyId = 30025;
- UIA_ItemStatusPropertyId = 30026;
- UIA_ItemTypePropertyId = 30021; //MSDNの元の値は300021だが,間違いかも知れないので修正
- UIA_LabeledByPropertyId = 30018;
- UIA_LiveSettingPropertyId = 30135;
- UIA_LocalizedControlTypePropertyId = 30004;
- UIA_NamePropertyId = 30005;
- UIA_NativeWindowHandlePropertyId = 30020;
- UIA_OrientationPropertyId = 30023; //MSDNの元の値は300023だが,間違いかも知れないので修正
- UIA_ProcessIdPropertyId = 30002;
- UIA_ProviderDescriptionPropertyId = 30107;
- UIA_RuntimeIdPropertyId = 30000;
- // Control Pattern Property Identifiers
- UIA_AnnotationAnnotationTypeIdPropertyId = 30113;
- UIA_AnnotationAnnotationTypeNamePropertyId = 30114;
- UIA_AnnotationAuthorPropertyId = 30115;
- UIA_AnnotationDateTimePropertyId = 30116;
- UIA_AnnotationTargetPropertyId = 30117;
- UIA_DockDockPositionPropertyId = 30069;
- UIA_DragDropEffectPropertyId = 30139;
- UIA_DragDropEffectsPropertyId = 30140;
- UIA_DragIsGrabbedPropertyId = 30138;
- UIA_DragGrabbedItemsPropertyId = 30144;
- UIA_DropTargetDropTargetEffectPropertyId = 30142;
- UIA_DropTargetDropTargetEffectsPropertyId = 30143;
- UIA_ExpandCollapseExpandCollapseStatePropertyId = 30070;
- UIA_GridColumnCountPropertyId = 30063;
- UIA_GridItemColumnPropertyId = 30065;
- UIA_GridItemColumnSpanPropertyId = 30067;
- UIA_GridItemContainingGridPropertyId = 30068;
- UIA_GridItemRowPropertyId = 30064;
- UIA_GridItemRowSpanPropertyId = 30066;
- UIA_GridRowCountPropertyId = 30062;
- UIA_LegacyIAccessibleChildIdPropertyId = 30091;
- UIA_LegacyIAccessibleDefaultActionPropertyId = 30100;
- UIA_LegacyIAccessibleDescriptionPropertyId = 30094;
- UIA_LegacyIAccessibleHelpPropertyId = 30097;
- UIA_LegacyIAccessibleKeyboardShortcutPropertyId = 30098;
- UIA_LegacyIAccessibleNamePropertyId = 30092;
- UIA_LegacyIAccessibleRolePropertyId = 30095;
- UIA_LegacyIAccessibleSelectionPropertyId = 30099;
- UIA_LegacyIAccessibleStatePropertyId = 30096;
- UIA_LegacyIAccessibleValuePropertyId = 30093;
- UIA_MultipleViewCurrentViewPropertyId = 30071;
- UIA_MultipleViewSupportedViewsPropertyId = 30072;
- UIA_RangeValueIsReadOnlyPropertyId = 30048;
- UIA_RangeValueLargeChangePropertyId = 30051;
- UIA_RangeValueMaximumPropertyId = 30050;
- UIA_RangeValueMinimumPropertyId = 30049;
- UIA_RangeValueSmallChangePropertyId = 30052;
- UIA_RangeValueValuePropertyId = 30047;
- UIA_ScrollHorizontallyScrollablePropertyId = 30057;
- UIA_ScrollHorizontalScrollPercentPropertyId = 30053;
- UIA_ScrollHorizontalViewSizePropertyId = 30054;
- UIA_ScrollVerticallyScrollablePropertyId = 30058;
- UIA_ScrollVerticalScrollPercentPropertyId = 30055;
- UIA_ScrollVerticalViewSizePropertyId = 30056;
- UIA_SelectionCanSelectMultiplePropertyId = 30060;
- UIA_SelectionIsSelectionRequiredPropertyId = 30061;
- UIA_SelectionSelectionPropertyId = 30059;
- UIA_SelectionItemIsSelectedPropertyId = 30079;
- UIA_SelectionItemSelectionContainerPropertyId = 30080;
- UIA_SpreadsheetItemFormulaPropertyId = 30129;
- UIA_SpreadsheetItemAnnotationObjectsPropertyId = 30130;
- UIA_SpreadsheetItemAnnotationTypesPropertyId = 30131;
- UIA_StylesExtendedPropertiesPropertyId = 30126;
- UIA_StylesFillColorPropertyId = 30122;
- UIA_StylesFillPatternColorPropertyId = 30125;
- UIA_StylesFillPatternStylePropertyId = 30123;
- UIA_StylesShapePropertyId = 30124;
- UIA_StylesStyleIdPropertyId = 30120;
- UIA_StylesStyleNamePropertyId = 30121;
- UIA_TableColumnHeadersPropertyId = 30082;
- UIA_TableItemColumnHeaderItemsPropertyId = 30085;
- UIA_TableRowHeadersPropertyId = 30081;
- UIA_TableRowOrColumnMajorPropertyId = 30083;
- UIA_TableItemRowHeaderItemsPropertyId = 30084;
- UIA_ToggleToggleStatePropertyId = 30086;
- UIA_TransformCanMovePropertyId = 30087;
- UIA_TransformCanResizePropertyId = 30088;
- UIA_TransformCanRotatePropertyId = 30089;
- UIA_Transform2CanZoomPropertyId = 30133;
- UIA_Transform2ZoomLevelPropertyId = 30145;
- UIA_Transform2ZoomMaximumPropertyId = 30147;
- UIA_Transform2ZoomMinimumPropertyId = 30146;
- UIA_ValueIsReadOnlyPropertyId = 30046;
- UIA_ValueValuePropertyId = 30045;
- UIA_WindowCanMaximizePropertyId = 30073;
- UIA_WindowCanMinimizePropertyId = 30074;
- UIA_WindowIsModalPropertyId = 30077;
- UIA_WindowIsTopmostPropertyId = 30078;
- UIA_WindowWindowInteractionStatePropertyId = 30076;
- UIA_WindowWindowVisualStatePropertyId = 30075;
- // Control Pattern Availability Property Identifiers
- UIA_IsAnnotationPatternAvailablePropertyId = 30118;
- UIA_IsDockPatternAvailablePropertyId = 30027;
- UIA_IsDragPatternAvailablePropertyId = 30137;
- UIA_IsDropTargetPatternAvailablePropertyId = 30141;
- UIA_IsExpandCollapsePatternAvailablePropertyId = 30028;
- UIA_IsGridItemPatternAvailablePropertyId = 30029;
- UIA_IsGridPatternAvailablePropertyId = 30030;
- UIA_IsInvokePatternAvailablePropertyId = 30031;
- UIA_IsItemContainerPatternAvailablePropertyId = 30108;
- UIA_IsLegacyIAccessiblePatternAvailablePropertyId = 30090;
- UIA_IsMultipleViewPatternAvailablePropertyId = 30032;
- UIA_IsObjectModelPatternAvailablePropertyId = 30112;
- UIA_IsRangeValuePatternAvailablePropertyId = 30033;
- UIA_IsScrollItemPatternAvailablePropertyId = 30035;
- UIA_IsScrollPatternAvailablePropertyId = 30034;
- UIA_IsSelectionItemPatternAvailablePropertyId = 30036;
- UIA_IsSelectionPatternAvailablePropertyId = 30037;
- UIA_IsSpreadsheetPatternAvailablePropertyId = 30128;
- UIA_IsSpreadsheetItemPatternAvailablePropertyId = 30132;
- UIA_IsStylesPatternAvailablePropertyId = 30127;
- UIA_IsSynchronizedInputPatternAvailablePropertyId = 30110;
- UIA_IsTableItemPatternAvailablePropertyId = 30039;
- UIA_IsTablePatternAvailablePropertyId = 30038;
- UIA_IsTextChildPatternAvailablePropertyId = 30136;
- UIA_IsTextPatternAvailablePropertyId = 30040;
- UIA_IsTextPattern2AvailablePropertyId = 30119;
- UIA_IsTogglePatternAvailablePropertyId = 30041;
- UIA_IsTransformPatternAvailablePropertyId = 30042;
- UIA_IsTransformPattern2AvailablePropertyId = 30134;
- UIA_IsValuePatternAvailablePropertyId = 30043;
- UIA_IsVirtualizedItemPatternAvailablePropertyId = 30109;
- UIA_IsWindowPatternAvailablePropertyId = 30044;
- // Style Identifiers
- StyleId_Custom = 70000;
- StyleId_Heading1 = 70001;
- StyleId_Heading2 = 70002;
- StyleId_Heading3 = 70003;
- StyleId_Heading4 = 70004;
- StyleId_Heading5 = 70005;
- StyleId_Heading6 = 70006;
- StyleId_Heading7 = 70007;
- StyleId_Heading8 = 70008;
- StyleId_Heading9 = 70009;
- StyleId_Title = 70010;
- StyleId_Subtitle = 70011;
- StyleId_Normal = 70012;
- StyleId_Emphasis = 70013;
- StyleId_Quote = 70014;
- // Text Attribute Identifiers
- UIA_AnimationStyleAttributeId = 40000;
- UIA_AnnotationObjectsAttributeId = 40032;
- UIA_AnnotationTypesAttributeId = 40031;
- UIA_BackgroundColorAttributeId = 40001;
- UIA_BulletStyleAttributeId = 40002;
- UIA_CapStyleAttributeId = 40003;
- UIA_CaretBidiModeAttributeId = 40039;
- UIA_CaretPositionAttributeId = 40038;
- UIA_CultureAttributeId = 40004;
- UIA_FontNameAttributeId = 40005;
- UIA_FontSizeAttributeId = 40006;
- UIA_FontWeightAttributeId = 40007; //MSDNの元の値は400007だが,間違いかも知れないので修正
- UIA_ForegroundColorAttributeId = 40008;
- UIA_HorizontalTextAlignmentAttributeId = 40009;
- UIA_IndentationFirstLineAttributeId = 40010;
- UIA_IndentationLeadingAttributeId = 40011;
- UIA_IndentationTrailingAttributeId = 40012;
- UIA_IsActiveAttributeId = 40036;
- UIA_IsHiddenAttributeId = 40013;
- UIA_IsItalicAttributeId = 40014;
- UIA_IsReadOnlyAttributeId = 40015;
- UIA_IsSubscriptAttributeId = 40016;
- UIA_IsSuperscriptAttributeId = 40017;
- UIA_LinkAttributeId = 40035;
- UIA_MarginBottomAttributeId = 40018;
- UIA_MarginLeadingAttributeId = 40019;
- UIA_MarginTopAttributeId = 40020;
- UIA_MarginTrailingAttributeId = 40021;
- UIA_OutlineStylesAttributeId = 40022;
- UIA_OverlineColorAttributeId = 40023;
- UIA_OverlineStyleAttributeId = 40024;
- UIA_SelectionActiveEndAttributeId = 40037;
- UIA_StrikethroughColorAttributeId = 40025;
- UIA_StrikethroughStyleAttributeId = 40026;
- UIA_StyleIdAttributeId = 40034;
- UIA_StyleNameAttributeId = 40033;
- UIA_TabsAttributeId = 40027;
- UIA_TextFlowDirectionsAttributeId = 40028;
- UIA_UnderlineColorAttributeId = 40029;
- UIA_UnderlineStyleAttributeId = 40030;
- //----- Added Constants List End Mr.XRAY ----------
- // *********************************************************************//
- // タイプ ライブラリで定義された列挙型の宣言
- // *********************************************************************//
- // 列挙型 TreeScope の定数
- type
- TreeScope = TOleEnum;
- const
- TreeScope_Element = $00000001;
- TreeScope_Children = $00000002;
- TreeScope_Descendants = $00000004;
- TreeScope_Parent = $00000008;
- TreeScope_Ancestors = $00000010;
- TreeScope_Subtree = $00000007;
- // 列挙型 AutomationElementMode の定数
- type
- AutomationElementMode = TOleEnum;
- const
- AutomationElementMode_None = $00000000;
- AutomationElementMode_Full = $00000001;
- // 列挙型 OrientationType の定数
- type
- OrientationType = TOleEnum;
- const
- OrientationType_None = $00000000;
- OrientationType_Horizontal = $00000001;
- OrientationType_Vertical = $00000002;
- // 列挙型 PropertyConditionFlags の定数
- type
- PropertyConditionFlags = TOleEnum;
- const
- PropertyConditionFlags_None = $00000000;
- PropertyConditionFlags_IgnoreCase = $00000001;
- // 列挙型 StructureChangeType の定数
- type
- StructureChangeType = TOleEnum;
- const
- StructureChangeType_ChildAdded = $00000000;
- StructureChangeType_ChildRemoved = $00000001;
- StructureChangeType_ChildrenInvalidated = $00000002;
- StructureChangeType_ChildrenBulkAdded = $00000003;
- StructureChangeType_ChildrenBulkRemoved = $00000004;
- StructureChangeType_ChildrenReordered = $00000005;
- // 列挙型 DockPosition の定数
- type
- DockPosition = TOleEnum;
- const
- DockPosition_Top = $00000000;
- DockPosition_Left = $00000001;
- DockPosition_Bottom = $00000002;
- DockPosition_Right = $00000003;
- DockPosition_Fill = $00000004;
- DockPosition_None = $00000005;
- // 列挙型 ExpandCollapseState の定数
- type
- ExpandCollapseState = TOleEnum;
- const
- ExpandCollapseState_Collapsed = $00000000;
- ExpandCollapseState_Expanded = $00000001;
- ExpandCollapseState_PartiallyExpanded = $00000002;
- ExpandCollapseState_LeafNode = $00000003;
- // 列挙型 ScrollAmount の定数
- type
- ScrollAmount = TOleEnum;
- const
- ScrollAmount_LargeDecrement = $00000000;
- ScrollAmount_SmallDecrement = $00000001;
- ScrollAmount_NoAmount = $00000002;
- ScrollAmount_LargeIncrement = $00000003;
- ScrollAmount_SmallIncrement = $00000004;
- // 列挙型 SynchronizedInputType の定数
- type
- SynchronizedInputType = TOleEnum;
- const
- SynchronizedInputType_KeyUp = $00000001;
- SynchronizedInputType_KeyDown = $00000002;
- SynchronizedInputType_LeftMouseUp = $00000004;
- SynchronizedInputType_LeftMouseDown = $00000008;
- SynchronizedInputType_RightMouseUp = $00000010;
- SynchronizedInputType_RightMouseDown = $00000020;
- // 列挙型 RowOrColumnMajor の定数
- type
- RowOrColumnMajor = TOleEnum;
- const
- RowOrColumnMajor_RowMajor = $00000000;
- RowOrColumnMajor_ColumnMajor = $00000001;
- RowOrColumnMajor_Indeterminate = $00000002;
- // 列挙型 ToggleState の定数
- type
- ToggleState = TOleEnum;
- const
- ToggleState_Off = $00000000;
- ToggleState_On = $00000001;
- ToggleState_Indeterminate = $00000002;
- // 列挙型 WindowVisualState の定数
- type
- WindowVisualState = TOleEnum;
- const
- WindowVisualState_Normal = $00000000;
- WindowVisualState_Maximized = $00000001;
- WindowVisualState_Minimized = $00000002;
- // 列挙型 WindowInteractionState の定数
- type
- WindowInteractionState = TOleEnum;
- const
- WindowInteractionState_Running = $00000000;
- WindowInteractionState_Closing = $00000001;
- WindowInteractionState_ReadyForUserInteraction = $00000002;
- WindowInteractionState_BlockedByModalWindow = $00000003;
- WindowInteractionState_NotResponding = $00000004;
- // 列挙型 TextPatternRangeEndpoint の定数
- type
- TextPatternRangeEndpoint = TOleEnum;
- const
- TextPatternRangeEndpoint_Start = $00000000;
- TextPatternRangeEndpoint_End = $00000001;
- // 列挙型 TextUnit の定数
- type
- TextUnit = TOleEnum;
- const
- TextUnit_Character = $00000000;
- TextUnit_Format = $00000001;
- TextUnit_Word = $00000002;
- TextUnit_Line = $00000003;
- TextUnit_Paragraph = $00000004;
- TextUnit_Page = $00000005;
- TextUnit_Document = $00000006;
- // 列挙型 SupportedTextSelection の定数
- type
- SupportedTextSelection = TOleEnum;
- const
- SupportedTextSelection_None = $00000000;
- SupportedTextSelection_Single = $00000001;
- SupportedTextSelection_Multiple = $00000002;
- // 列挙型 ProviderOptions の定数
- type
- ProviderOptions = TOleEnum;
- const
- ProviderOptions_ClientSideProvider = $00000001;
- ProviderOptions_ServerSideProvider = $00000002;
- ProviderOptions_NonClientAreaProvider = $00000004;
- ProviderOptions_OverrideProvider = $00000008;
- ProviderOptions_ProviderOwnsSetFocus = $00000010;
- ProviderOptions_UseComThreading = $00000020;
- type
- // *********************************************************************//
- // タイプ ライブラリで宣言される前方参照
- // *********************************************************************//
- IUIAutomationElement = interface;
- IUIAutomationCondition = interface;
- IUIAutomationElementArray = interface;
- IUIAutomationCacheRequest = interface;
- IUIAutomationBoolCondition = interface;
- IUIAutomationPropertyCondition = interface;
- IUIAutomationAndCondition = interface;
- IUIAutomationOrCondition = interface;
- IUIAutomationNotCondition = interface;
- IUIAutomationTreeWalker = interface;
- IUIAutomationEventHandler = interface;
- IUIAutomationPropertyChangedEventHandler = interface;
- IUIAutomationStructureChangedEventHandler = interface;
- IUIAutomationFocusChangedEventHandler = interface;
- IUIAutomationInvokePattern = interface;
- IUIAutomationDockPattern = interface;
- IUIAutomationExpandCollapsePattern = interface;
- IUIAutomationGridPattern = interface;
- IUIAutomationGridItemPattern = interface;
- IUIAutomationMultipleViewPattern = interface;
- IUIAutomationRangeValuePattern = interface;
- IUIAutomationScrollPattern = interface;
- IUIAutomationScrollItemPattern = interface;
- IUIAutomationSelectionPattern = interface;
- IUIAutomationSelectionItemPattern = interface;
- IUIAutomationSynchronizedInputPattern = interface;
- IUIAutomationTablePattern = interface;
- IUIAutomationTableItemPattern = interface;
- IUIAutomationTogglePattern = interface;
- IUIAutomationTransformPattern = interface;
- IUIAutomationValuePattern = interface;
- IUIAutomationWindowPattern = interface;
- IUIAutomationTextRange = interface;
- IUIAutomationTextRangeArray = interface;
- IUIAutomationTextPattern = interface;
- IUIAutomationLegacyIAccessiblePattern = interface;
- IAccessible = interface;
- IAccessibleDisp = dispinterface;
- IUIAutomationItemContainerPattern = interface;
- IUIAutomationVirtualizedItemPattern = interface;
- IUIAutomationProxyFactory = interface;
- IRawElementProviderSimple = interface;
- IUIAutomationProxyFactoryEntry = interface;
- IUIAutomationProxyFactoryMapping = interface;
- IUIAutomation = interface;
- // *********************************************************************//
- // タイプ ライブラリで宣言される CoClass
- // (注意: ここで各 CoClass とデフォルトのインターフェイスをマッピングする)
- // *********************************************************************//
- CUIAutomation = IUIAutomation;
- // *********************************************************************//
- // 構造体、共用体およびエイリアスの宣言
- // *********************************************************************//
- PUserType1 = ^TGUID; {*}
- PPUserType1 = ^IUIAutomationCondition; {*}
- PSYSINT1 = ^SYSINT; {*}
- PUserType2 = ^tagRECT; {*}
- tagRECT = record
- left: Integer;
- top: Integer;
- right: Integer;
- bottom: Integer;
- end;
- tagPOINT = record
- x: Integer;
- y: Integer;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationElement
- // フラグ: (0)
- // GUID: {D22108AA-8AC5-49A5-837B-37BBB3D7591E}
- // *********************************************************************//
- IUIAutomationElement = interface(IUnknown)
- ['{D22108AA-8AC5-49A5-837B-37BBB3D7591E}']
- function SetFocus: HResult; stdcall;
- function GetRuntimeId(out runtimeId: PSafeArray): HResult; stdcall;
- function FindFirst(scope: TreeScope; const condition: IUIAutomationCondition;
- out found: IUIAutomationElement): HResult; stdcall;
- function FindAll(scope: TreeScope; const condition: IUIAutomationCondition;
- out found: IUIAutomationElementArray): HResult; stdcall;
- function FindFirstBuildCache(scope: TreeScope; const condition: IUIAutomationCondition;
- const cacheRequest: IUIAutomationCacheRequest;
- out found: IUIAutomationElement): HResult; stdcall;
- function FindAllBuildCache(scope: TreeScope; const condition: IUIAutomationCondition;
- const cacheRequest: IUIAutomationCacheRequest;
- out found: IUIAutomationElementArray): HResult; stdcall;
- function BuildUpdatedCache(const cacheRequest: IUIAutomationCacheRequest;
- out updatedElement: IUIAutomationElement): HResult; stdcall;
- function GetCurrentPropertyValue(propertyId: SYSINT; out retVal: OleVariant): HResult; stdcall;
- function GetCurrentPropertyValueEx(propertyId: SYSINT; ignoreDefaultValue: Integer;
- out retVal: OleVariant): HResult; stdcall;
- function GetCachedPropertyValue(propertyId: SYSINT; out retVal: OleVariant): HResult; stdcall;
- function GetCachedPropertyValueEx(propertyId: SYSINT; ignoreDefaultValue: Integer;
- out retVal: OleVariant): HResult; stdcall;
- function GetCurrentPatternAs(patternId: SYSINT; riid: TGUID; out patternObject: Pointer): HResult; stdcall;
- function GetCachedPatternAs(patternId: SYSINT; riid: TGUID; out patternObject: Pointer): HResult; stdcall;
- function GetCurrentPattern(patternId: SYSINT; out patternObject: IUnknown): HResult; stdcall;
- function GetCachedPattern(patternId: SYSINT; out patternObject: IUnknown): HResult; stdcall;
- function GetCachedParent(out parent: IUIAutomationElement): HResult; stdcall;
- function GetCachedChildren(out children: IUIAutomationElementArray): HResult; stdcall;
- function Get_CurrentProcessId(out retVal: SYSINT): HResult; stdcall;
- function Get_CurrentControlType(out retVal: SYSINT): HResult; stdcall;
- function Get_CurrentLocalizedControlType(out retVal: WideString): HResult; stdcall;
- function Get_CurrentName(out retVal: WideString): HResult; stdcall;
- function Get_CurrentAcceleratorKey(out retVal: WideString): HResult; stdcall;
- function Get_CurrentAccessKey(out retVal: WideString): HResult; stdcall;
- function Get_CurrentHasKeyboardFocus(out retVal: Integer): HResult; stdcall;
- function Get_CurrentIsKeyboardFocusable(out retVal: Integer): HResult; stdcall;
- function Get_CurrentIsEnabled(out retVal: Integer): HResult; stdcall;
- function Get_CurrentAutomationId(out retVal: WideString): HResult; stdcall;
- function Get_CurrentClassName(out retVal: WideString): HResult; stdcall;
- function Get_CurrentHelpText(out retVal: WideString): HResult; stdcall;
- function Get_CurrentCulture(out retVal: SYSINT): HResult; stdcall;
- function Get_CurrentIsControlElement(out retVal: Integer): HResult; stdcall;
- function Get_CurrentIsContentElement(out retVal: Integer): HResult; stdcall;
- function Get_CurrentIsPassword(out retVal: Integer): HResult; stdcall;
- function Get_CurrentNativeWindowHandle(out retVal: Pointer): HResult; stdcall;
- function Get_CurrentItemType(out retVal: WideString): HResult; stdcall;
- function Get_CurrentIsOffscreen(out retVal: Integer): HResult; stdcall;
- function Get_CurrentOrientation(out retVal: OrientationType): HResult; stdcall;
- function Get_CurrentFrameworkId(out retVal: WideString): HResult; stdcall;
- function Get_CurrentIsRequiredForForm(out retVal: Integer): HResult; stdcall;
- function Get_CurrentItemStatus(out retVal: WideString): HResult; stdcall;
- function Get_CurrentBoundingRectangle(out retVal: tagRECT): HResult; stdcall;
- function Get_CurrentLabeledBy(out retVal: IUIAutomationElement): HResult; stdcall;
- function Get_CurrentAriaRole(out retVal: WideString): HResult; stdcall;
- function Get_CurrentAriaProperties(out retVal: WideString): HResult; stdcall;
- function Get_CurrentIsDataValidForForm(out retVal: Integer): HResult; stdcall;
- function Get_CurrentControllerFor(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CurrentDescribedBy(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CurrentFlowsTo(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CurrentProviderDescription(out retVal: WideString): HResult; stdcall;
- function Get_CachedProcessId(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedControlType(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedLocalizedControlType(out retVal: WideString): HResult; stdcall;
- function Get_CachedName(out retVal: WideString): HResult; stdcall;
- function Get_CachedAcceleratorKey(out retVal: WideString): HResult; stdcall;
- function Get_CachedAccessKey(out retVal: WideString): HResult; stdcall;
- function Get_CachedHasKeyboardFocus(out retVal: Integer): HResult; stdcall;
- function Get_CachedIsKeyboardFocusable(out retVal: Integer): HResult; stdcall;
- function Get_CachedIsEnabled(out retVal: Integer): HResult; stdcall;
- function Get_CachedAutomationId(out retVal: WideString): HResult; stdcall;
- function Get_CachedClassName(out retVal: WideString): HResult; stdcall;
- function Get_CachedHelpText(out retVal: WideString): HResult; stdcall;
- function Get_CachedCulture(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedIsControlElement(out retVal: Integer): HResult; stdcall;
- function Get_CachedIsContentElement(out retVal: Integer): HResult; stdcall;
- function Get_CachedIsPassword(out retVal: Integer): HResult; stdcall;
- function Get_CachedNativeWindowHandle(out retVal: Pointer): HResult; stdcall;
- function Get_CachedItemType(out retVal: WideString): HResult; stdcall;
- function Get_CachedIsOffscreen(out retVal: Integer): HResult; stdcall;
- function Get_CachedOrientation(out retVal: OrientationType): HResult; stdcall;
- function Get_CachedFrameworkId(out retVal: WideString): HResult; stdcall;
- function Get_CachedIsRequiredForForm(out retVal: Integer): HResult; stdcall;
- function Get_CachedItemStatus(out retVal: WideString): HResult; stdcall;
- function Get_CachedBoundingRectangle(out retVal: tagRECT): HResult; stdcall;
- function Get_CachedLabeledBy(out retVal: IUIAutomationElement): HResult; stdcall;
- function Get_CachedAriaRole(out retVal: WideString): HResult; stdcall;
- function Get_CachedAriaProperties(out retVal: WideString): HResult; stdcall;
- function Get_CachedIsDataValidForForm(out retVal: Integer): HResult; stdcall;
- function Get_CachedControllerFor(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CachedDescribedBy(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CachedFlowsTo(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CachedProviderDescription(out retVal: WideString): HResult; stdcall;
- function GetClickablePoint(out clickable: tagPOINT; out gotClickable: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationCondition
- // フラグ: (0)
- // GUID: {352FFBA8-0973-437C-A61F-F64CAFD81DF9}
- // *********************************************************************//
- IUIAutomationCondition = interface(IUnknown)
- ['{352FFBA8-0973-437C-A61F-F64CAFD81DF9}']
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationElementArray
- // フラグ: (0)
- // GUID: {14314595-B4BC-4055-95F2-58F2E42C9855}
- // *********************************************************************//
- IUIAutomationElementArray = interface(IUnknown)
- ['{14314595-B4BC-4055-95F2-58F2E42C9855}']
- function Get_Length(out Length: SYSINT): HResult; stdcall;
- function GetElement(index: SYSINT; out element: IUIAutomationElement): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationCacheRequest
- // フラグ: (0)
- // GUID: {B32A92B5-BC25-4078-9C08-D7EE95C48E03}
- // *********************************************************************//
- IUIAutomationCacheRequest = interface(IUnknown)
- ['{B32A92B5-BC25-4078-9C08-D7EE95C48E03}']
- function AddProperty(propertyId: SYSINT): HResult; stdcall;
- function AddPattern(patternId: SYSINT): HResult; stdcall;
- function Clone(out clonedRequest: IUIAutomationCacheRequest): HResult; stdcall;
- function Get_TreeScope(out scope: TreeScope): HResult; stdcall;
- function Set_TreeScope(scope: TreeScope): HResult; stdcall;
- function Get_TreeFilter(out filter: IUIAutomationCondition): HResult; stdcall;
- function Set_TreeFilter(const filter: IUIAutomationCondition): HResult; stdcall;
- function Get_AutomationElementMode(out mode: AutomationElementMode): HResult; stdcall;
- function Set_AutomationElementMode(mode: AutomationElementMode): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationBoolCondition
- // フラグ: (0)
- // GUID: {1B4E1F2E-75EB-4D0B-8952-5A69988E2307}
- // *********************************************************************//
- IUIAutomationBoolCondition = interface(IUIAutomationCondition)
- ['{1B4E1F2E-75EB-4D0B-8952-5A69988E2307}']
- function Get_BooleanValue(out boolVal: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationPropertyCondition
- // フラグ: (0)
- // GUID: {99EBF2CB-5578-4267-9AD4-AFD6EA77E94B}
- // *********************************************************************//
- IUIAutomationPropertyCondition = interface(IUIAutomationCondition)
- ['{99EBF2CB-5578-4267-9AD4-AFD6EA77E94B}']
- function Get_propertyId(out propertyId: SYSINT): HResult; stdcall;
- function Get_PropertyValue(out PropertyValue: OleVariant): HResult; stdcall;
- function Get_PropertyConditionFlags(out flags: PropertyConditionFlags): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationAndCondition
- // フラグ: (0)
- // GUID: {A7D0AF36-B912-45FE-9855-091DDC174AEC}
- // *********************************************************************//
- IUIAutomationAndCondition = interface(IUIAutomationCondition)
- ['{A7D0AF36-B912-45FE-9855-091DDC174AEC}']
- function Get_ChildCount(out ChildCount: SYSINT): HResult; stdcall;
- function GetChildrenAsNativeArray(out childArray: PPUserType1; out childArrayCount: SYSINT): HResult; stdcall;
- function GetChildren(out childArray: PSafeArray): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationOrCondition
- // フラグ: (0)
- // GUID: {8753F032-3DB1-47B5-A1FC-6E34A266C712}
- // *********************************************************************//
- IUIAutomationOrCondition = interface(IUIAutomationCondition)
- ['{8753F032-3DB1-47B5-A1FC-6E34A266C712}']
- function Get_ChildCount(out ChildCount: SYSINT): HResult; stdcall;
- function GetChildrenAsNativeArray(out childArray: PPUserType1; out childArrayCount: SYSINT): HResult; stdcall;
- function GetChildren(out childArray: PSafeArray): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationNotCondition
- // フラグ: (0)
- // GUID: {F528B657-847B-498C-8896-D52B565407A1}
- // *********************************************************************//
- IUIAutomationNotCondition = interface(IUIAutomationCondition)
- ['{F528B657-847B-498C-8896-D52B565407A1}']
- function GetChild(out condition: IUIAutomationCondition): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTreeWalker
- // フラグ: (0)
- // GUID: {4042C624-389C-4AFC-A630-9DF854A541FC}
- // *********************************************************************//
- IUIAutomationTreeWalker = interface(IUnknown)
- ['{4042C624-389C-4AFC-A630-9DF854A541FC}']
- function GetParentElement(const element: IUIAutomationElement; out parent: IUIAutomationElement): HResult; stdcall;
- function GetFirstChildElement(const element: IUIAutomationElement;
- out first: IUIAutomationElement): HResult; stdcall;
- function GetLastChildElement(const element: IUIAutomationElement; out last: IUIAutomationElement): HResult; stdcall;
- function GetNextSiblingElement(const element: IUIAutomationElement;
- out next: IUIAutomationElement): HResult; stdcall;
- function GetPreviousSiblingElement(const element: IUIAutomationElement;
- out previous: IUIAutomationElement): HResult; stdcall;
- function NormalizeElement(const element: IUIAutomationElement;
- out normalized: IUIAutomationElement): HResult; stdcall;
- function GetParentElementBuildCache(const element: IUIAutomationElement;
- const cacheRequest: IUIAutomationCacheRequest;
- out parent: IUIAutomationElement): HResult; stdcall;
- function GetFirstChildElementBuildCache(const element: IUIAutomationElement;
- const cacheRequest: IUIAutomationCacheRequest;
- out first: IUIAutomationElement): HResult; stdcall;
- function GetLastChildElementBuildCache(const element: IUIAutomationElement;
- const cacheRequest: IUIAutomationCacheRequest;
- out last: IUIAutomationElement): HResult; stdcall;
- function GetNextSiblingElementBuildCache(const element: IUIAutomationElement;
- const cacheRequest: IUIAutomationCacheRequest;
- out next: IUIAutomationElement): HResult; stdcall;
- function GetPreviousSiblingElementBuildCache(const element: IUIAutomationElement;
- const cacheRequest: IUIAutomationCacheRequest;
- out previous: IUIAutomationElement): HResult; stdcall;
- function NormalizeElementBuildCache(const element: IUIAutomationElement;
- const cacheRequest: IUIAutomationCacheRequest;
- out normalized: IUIAutomationElement): HResult; stdcall;
- function Get_condition(out condition: IUIAutomationCondition): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationEventHandler
- // フラグ: (256) OleAutomation
- // GUID: {146C3C17-F12E-4E22-8C27-F894B9B79C69}
- // *********************************************************************//
- IUIAutomationEventHandler = interface(IUnknown)
- ['{146C3C17-F12E-4E22-8C27-F894B9B79C69}']
- function HandleAutomationEvent(const sender: IUIAutomationElement; eventId: SYSINT): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationPropertyChangedEventHandler
- // フラグ: (256) OleAutomation
- // GUID: {40CD37D4-C756-4B0C-8C6F-BDDFEEB13B50}
- // *********************************************************************//
- IUIAutomationPropertyChangedEventHandler = interface(IUnknown)
- ['{40CD37D4-C756-4B0C-8C6F-BDDFEEB13B50}']
- function HandlePropertyChangedEvent(const sender: IUIAutomationElement; propertyId: SYSINT;
- newValue: OleVariant): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationStructureChangedEventHandler
- // フラグ: (256) OleAutomation
- // GUID: {E81D1B4E-11C5-42F8-9754-E7036C79F054}
- // *********************************************************************//
- IUIAutomationStructureChangedEventHandler = interface(IUnknown)
- ['{E81D1B4E-11C5-42F8-9754-E7036C79F054}']
- function HandleStructureChangedEvent(const sender: IUIAutomationElement;
- changeType: StructureChangeType; runtimeId: PSafeArray): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationFocusChangedEventHandler
- // フラグ: (256) OleAutomation
- // GUID: {C270F6B5-5C69-4290-9745-7A7F97169468}
- // *********************************************************************//
- IUIAutomationFocusChangedEventHandler = interface(IUnknown)
- ['{C270F6B5-5C69-4290-9745-7A7F97169468}']
- function HandleFocusChangedEvent(const sender: IUIAutomationElement): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationInvokePattern
- // フラグ: (0)
- // GUID: {FB377FBE-8EA6-46D5-9C73-6499642D3059}
- // *********************************************************************//
- IUIAutomationInvokePattern = interface(IUnknown)
- ['{FB377FBE-8EA6-46D5-9C73-6499642D3059}']
- function Invoke: HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationDockPattern
- // フラグ: (0)
- // GUID: {FDE5EF97-1464-48F6-90BF-43D0948E86EC}
- // *********************************************************************//
- IUIAutomationDockPattern = interface(IUnknown)
- ['{FDE5EF97-1464-48F6-90BF-43D0948E86EC}']
- function SetDockPosition(dockPos: DockPosition): HResult; stdcall;
- function Get_CurrentDockPosition(out retVal: DockPosition): HResult; stdcall;
- function Get_CachedDockPosition(out retVal: DockPosition): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationExpandCollapsePattern
- // フラグ: (0)
- // GUID: {619BE086-1F4E-4EE4-BAFA-210128738730}
- // *********************************************************************//
- IUIAutomationExpandCollapsePattern = interface(IUnknown)
- ['{619BE086-1F4E-4EE4-BAFA-210128738730}']
- function Expand: HResult; stdcall;
- function Collapse: HResult; stdcall;
- function Get_CurrentExpandCollapseState(out retVal: ExpandCollapseState): HResult; stdcall;
- function Get_CachedExpandCollapseState(out retVal: ExpandCollapseState): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationGridPattern
- // フラグ: (0)
- // GUID: {414C3CDC-856B-4F5B-8538-3131C6302550}
- // *********************************************************************//
- IUIAutomationGridPattern = interface(IUnknown)
- ['{414C3CDC-856B-4F5B-8538-3131C6302550}']
- function GetItem(row: SYSINT; column: SYSINT; out element: IUIAutomationElement): HResult; stdcall;
- function Get_CurrentRowCount(out retVal: SYSINT): HResult; stdcall;
- function Get_CurrentColumnCount(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedRowCount(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedColumnCount(out retVal: SYSINT): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationGridItemPattern
- // フラグ: (0)
- // GUID: {78F8EF57-66C3-4E09-BD7C-E79B2004894D}
- // *********************************************************************//
- IUIAutomationGridItemPattern = interface(IUnknown)
- ['{78F8EF57-66C3-4E09-BD7C-E79B2004894D}']
- function Get_CurrentContainingGrid(out retVal: IUIAutomationElement): HResult; stdcall;
- function Get_CurrentRow(out retVal: SYSINT): HResult; stdcall;
- function Get_CurrentColumn(out retVal: SYSINT): HResult; stdcall;
- function Get_CurrentRowSpan(out retVal: SYSINT): HResult; stdcall;
- function Get_CurrentColumnSpan(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedContainingGrid(out retVal: IUIAutomationElement): HResult; stdcall;
- function Get_CachedRow(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedColumn(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedRowSpan(out retVal: SYSINT): HResult; stdcall;
- function Get_CachedColumnSpan(out retVal: SYSINT): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationMultipleViewPattern
- // フラグ: (0)
- // GUID: {8D253C91-1DC5-4BB5-B18F-ADE16FA495E8}
- // *********************************************************************//
- IUIAutomationMultipleViewPattern = interface(IUnknown)
- ['{8D253C91-1DC5-4BB5-B18F-ADE16FA495E8}']
- function GetViewName(view: SYSINT; out name: WideString): HResult; stdcall;
- function SetCurrentView(view: SYSINT): HResult; stdcall;
- function Get_CurrentCurrentView(out retVal: SYSINT): HResult; stdcall;
- function GetCurrentSupportedViews(out retVal: PSafeArray): HResult; stdcall;
- function Get_CachedCurrentView(out retVal: SYSINT): HResult; stdcall;
- function GetCachedSupportedViews(out retVal: PSafeArray): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationRangeValuePattern
- // フラグ: (0)
- // GUID: {59213F4F-7346-49E5-B120-80555987A148}
- // *********************************************************************//
- IUIAutomationRangeValuePattern = interface(IUnknown)
- ['{59213F4F-7346-49E5-B120-80555987A148}']
- function SetValue(val: Double): HResult; stdcall;
- function Get_CurrentValue(out retVal: Double): HResult; stdcall;
- function Get_CurrentIsReadOnly(out retVal: Integer): HResult; stdcall;
- function Get_CurrentMaximum(out retVal: Double): HResult; stdcall;
- function Get_CurrentMinimum(out retVal: Double): HResult; stdcall;
- function Get_CurrentLargeChange(out retVal: Double): HResult; stdcall;
- function Get_CurrentSmallChange(out retVal: Double): HResult; stdcall;
- function Get_CachedValue(out retVal: Double): HResult; stdcall;
- function Get_CachedIsReadOnly(out retVal: Integer): HResult; stdcall;
- function Get_CachedMaximum(out retVal: Double): HResult; stdcall;
- function Get_CachedMinimum(out retVal: Double): HResult; stdcall;
- function Get_CachedLargeChange(out retVal: Double): HResult; stdcall;
- function Get_CachedSmallChange(out retVal: Double): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationScrollPattern
- // フラグ: (0)
- // GUID: {88F4D42A-E881-459D-A77C-73BBBB7E02DC}
- // *********************************************************************//
- IUIAutomationScrollPattern = interface(IUnknown)
- ['{88F4D42A-E881-459D-A77C-73BBBB7E02DC}']
- function Scroll(horizontalAmount: ScrollAmount; verticalAmount: ScrollAmount): HResult; stdcall;
- function SetScrollPercent(horizontalPercent: Double; verticalPercent: Double): HResult; stdcall;
- function Get_CurrentHorizontalScrollPercent(out retVal: Double): HResult; stdcall;
- function Get_CurrentVerticalScrollPercent(out retVal: Double): HResult; stdcall;
- function Get_CurrentHorizontalViewSize(out retVal: Double): HResult; stdcall;
- function Get_CurrentVerticalViewSize(out retVal: Double): HResult; stdcall;
- function Get_CurrentHorizontallyScrollable(out retVal: Integer): HResult; stdcall;
- function Get_CurrentVerticallyScrollable(out retVal: Integer): HResult; stdcall;
- function Get_CachedHorizontalScrollPercent(out retVal: Double): HResult; stdcall;
- function Get_CachedVerticalScrollPercent(out retVal: Double): HResult; stdcall;
- function Get_CachedHorizontalViewSize(out retVal: Double): HResult; stdcall;
- function Get_CachedVerticalViewSize(out retVal: Double): HResult; stdcall;
- function Get_CachedHorizontallyScrollable(out retVal: Integer): HResult; stdcall;
- function Get_CachedVerticallyScrollable(out retVal: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationScrollItemPattern
- // フラグ: (0)
- // GUID: {B488300F-D015-4F19-9C29-BB595E3645EF}
- // *********************************************************************//
- IUIAutomationScrollItemPattern = interface(IUnknown)
- ['{B488300F-D015-4F19-9C29-BB595E3645EF}']
- function ScrollIntoView: HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationSelectionPattern
- // フラグ: (0)
- // GUID: {5ED5202E-B2AC-47A6-B638-4B0BF140D78E}
- // *********************************************************************//
- IUIAutomationSelectionPattern = interface(IUnknown)
- ['{5ED5202E-B2AC-47A6-B638-4B0BF140D78E}']
- function GetCurrentSelection(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CurrentCanSelectMultiple(out retVal: Integer): HResult; stdcall;
- function Get_CurrentIsSelectionRequired(out retVal: Integer): HResult; stdcall;
- function GetCachedSelection(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CachedCanSelectMultiple(out retVal: Integer): HResult; stdcall;
- function Get_CachedIsSelectionRequired(out retVal: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationSelectionItemPattern
- // フラグ: (0)
- // GUID: {A8EFA66A-0FDA-421A-9194-38021F3578EA}
- // *********************************************************************//
- IUIAutomationSelectionItemPattern = interface(IUnknown)
- ['{A8EFA66A-0FDA-421A-9194-38021F3578EA}']
- function Select: HResult; stdcall;
- function AddToSelection: HResult; stdcall;
- function RemoveFromSelection: HResult; stdcall;
- function Get_CurrentIsSelected(out retVal: Integer): HResult; stdcall;
- function Get_CurrentSelectionContainer(out retVal: IUIAutomationElement): HResult; stdcall;
- function Get_CachedIsSelected(out retVal: Integer): HResult; stdcall;
- function Get_CachedSelectionContainer(out retVal: IUIAutomationElement): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationSynchronizedInputPattern
- // フラグ: (0)
- // GUID: {2233BE0B-AFB7-448B-9FDA-3B378AA5EAE1}
- // *********************************************************************//
- IUIAutomationSynchronizedInputPattern = interface(IUnknown)
- ['{2233BE0B-AFB7-448B-9FDA-3B378AA5EAE1}']
- function StartListening(inputType: SynchronizedInputType): HResult; stdcall;
- function Cancel: HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTablePattern
- // フラグ: (0)
- // GUID: {620E691C-EA96-4710-A850-754B24CE2417}
- // *********************************************************************//
- IUIAutomationTablePattern = interface(IUnknown)
- ['{620E691C-EA96-4710-A850-754B24CE2417}']
- function GetCurrentRowHeaders(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function GetCurrentColumnHeaders(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CurrentRowOrColumnMajor(out retVal: RowOrColumnMajor): HResult; stdcall;
- function GetCachedRowHeaders(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function GetCachedColumnHeaders(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function Get_CachedRowOrColumnMajor(out retVal: RowOrColumnMajor): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTableItemPattern
- // フラグ: (0)
- // GUID: {0B964EB3-EF2E-4464-9C79-61D61737A27E}
- // *********************************************************************//
- IUIAutomationTableItemPattern = interface(IUnknown)
- ['{0B964EB3-EF2E-4464-9C79-61D61737A27E}']
- function GetCurrentRowHeaderItems(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function GetCurrentColumnHeaderItems(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function GetCachedRowHeaderItems(out retVal: IUIAutomationElementArray): HResult; stdcall;
- function GetCachedColumnHeaderItems(out retVal: IUIAutomationElementArray): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTogglePattern
- // フラグ: (0)
- // GUID: {94CF8058-9B8D-4AB9-8BFD-4CD0A33C8C70}
- // *********************************************************************//
- IUIAutomationTogglePattern = interface(IUnknown)
- ['{94CF8058-9B8D-4AB9-8BFD-4CD0A33C8C70}']
- function Toggle: HResult; stdcall;
- function Get_CurrentToggleState(out retVal: ToggleState): HResult; stdcall;
- function Get_CachedToggleState(out retVal: ToggleState): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTransformPattern
- // フラグ: (0)
- // GUID: {A9B55844-A55D-4EF0-926D-569C16FF89BB}
- // *********************************************************************//
- IUIAutomationTransformPattern = interface(IUnknown)
- ['{A9B55844-A55D-4EF0-926D-569C16FF89BB}']
- function Move(x: Double; y: Double): HResult; stdcall;
- function Resize(width: Double; height: Double): HResult; stdcall;
- function Rotate(degrees: Double): HResult; stdcall;
- function Get_CurrentCanMove(out retVal: Integer): HResult; stdcall;
- function Get_CurrentCanResize(out retVal: Integer): HResult; stdcall;
- function Get_CurrentCanRotate(out retVal: Integer): HResult; stdcall;
- function Get_CachedCanMove(out retVal: Integer): HResult; stdcall;
- function Get_CachedCanResize(out retVal: Integer): HResult; stdcall;
- function Get_CachedCanRotate(out retVal: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationValuePattern
- // フラグ: (0)
- // GUID: {A94CD8B1-0844-4CD6-9D2D-640537AB39E9}
- // *********************************************************************//
- IUIAutomationValuePattern = interface(IUnknown)
- ['{A94CD8B1-0844-4CD6-9D2D-640537AB39E9}']
- function SetValue(const val: WideString): HResult; stdcall;
- function Get_CurrentValue(out retVal: WideString): HResult; stdcall;
- function Get_CurrentIsReadOnly(out retVal: Integer): HResult; stdcall;
- function Get_CachedValue(out retVal: WideString): HResult; stdcall;
- function Get_CachedIsReadOnly(out retVal: Integer): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationWindowPattern
- // フラグ: (0)
- // GUID: {0FAEF453-9208-43EF-BBB2-3B485177864F}
- // *********************************************************************//
- IUIAutomationWindowPattern = interface(IUnknown)
- ['{0FAEF453-9208-43EF-BBB2-3B485177864F}']
- function Close: HResult; stdcall;
- function WaitForInputIdle(milliseconds: SYSINT; out success: Integer): HResult; stdcall;
- function SetWindowVisualState(state: WindowVisualState): HResult; stdcall;
- function Get_CurrentCanMaximize(out retVal: Integer): HResult; stdcall;
- function Get_CurrentCanMinimize(out retVal: Integer): HResult; stdcall;
- function Get_CurrentIsModal(out retVal: Integer): HResult; stdcall;
- function Get_CurrentIsTopmost(out retVal: Integer): HResult; stdcall;
- function Get_CurrentWindowVisualState(out retVal: WindowVisualState): HResult; stdcall;
- function Get_CurrentWindowInteractionState(out retVal: WindowInteractionState): HResult; stdcall;
- function Get_CachedCanMaximize(out retVal: Integer): HResult; stdcall;
- function Get_CachedCanMinimize(out retVal: Integer): HResult; stdcall;
- function Get_CachedIsModal(out retVal: Integer): HResult; stdcall;
- function Get_CachedIsTopmost(out retVal: Integer): HResult; stdcall;
- function Get_CachedWindowVisualState(out retVal: WindowVisualState): HResult; stdcall;
- function Get_CachedWindowInteractionState(out retVal: WindowInteractionState): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTextRange
- // フラグ: (0)
- // GUID: {A543CC6A-F4AE-494B-8239-C814481187A8}
- // *********************************************************************//
- IUIAutomationTextRange = interface(IUnknown)
- ['{A543CC6A-F4AE-494B-8239-C814481187A8}']
- function Clone(out clonedRange: IUIAutomationTextRange): HResult; stdcall;
- function Compare(const range: IUIAutomationTextRange; out areSame: Integer): HResult; stdcall;
- function CompareEndpoints(srcEndPoint: TextPatternRangeEndpoint;
- const range: IUIAutomationTextRange;
- targetEndPoint: TextPatternRangeEndpoint; out compValue: SYSINT): HResult; stdcall;
- function ExpandToEnclosingUnit(TextUnit: TextUnit): HResult; stdcall;
- function FindAttribute(attr: SYSINT; val: OleVariant; backward: Integer;
- out found: IUIAutomationTextRange): HResult; stdcall;
- function FindText(const text: WideString; backward: Integer; ignoreCase: Integer;
- out found: IUIAutomationTextRange): HResult; stdcall;
- function GetAttributeValue(attr: SYSINT; out value: OleVariant): HResult; stdcall;
- function GetBoundingRectangles(out boundingRects: PSafeArray): HResult; stdcall;
- function GetEnclosingElement(out enclosingElement: IUIAutomationElement): HResult; stdcall;
- function GetText(maxLength: SYSINT; out text: WideString): HResult; stdcall;
- function Move(unit_: TextUnit; count: SYSINT; out moved: SYSINT): HResult; stdcall;
- function MoveEndpointByUnit(endpoint: TextPatternRangeEndpoint; unit_: TextUnit; count: SYSINT;
- out moved: SYSINT): HResult; stdcall;
- function MoveEndpointByRange(srcEndPoint: TextPatternRangeEndpoint;
- const range: IUIAutomationTextRange;
- targetEndPoint: TextPatternRangeEndpoint): HResult; stdcall;
- function Select: HResult; stdcall;
- function AddToSelection: HResult; stdcall;
- function RemoveFromSelection: HResult; stdcall;
- function ScrollIntoView(alignToTop: Integer): HResult; stdcall;
- function GetChildren(out children: IUIAutomationElementArray): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTextRangeArray
- // フラグ: (0)
- // GUID: {CE4AE76A-E717-4C98-81EA-47371D028EB6}
- // *********************************************************************//
- IUIAutomationTextRangeArray = interface(IUnknown)
- ['{CE4AE76A-E717-4C98-81EA-47371D028EB6}']
- function Get_Length(out Length: SYSINT): HResult; stdcall;
- function GetElement(index: SYSINT; out element: IUIAutomationTextRange): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationTextPattern
- // フラグ: (0)
- // GUID: {32EBA289-3583-42C9-9C59-3B6D9A1E9B6A}
- // *********************************************************************//
- IUIAutomationTextPattern = interface(IUnknown)
- ['{32EBA289-3583-42C9-9C59-3B6D9A1E9B6A}']
- function RangeFromPoint(pt: tagPOINT; out range: IUIAutomationTextRange): HResult; stdcall;
- function RangeFromChild(const child: IUIAutomationElement; out range: IUIAutomationTextRange): HResult; stdcall;
- function GetSelection(out ranges: IUIAutomationTextRangeArray): HResult; stdcall;
- function GetVisibleRanges(out ranges: IUIAutomationTextRangeArray): HResult; stdcall;
- function Get_DocumentRange(out range: IUIAutomationTextRange): HResult; stdcall;
- function Get_SupportedTextSelection(out SupportedTextSelection: SupportedTextSelection): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationLegacyIAccessiblePattern
- // フラグ: (0)
- // GUID: {828055AD-355B-4435-86D5-3B51C14A9B1B}
- // *********************************************************************//
- IUIAutomationLegacyIAccessiblePattern = interface(IUnknown)
- ['{828055AD-355B-4435-86D5-3B51C14A9B1B}']
- function Select(flagsSelect: Integer): HResult; stdcall;
- function DoDefaultAction: HResult; stdcall;
- function SetValue(szValue: PWideChar): HResult; stdcall;
- function Get_CurrentChildId(out pRetVal: SYSINT): HResult; stdcall;
- function Get_CurrentName(out pszName: WideString): HResult; stdcall;
- function Get_CurrentValue(out pszValue: WideString): HResult; stdcall;
- function Get_CurrentDescription(out pszDescription: WideString): HResult; stdcall;
- function Get_CurrentRole(out pdwRole: LongWord): HResult; stdcall;
- function Get_CurrentState(out pdwState: LongWord): HResult; stdcall;
- function Get_CurrentHelp(out pszHelp: WideString): HResult; stdcall;
- function Get_CurrentKeyboardShortcut(out pszKeyboardShortcut: WideString): HResult; stdcall;
- function GetCurrentSelection(out pvarSelectedChildren: IUIAutomationElementArray): HResult; stdcall;
- function Get_CurrentDefaultAction(out pszDefaultAction: WideString): HResult; stdcall;
- function Get_CachedChildId(out pRetVal: SYSINT): HResult; stdcall;
- function Get_CachedName(out pszName: WideString): HResult; stdcall;
- function Get_CachedValue(out pszValue: WideString): HResult; stdcall;
- function Get_CachedDescription(out pszDescription: WideString): HResult; stdcall;
- function Get_CachedRole(out pdwRole: LongWord): HResult; stdcall;
- function Get_CachedState(out pdwState: LongWord): HResult; stdcall;
- function Get_CachedHelp(out pszHelp: WideString): HResult; stdcall;
- function Get_CachedKeyboardShortcut(out pszKeyboardShortcut: WideString): HResult; stdcall;
- function GetCachedSelection(out pvarSelectedChildren: IUIAutomationElementArray): HResult; stdcall;
- function Get_CachedDefaultAction(out pszDefaultAction: WideString): HResult; stdcall;
- function GetIAccessible(out ppAccessible: IAccessible): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IAccessible
- // フラグ: (4432) Hidden Dual OleAutomation Dispatchable
- // GUID: {618736E0-3C3D-11CF-810C-00AA00389B71}
- // *********************************************************************//
- IAccessible = interface(IDispatch)
- ['{618736E0-3C3D-11CF-810C-00AA00389B71}']
- function Get_accParent: IDispatch; safecall;
- function Get_accChildCount: Integer; safecall;
- function Get_accChild(varChild: OleVariant): IDispatch; safecall;
- function Get_accName(varChild: OleVariant): WideString; safecall;
- function Get_accValue(varChild: OleVariant): WideString; safecall;
- function Get_accDescription(varChild: OleVariant): WideString; safecall;
- function Get_accRole(varChild: OleVariant): OleVariant; safecall;
- function Get_accState(varChild: OleVariant): OleVariant; safecall;
- function Get_accHelp(varChild: OleVariant): WideString; safecall;
- function Get_accHelpTopic(out pszHelpFile: WideString; varChild: OleVariant): Integer; safecall;
- function Get_accKeyboardShortcut(varChild: OleVariant): WideString; safecall;
- function Get_accFocus: OleVariant; safecall;
- function Get_accSelection: OleVariant; safecall;
- function Get_accDefaultAction(varChild: OleVariant): WideString; safecall;
- procedure accSelect(flagsSelect: Integer; varChild: OleVariant); safecall;
- procedure accLocation(out pxLeft: Integer; out pyTop: Integer; out pcxWidth: Integer;
- out pcyHeight: Integer; varChild: OleVariant); safecall;
- function accNavigate(navDir: Integer; varStart: OleVariant): OleVariant; safecall;
- function accHitTest(xLeft: Integer; yTop: Integer): OleVariant; safecall;
- procedure accDoDefaultAction(varChild: OleVariant); safecall;
- procedure Set_accName(varChild: OleVariant; const pszName: WideString); safecall;
- procedure Set_accValue(varChild: OleVariant; const pszValue: WideString); safecall;
- property accParent: IDispatch read Get_accParent;
- property accChildCount: Integer read Get_accChildCount;
- property accChild[varChild: OleVariant]: IDispatch read Get_accChild;
- property accName[varChild: OleVariant]: WideString read Get_accName write Set_accName;
- property accValue[varChild: OleVariant]: WideString read Get_accValue write Set_accValue;
- property accDescription[varChild: OleVariant]: WideString read Get_accDescription;
- property accRole[varChild: OleVariant]: OleVariant read Get_accRole;
- property accState[varChild: OleVariant]: OleVariant read Get_accState;
- property accHelp[varChild: OleVariant]: WideString read Get_accHelp;
- property accHelpTopic[out pszHelpFile: WideString; varChild: OleVariant]: Integer read Get_accHelpTopic;
- property accKeyboardShortcut[varChild: OleVariant]: WideString read Get_accKeyboardShortcut;
- property accFocus: OleVariant read Get_accFocus;
- property accSelection: OleVariant read Get_accSelection;
- property accDefaultAction[varChild: OleVariant]: WideString read Get_accDefaultAction;
- end;
- // *********************************************************************//
- // DispIntf: IAccessibleDisp
- // フラグ: (4432) Hidden Dual OleAutomation Dispatchable
- // GUID: {618736E0-3C3D-11CF-810C-00AA00389B71}
- // *********************************************************************//
- IAccessibleDisp = dispinterface
- ['{618736E0-3C3D-11CF-810C-00AA00389B71}']
- property accParent: IDispatch readonly dispid -5000;
- property accChildCount: Integer readonly dispid -5001;
- property accChild[varChild: OleVariant]: IDispatch readonly dispid -5002;
- property accName[varChild: OleVariant]: WideString dispid -5003;
- property accValue[varChild: OleVariant]: WideString dispid -5004;
- property accDescription[varChild: OleVariant]: WideString readonly dispid -5005;
- property accRole[varChild: OleVariant]: OleVariant readonly dispid -5006;
- property accState[varChild: OleVariant]: OleVariant readonly dispid -5007;
- property accHelp[varChild: OleVariant]: WideString readonly dispid -5008;
- property accHelpTopic[out pszHelpFile: WideString; varChild: OleVariant]: Integer readonly dispid -5009;
- property accKeyboardShortcut[varChild: OleVariant]: WideString readonly dispid -5010;
- property accFocus: OleVariant readonly dispid -5011;
- property accSelection: OleVariant readonly dispid -5012;
- property accDefaultAction[varChild: OleVariant]: WideString readonly dispid -5013;
- procedure accSelect(flagsSelect: Integer; varChild: OleVariant); dispid -5014;
- procedure accLocation(out pxLeft: Integer; out pyTop: Integer; out pcxWidth: Integer;
- out pcyHeight: Integer; varChild: OleVariant); dispid -5015;
- function accNavigate(navDir: Integer; varStart: OleVariant): OleVariant; dispid -5016;
- function accHitTest(xLeft: Integer; yTop: Integer): OleVariant; dispid -5017;
- procedure accDoDefaultAction(varChild: OleVariant); dispid -5018;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationItemContainerPattern
- // フラグ: (0)
- // GUID: {C690FDB2-27A8-423C-812D-429773C9084E}
- // *********************************************************************//
- IUIAutomationItemContainerPattern = interface(IUnknown)
- ['{C690FDB2-27A8-423C-812D-429773C9084E}']
- function FindItemByProperty(const pStartAfter: IUIAutomationElement; propertyId: SYSINT;
- value: OleVariant; out pFound: IUIAutomationElement): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationVirtualizedItemPattern
- // フラグ: (0)
- // GUID: {6BA3D7A6-04CF-4F11-8793-A8D1CDE9969F}
- // *********************************************************************//
- IUIAutomationVirtualizedItemPattern = interface(IUnknown)
- ['{6BA3D7A6-04CF-4F11-8793-A8D1CDE9969F}']
- function Realize: HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationProxyFactory
- // フラグ: (0)
- // GUID: {85B94ECD-849D-42B6-B94D-D6DB23FDF5A4}
- // *********************************************************************//
- IUIAutomationProxyFactory = interface(IUnknown)
- ['{85B94ECD-849D-42B6-B94D-D6DB23FDF5A4}']
- function CreateProvider(hwnd: HWND; idObject: Integer; idChild: Integer;
- out provider: IRawElementProviderSimple): HResult; stdcall;
- function Get_ProxyFactoryId(out factoryId: WideString): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IRawElementProviderSimple
- // フラグ: (0)
- // GUID: {D6DD68D1-86FD-4332-8666-9ABEDEA2D24C}
- // *********************************************************************//
- IRawElementProviderSimple = interface(IUnknown)
- ['{D6DD68D1-86FD-4332-8666-9ABEDEA2D24C}']
- function Get_ProviderOptions(out pRetVal: ProviderOptions): HResult; stdcall;
- function GetPatternProvider(patternId: SYSINT; out pRetVal: IUnknown): HResult; stdcall;
- function GetPropertyValue(propertyId: SYSINT; out pRetVal: OleVariant): HResult; stdcall;
- function Get_HostRawElementProvider(out pRetVal: IRawElementProviderSimple): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationProxyFactoryEntry
- // フラグ: (0)
- // GUID: {D50E472E-B64B-490C-BCA1-D30696F9F289}
- // *********************************************************************//
- IUIAutomationProxyFactoryEntry = interface(IUnknown)
- ['{D50E472E-B64B-490C-BCA1-D30696F9F289}']
- function Get_ProxyFactory(out factory: IUIAutomationProxyFactory): HResult; stdcall;
- function Get__className(out ClassName: WideString): HResult; stdcall;
- function Get_ImageName(out ImageName: WideString): HResult; stdcall;
- function Get_AllowSubstringMatch(out AllowSubstringMatch: Integer): HResult; stdcall;
- function Get_CanCheckBaseClass(out CanCheckBaseClass: Integer): HResult; stdcall;
- function Get_NeedsAdviseEvents(out adviseEvents: Integer): HResult; stdcall;
- function Set__className(ClassName: PWideChar): HResult; stdcall;
- function Set_ImageName(ImageName: PWideChar): HResult; stdcall;
- function Set_AllowSubstringMatch(AllowSubstringMatch: Integer): HResult; stdcall;
- function Set_CanCheckBaseClass(CanCheckBaseClass: Integer): HResult; stdcall;
- function Set_NeedsAdviseEvents(adviseEvents: Integer): HResult; stdcall;
- function SetWinEventsForAutomationEvent(eventId: SYSINT; propertyId: SYSINT;
- winEvents: PSafeArray): HResult; stdcall;
- function GetWinEventsForAutomationEvent(eventId: SYSINT; propertyId: SYSINT;
- out winEvents: PSafeArray): HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomationProxyFactoryMapping
- // フラグ: (0)
- // GUID: {09E31E18-872D-4873-93D1-1E541EC133FD}
- // *********************************************************************//
- IUIAutomationProxyFactoryMapping = interface(IUnknown)
- ['{09E31E18-872D-4873-93D1-1E541EC133FD}']
- function Get_count(out count: SYSUINT): HResult; stdcall;
- function GetTable(out table: PSafeArray): HResult; stdcall;
- function GetEntry(index: SYSUINT; out entry: IUIAutomationProxyFactoryEntry): HResult; stdcall;
- function SetTable(factoryList: PSafeArray): HResult; stdcall;
- function InsertEntries(before: SYSUINT; factoryList: PSafeArray): HResult; stdcall;
- function InsertEntry(before: SYSUINT; const factory: IUIAutomationProxyFactoryEntry): HResult; stdcall;
- function RemoveEntry(index: SYSUINT): HResult; stdcall;
- function ClearTable: HResult; stdcall;
- function RestoreDefaultTable: HResult; stdcall;
- end;
- // *********************************************************************//
- // インターフェイス: IUIAutomation
- // フラグ: (0)
- // GUID: {30CBE57D-D9D0-452A-AB13-7AC5AC4825EE}
- // *********************************************************************//
- IUIAutomation = interface(IUnknown)
- ['{30CBE57D-D9D0-452A-AB13-7AC5AC4825EE}']
- function CompareElements(const el1: IUIAutomationElement; const el2: IUIAutomationElement;
- out areSame: Integer): HResult; stdcall;
- function CompareRuntimeIds(runtimeId1: PSafeArray; runtimeId2: PSafeArray; out areSame: Integer): HResult; stdcall;
- function GetRootElement(out root: IUIAutomationElement): HResult; stdcall;
- function ElementFromHandle(hwnd: HWND; out element: IUIAutomationElement): HResult; stdcall;
- function ElementFromPoint(pt: tagPOINT; out element: IUIAutomationElement): HResult; stdcall;
- function GetFocusedElement(out element: IUIAutomationElement): HResult; stdcall;
- function GetRootElementBuildCache(const cacheRequest: IUIAutomationCacheRequest;
- out root: IUIAutomationElement): HResult; stdcall;
- function ElementFromHandleBuildCache(hwnd: HWND;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult; stdcall;
- function ElementFromPointBuildCache(pt: tagPOINT;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult; stdcall;
- function GetFocusedElementBuildCache(const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult; stdcall;
- function CreateTreeWalker(const pCondition: IUIAutomationCondition;
- out walker: IUIAutomationTreeWalker): HResult; stdcall;
- function Get_ControlViewWalker(out walker: IUIAutomationTreeWalker): HResult; stdcall;
- function Get_ContentViewWalker(out walker: IUIAutomationTreeWalker): HResult; stdcall;
- function Get_RawViewWalker(out walker: IUIAutomationTreeWalker): HResult; stdcall;
- function Get_RawViewCondition(out condition: IUIAutomationCondition): HResult; stdcall;
- function Get_ControlViewCondition(out condition: IUIAutomationCondition): HResult; stdcall;
- function Get_ContentViewCondition(out condition: IUIAutomationCondition): HResult; stdcall;
- function CreateCacheRequest(out cacheRequest: IUIAutomationCacheRequest): HResult; stdcall;
- function CreateTrueCondition(out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateFalseCondition(out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreatePropertyCondition(propertyId: SYSINT; value: OleVariant;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreatePropertyConditionEx(propertyId: SYSINT; value: OleVariant;
- flags: PropertyConditionFlags;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateAndCondition(const condition1: IUIAutomationCondition;
- const condition2: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateAndConditionFromArray(conditions: PSafeArray;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateAndConditionFromNativeArray(var conditions: IUIAutomationCondition;
- conditionCount: SYSINT;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateOrCondition(const condition1: IUIAutomationCondition;
- const condition2: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateOrConditionFromArray(conditions: PSafeArray;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateOrConditionFromNativeArray(var conditions: IUIAutomationCondition;
- conditionCount: SYSINT;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function CreateNotCondition(const condition: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult; stdcall;
- function AddAutomationEventHandler(eventId: SYSINT; const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationEventHandler): HResult; stdcall;
- function RemoveAutomationEventHandler(eventId: SYSINT; const element: IUIAutomationElement;
- const handler: IUIAutomationEventHandler): HResult; stdcall;
- function AddPropertyChangedEventHandlerNativeArray(const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationPropertyChangedEventHandler;
- var propertyArray: SYSINT;
- propertyCount: SYSINT): HResult; stdcall;
- function AddPropertyChangedEventHandler(const element: IUIAutomationElement; scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationPropertyChangedEventHandler;
- propertyArray: PSafeArray): HResult; stdcall;
- function RemovePropertyChangedEventHandler(const element: IUIAutomationElement;
- const handler: IUIAutomationPropertyChangedEventHandler): HResult; stdcall;
- function AddStructureChangedEventHandler(const element: IUIAutomationElement; scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationStructureChangedEventHandler): HResult; stdcall;
- function RemoveStructureChangedEventHandler(const element: IUIAutomationElement;
- const handler: IUIAutomationStructureChangedEventHandler): HResult; stdcall;
- function AddFocusChangedEventHandler(const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationFocusChangedEventHandler): HResult; stdcall;
- function RemoveFocusChangedEventHandler(const handler: IUIAutomationFocusChangedEventHandler): HResult; stdcall;
- function RemoveAllEventHandlers: HResult; stdcall;
- function IntNativeArrayToSafeArray(var array_: SYSINT; arrayCount: SYSINT;
- out safeArray: PSafeArray): HResult; stdcall;
- function IntSafeArrayToNativeArray(intArray: PSafeArray; out array_: PSYSINT1;
- out arrayCount: SYSINT): HResult; stdcall;
- function RectToVariant(rc: tagRECT; out var_: OleVariant): HResult; stdcall;
- function VariantToRect(var_: OleVariant; out rc: tagRECT): HResult; stdcall;
- function SafeArrayToRectNativeArray(rects: PSafeArray; out rectArray: PUserType2;
- out rectArrayCount: SYSINT): HResult; stdcall;
- function CreateProxyFactoryEntry(const factory: IUIAutomationProxyFactory;
- out factoryEntry: IUIAutomationProxyFactoryEntry): HResult; stdcall;
- function Get_ProxyFactoryMapping(out factoryMapping: IUIAutomationProxyFactoryMapping): HResult; stdcall;
- function GetPropertyProgrammaticName(property_: SYSINT; out name: WideString): HResult; stdcall;
- function GetPatternProgrammaticName(pattern: SYSINT; out name: WideString): HResult; stdcall;
- function PollForPotentialSupportedPatterns(const pElement: IUIAutomationElement;
- out patternIds: PSafeArray;
- out patternNames: PSafeArray): HResult; stdcall;
- function PollForPotentialSupportedProperties(const pElement: IUIAutomationElement;
- out propertyIds: PSafeArray;
- out propertyNames: PSafeArray): HResult; stdcall;
- function CheckNotSupported(value: OleVariant; out isNotSupported: Integer): HResult; stdcall;
- function Get_ReservedNotSupportedValue(out notSupportedValue: IUnknown): HResult; stdcall;
- function Get_ReservedMixedAttributeValue(out mixedAttributeValue: IUnknown): HResult; stdcall;
- function ElementFromIAccessible(const accessible: IAccessible; childId: SYSINT;
- out element: IUIAutomationElement): HResult; stdcall;
- function ElementFromIAccessibleBuildCache(const accessible: IAccessible; childId: SYSINT;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult; stdcall;
- end;
- // *********************************************************************//
- // クラス CUIAutomation は、Create および CreateRemote メソッドを使用して
- // CoClass CUIAutomation が公開するデフォルトのインターフェイス IUIAutomation の
- // インスタンスを作成する。このタイプ ライブラリのサーバーによって
- // 公開された CoClass オブジェクトに対し、オートメーションを行いたい
- // クライアントが用いるために、これらの関数が存在する。
- // *********************************************************************//
- CoCUIAutomation = class
- class function Create: IUIAutomation;
- class function CreateRemote(const MachineName: string): IUIAutomation;
- end;
- // *********************************************************************//
- // OLE サーバー プロキシ クラス宣言
- // サーバー オブジェクト: TCUIAutomation
- // ヘルプ文字列: The Central Class for UIAutomation
- // デフォルト インターフェイス: IUIAutomation
- // デフォルト インターフェイス ディスパッチ?: No
- // イベント インターフェイス:
- // タイプ フラグ : (2) CanCreate
- // *********************************************************************//
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- TCUIAutomationProperties= class;
- {$ENDIF}
- TCUIAutomation = class(TOleServer)
- private
- FIntf: IUIAutomation;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps: TCUIAutomationProperties;
- function GetServerProperties: TCUIAutomationProperties;
- {$ENDIF}
- function GetDefaultInterface: IUIAutomation;
- protected
- procedure InitServerData; override;
- function Get_ContentViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- function Get_RawViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- function Get_RawViewCondition(out condition: IUIAutomationCondition): HResult;
- function Get_ControlViewCondition(out condition: IUIAutomationCondition): HResult;
- function Get_ContentViewCondition(out condition: IUIAutomationCondition): HResult;
- function Get_ProxyFactoryMapping(out factoryMapping: IUIAutomationProxyFactoryMapping): HResult;
- function Get_ReservedNotSupportedValue(out notSupportedValue: IUnknown): HResult;
- function Get_ReservedMixedAttributeValue(out mixedAttributeValue: IUnknown): HResult;
- public
- constructor Create(AOwner: TComponent); override;
- destructor Destroy; override;
- procedure Connect; override;
- procedure ConnectTo(svrIntf: IUIAutomation);
- procedure Disconnect; override;
- function Get_ControlViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- function CompareElements(const el1: IUIAutomationElement; const el2: IUIAutomationElement;
- out areSame: Integer): HResult;
- function CompareRuntimeIds(runtimeId1: PSafeArray; runtimeId2: PSafeArray; out areSame: Integer): HResult;
- function GetRootElement(out root: IUIAutomationElement): HResult;
- function ElementFromHandle(hwnd: HWND; out element: IUIAutomationElement): HResult;
- function ElementFromPoint(pt: tagPOINT; out element: IUIAutomationElement): HResult;
- function GetFocusedElement(out element: IUIAutomationElement): HResult;
- function GetRootElementBuildCache(const cacheRequest: IUIAutomationCacheRequest;
- out root: IUIAutomationElement): HResult;
- function ElementFromHandleBuildCache(hwnd: HWND;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- function ElementFromPointBuildCache(pt: tagPOINT;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- function GetFocusedElementBuildCache(const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- function CreateTreeWalker(const pCondition: IUIAutomationCondition;
- out walker: IUIAutomationTreeWalker): HResult;
- function CreateCacheRequest(out cacheRequest: IUIAutomationCacheRequest): HResult;
- function CreateTrueCondition(out newCondition: IUIAutomationCondition): HResult;
- function CreateFalseCondition(out newCondition: IUIAutomationCondition): HResult;
- function CreatePropertyCondition(propertyId: SYSINT; value: OleVariant;
- out newCondition: IUIAutomationCondition): HResult;
- function CreatePropertyConditionEx(propertyId: SYSINT; value: OleVariant;
- flags: PropertyConditionFlags;
- out newCondition: IUIAutomationCondition): HResult;
- function CreateAndCondition(const condition1: IUIAutomationCondition;
- const condition2: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult;
- function CreateAndConditionFromArray(conditions: PSafeArray;
- out newCondition: IUIAutomationCondition): HResult;
- function CreateAndConditionFromNativeArray(var conditions: IUIAutomationCondition;
- conditionCount: SYSINT;
- out newCondition: IUIAutomationCondition): HResult;
- function CreateOrCondition(const condition1: IUIAutomationCondition;
- const condition2: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult;
- function CreateOrConditionFromArray(conditions: PSafeArray;
- out newCondition: IUIAutomationCondition): HResult;
- function CreateOrConditionFromNativeArray(var conditions: IUIAutomationCondition;
- conditionCount: SYSINT;
- out newCondition: IUIAutomationCondition): HResult;
- function CreateNotCondition(const condition: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult;
- function AddAutomationEventHandler(eventId: SYSINT; const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationEventHandler): HResult;
- function RemoveAutomationEventHandler(eventId: SYSINT; const element: IUIAutomationElement;
- const handler: IUIAutomationEventHandler): HResult;
- function AddPropertyChangedEventHandlerNativeArray(const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationPropertyChangedEventHandler;
- var propertyArray: SYSINT;
- propertyCount: SYSINT): HResult;
- function AddPropertyChangedEventHandler(const element: IUIAutomationElement; scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationPropertyChangedEventHandler;
- propertyArray: PSafeArray): HResult;
- function RemovePropertyChangedEventHandler(const element: IUIAutomationElement;
- const handler: IUIAutomationPropertyChangedEventHandler): HResult;
- function AddStructureChangedEventHandler(const element: IUIAutomationElement; scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationStructureChangedEventHandler): HResult;
- function RemoveStructureChangedEventHandler(const element: IUIAutomationElement;
- const handler: IUIAutomationStructureChangedEventHandler): HResult;
- function AddFocusChangedEventHandler(const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationFocusChangedEventHandler): HResult;
- function RemoveFocusChangedEventHandler(const handler: IUIAutomationFocusChangedEventHandler): HResult;
- function RemoveAllEventHandlers: HResult;
- function IntNativeArrayToSafeArray(var array_: SYSINT; arrayCount: SYSINT;
- out safeArray: PSafeArray): HResult;
- function IntSafeArrayToNativeArray(intArray: PSafeArray; out array_: PSYSINT1;
- out arrayCount: SYSINT): HResult;
- function RectToVariant(rc: tagRECT; out var_: OleVariant): HResult;
- function VariantToRect(var_: OleVariant; out rc: tagRECT): HResult;
- function SafeArrayToRectNativeArray(rects: PSafeArray; out rectArray: PUserType2;
- out rectArrayCount: SYSINT): HResult;
- function CreateProxyFactoryEntry(const factory: IUIAutomationProxyFactory;
- out factoryEntry: IUIAutomationProxyFactoryEntry): HResult;
- function GetPropertyProgrammaticName(property_: SYSINT; out name: WideString): HResult;
- function GetPatternProgrammaticName(pattern: SYSINT; out name: WideString): HResult;
- function PollForPotentialSupportedPatterns(const pElement: IUIAutomationElement;
- out patternIds: PSafeArray;
- out patternNames: PSafeArray): HResult;
- function PollForPotentialSupportedProperties(const pElement: IUIAutomationElement;
- out propertyIds: PSafeArray;
- out propertyNames: PSafeArray): HResult;
- function CheckNotSupported(value: OleVariant; out isNotSupported: Integer): HResult;
- function ElementFromIAccessible(const accessible: IAccessible; childId: SYSINT;
- out element: IUIAutomationElement): HResult;
- function ElementFromIAccessibleBuildCache(const accessible: IAccessible; childId: SYSINT;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- property DefaultInterface: IUIAutomation read GetDefaultInterface;
- published
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- property Server: TCUIAutomationProperties read GetServerProperties;
- {$ENDIF}
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- // *********************************************************************//
- // OLE サーバー プロパティ プロキシ クラス
- // サーバー オブジェクト: TCUIAutomation
- // (このオブジェクトは、このサーバーのプロパティを編集できるようにするため
- // IDE のプロパティ インスペクタで使用されます)
- // *********************************************************************//
- TCUIAutomationProperties = class(TPersistent)
- private
- FServer: TCUIAutomation;
- function GetDefaultInterface: IUIAutomation;
- constructor Create(AServer: TCUIAutomation);
- protected
- function Get_ControlViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- function Get_ContentViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- function Get_RawViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- function Get_RawViewCondition(out condition: IUIAutomationCondition): HResult;
- function Get_ControlViewCondition(out condition: IUIAutomationCondition): HResult;
- function Get_ContentViewCondition(out condition: IUIAutomationCondition): HResult;
- function Get_ProxyFactoryMapping(out factoryMapping: IUIAutomationProxyFactoryMapping): HResult;
- function Get_ReservedNotSupportedValue(out notSupportedValue: IUnknown): HResult;
- function Get_ReservedMixedAttributeValue(out mixedAttributeValue: IUnknown): HResult;
- public
- property DefaultInterface: IUIAutomation read GetDefaultInterface;
- published
- end;
- {$ENDIF}
- procedure Register;
- resourcestring
- dtlServerPage = 'Servers';
- dtlOcxPage = 'ActiveX';
- implementation
- uses ComObj;
- class function CoCUIAutomation.Create: IUIAutomation;
- begin
- Result := CreateComObject(CLASS_CUIAutomation) as IUIAutomation;
- end;
- class function CoCUIAutomation.CreateRemote(const MachineName: string): IUIAutomation;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_CUIAutomation) as IUIAutomation;
- end;
- procedure TCUIAutomation.InitServerData;
- const
- CServerData: TServerData = (
- ClassID: '{FF48DBA4-60EF-4201-AA87-54103EEF594E}';
- IntfIID: '{30CBE57D-D9D0-452A-AB13-7AC5AC4825EE}';
- EventIID: '';
- LicenseKey: nil;
- Version: 500);
- begin
- ServerData := @CServerData;
- end;
- procedure TCUIAutomation.Connect;
- var
- punk: IUnknown;
- begin
- if FIntf = nil then
- begin
- punk := GetServer;
- Fintf:= punk as IUIAutomation;
- end;
- end;
- procedure TCUIAutomation.ConnectTo(svrIntf: IUIAutomation);
- begin
- Disconnect;
- FIntf := svrIntf;
- end;
- procedure TCUIAutomation.DisConnect;
- begin
- if Fintf <> nil then
- begin
- FIntf := nil;
- end;
- end;
- function TCUIAutomation.GetDefaultInterface: IUIAutomation;
- begin
- if FIntf = nil then
- Connect;
- Assert(FIntf <> nil, 'DefaultInterface が NULL です。コンポーネントはサーバーに接続していません。このオペレーションの前に "Connect" または "ConnectTo" を呼び出す必要があります。');
- Result := FIntf;
- end;
- constructor TCUIAutomation.Create(AOwner: TComponent);
- begin
- inherited Create(AOwner);
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps := TCUIAutomationProperties.Create(Self);
- {$ENDIF}
- end;
- destructor TCUIAutomation.Destroy;
- begin
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- FProps.Free;
- {$ENDIF}
- inherited Destroy;
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- function TCUIAutomation.GetServerProperties: TCUIAutomationProperties;
- begin
- Result := FProps;
- end;
- {$ENDIF}
- function TCUIAutomation.Get_ControlViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- begin
- Result := DefaultInterface.Get_ControlViewWalker(walker);
- end;
- function TCUIAutomation.Get_ContentViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- begin
- Result := DefaultInterface.Get_ContentViewWalker(walker);
- end;
- function TCUIAutomation.Get_RawViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- begin
- Result := DefaultInterface.Get_RawViewWalker(walker);
- end;
- function TCUIAutomation.Get_RawViewCondition(out condition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.Get_RawViewCondition(condition);
- end;
- function TCUIAutomation.Get_ControlViewCondition(out condition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.Get_ControlViewCondition(condition);
- end;
- function TCUIAutomation.Get_ContentViewCondition(out condition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.Get_ContentViewCondition(condition);
- end;
- function TCUIAutomation.Get_ProxyFactoryMapping(out factoryMapping: IUIAutomationProxyFactoryMapping): HResult;
- begin
- Result := DefaultInterface.Get_ProxyFactoryMapping(factoryMapping);
- end;
- function TCUIAutomation.Get_ReservedNotSupportedValue(out notSupportedValue: IUnknown): HResult;
- begin
- Result := DefaultInterface.Get_ReservedNotSupportedValue(notSupportedValue);
- end;
- function TCUIAutomation.Get_ReservedMixedAttributeValue(out mixedAttributeValue: IUnknown): HResult;
- begin
- Result := DefaultInterface.Get_ReservedMixedAttributeValue(mixedAttributeValue);
- end;
- function TCUIAutomation.CompareElements(const el1: IUIAutomationElement;
- const el2: IUIAutomationElement; out areSame: Integer): HResult;
- begin
- Result := DefaultInterface.CompareElements(el1, el2, areSame);
- end;
- function TCUIAutomation.CompareRuntimeIds(runtimeId1: PSafeArray; runtimeId2: PSafeArray;
- out areSame: Integer): HResult;
- begin
- Result := DefaultInterface.CompareRuntimeIds(runtimeId1, runtimeId2, areSame);
- end;
- function TCUIAutomation.GetRootElement(out root: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.GetRootElement(root);
- end;
- function TCUIAutomation.ElementFromHandle(hwnd: HWND; out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.ElementFromHandle(hwnd, element);
- end;
- function TCUIAutomation.ElementFromPoint(pt: tagPOINT; out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.ElementFromPoint(pt, element);
- end;
- function TCUIAutomation.GetFocusedElement(out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.GetFocusedElement(element);
- end;
- function TCUIAutomation.GetRootElementBuildCache(const cacheRequest: IUIAutomationCacheRequest;
- out root: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.GetRootElementBuildCache(cacheRequest, root);
- end;
- function TCUIAutomation.ElementFromHandleBuildCache(hwnd: HWND;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.ElementFromHandleBuildCache(hwnd, cacheRequest, element);
- end;
- function TCUIAutomation.ElementFromPointBuildCache(pt: tagPOINT;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.ElementFromPointBuildCache(pt, cacheRequest, element);
- end;
- function TCUIAutomation.GetFocusedElementBuildCache(const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.GetFocusedElementBuildCache(cacheRequest, element);
- end;
- function TCUIAutomation.CreateTreeWalker(const pCondition: IUIAutomationCondition;
- out walker: IUIAutomationTreeWalker): HResult;
- begin
- Result := DefaultInterface.CreateTreeWalker(pCondition, walker);
- end;
- function TCUIAutomation.CreateCacheRequest(out cacheRequest: IUIAutomationCacheRequest): HResult;
- begin
- Result := DefaultInterface.CreateCacheRequest(cacheRequest);
- end;
- function TCUIAutomation.CreateTrueCondition(out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateTrueCondition(newCondition);
- end;
- function TCUIAutomation.CreateFalseCondition(out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateFalseCondition(newCondition);
- end;
- function TCUIAutomation.CreatePropertyCondition(propertyId: SYSINT; value: OleVariant;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreatePropertyCondition(propertyId, value, newCondition);
- end;
- function TCUIAutomation.CreatePropertyConditionEx(propertyId: SYSINT; value: OleVariant;
- flags: PropertyConditionFlags;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreatePropertyConditionEx(propertyId, value, flags, newCondition);
- end;
- function TCUIAutomation.CreateAndCondition(const condition1: IUIAutomationCondition;
- const condition2: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateAndCondition(condition1, condition2, newCondition);
- end;
- function TCUIAutomation.CreateAndConditionFromArray(conditions: PSafeArray;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateAndConditionFromArray(conditions, newCondition);
- end;
- function TCUIAutomation.CreateAndConditionFromNativeArray(var conditions: IUIAutomationCondition;
- conditionCount: SYSINT;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateAndConditionFromNativeArray(conditions, conditionCount,
- newCondition);
- end;
- function TCUIAutomation.CreateOrCondition(const condition1: IUIAutomationCondition;
- const condition2: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateOrCondition(condition1, condition2, newCondition);
- end;
- function TCUIAutomation.CreateOrConditionFromArray(conditions: PSafeArray;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateOrConditionFromArray(conditions, newCondition);
- end;
- function TCUIAutomation.CreateOrConditionFromNativeArray(var conditions: IUIAutomationCondition;
- conditionCount: SYSINT;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateOrConditionFromNativeArray(conditions, conditionCount,
- newCondition);
- end;
- function TCUIAutomation.CreateNotCondition(const condition: IUIAutomationCondition;
- out newCondition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.CreateNotCondition(condition, newCondition);
- end;
- function TCUIAutomation.AddAutomationEventHandler(eventId: SYSINT;
- const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationEventHandler): HResult;
- begin
- Result := DefaultInterface.AddAutomationEventHandler(eventId, element, scope, cacheRequest,
- handler);
- end;
- function TCUIAutomation.RemoveAutomationEventHandler(eventId: SYSINT;
- const element: IUIAutomationElement;
- const handler: IUIAutomationEventHandler): HResult;
- begin
- Result := DefaultInterface.RemoveAutomationEventHandler(eventId, element, handler);
- end;
- function TCUIAutomation.AddPropertyChangedEventHandlerNativeArray(const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationPropertyChangedEventHandler;
- var propertyArray: SYSINT;
- propertyCount: SYSINT): HResult;
- begin
- Result := DefaultInterface.AddPropertyChangedEventHandlerNativeArray(element, scope,
- cacheRequest, handler,
- propertyArray, propertyCount);
- end;
- function TCUIAutomation.AddPropertyChangedEventHandler(const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationPropertyChangedEventHandler;
- propertyArray: PSafeArray): HResult;
- begin
- Result := DefaultInterface.AddPropertyChangedEventHandler(element, scope, cacheRequest, handler,
- propertyArray);
- end;
- function TCUIAutomation.RemovePropertyChangedEventHandler(const element: IUIAutomationElement;
- const handler: IUIAutomationPropertyChangedEventHandler): HResult;
- begin
- Result := DefaultInterface.RemovePropertyChangedEventHandler(element, handler);
- end;
- function TCUIAutomation.AddStructureChangedEventHandler(const element: IUIAutomationElement;
- scope: TreeScope;
- const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationStructureChangedEventHandler): HResult;
- begin
- Result := DefaultInterface.AddStructureChangedEventHandler(element, scope, cacheRequest, handler);
- end;
- function TCUIAutomation.RemoveStructureChangedEventHandler(const element: IUIAutomationElement;
- const handler: IUIAutomationStructureChangedEventHandler): HResult;
- begin
- Result := DefaultInterface.RemoveStructureChangedEventHandler(element, handler);
- end;
- function TCUIAutomation.AddFocusChangedEventHandler(const cacheRequest: IUIAutomationCacheRequest;
- const handler: IUIAutomationFocusChangedEventHandler): HResult;
- begin
- Result := DefaultInterface.AddFocusChangedEventHandler(cacheRequest, handler);
- end;
- function TCUIAutomation.RemoveFocusChangedEventHandler(const handler: IUIAutomationFocusChangedEventHandler): HResult;
- begin
- Result := DefaultInterface.RemoveFocusChangedEventHandler(handler);
- end;
- function TCUIAutomation.RemoveAllEventHandlers: HResult;
- begin
- Result := DefaultInterface.RemoveAllEventHandlers;
- end;
- function TCUIAutomation.IntNativeArrayToSafeArray(var array_: SYSINT; arrayCount: SYSINT;
- out safeArray: PSafeArray): HResult;
- begin
- Result := DefaultInterface.IntNativeArrayToSafeArray(array_, arrayCount, safeArray);
- end;
- function TCUIAutomation.IntSafeArrayToNativeArray(intArray: PSafeArray; out array_: PSYSINT1;
- out arrayCount: SYSINT): HResult;
- begin
- Result := DefaultInterface.IntSafeArrayToNativeArray(intArray, array_, arrayCount);
- end;
- function TCUIAutomation.RectToVariant(rc: tagRECT; out var_: OleVariant): HResult;
- begin
- Result := DefaultInterface.RectToVariant(rc, var_);
- end;
- function TCUIAutomation.VariantToRect(var_: OleVariant; out rc: tagRECT): HResult;
- begin
- Result := DefaultInterface.VariantToRect(var_, rc);
- end;
- function TCUIAutomation.SafeArrayToRectNativeArray(rects: PSafeArray; out rectArray: PUserType2;
- out rectArrayCount: SYSINT): HResult;
- begin
- Result := DefaultInterface.SafeArrayToRectNativeArray(rects, rectArray, rectArrayCount);
- end;
- function TCUIAutomation.CreateProxyFactoryEntry(const factory: IUIAutomationProxyFactory;
- out factoryEntry: IUIAutomationProxyFactoryEntry): HResult;
- begin
- Result := DefaultInterface.CreateProxyFactoryEntry(factory, factoryEntry);
- end;
- function TCUIAutomation.GetPropertyProgrammaticName(property_: SYSINT; out name: WideString): HResult;
- begin
- Result := DefaultInterface.GetPropertyProgrammaticName(property_, name);
- end;
- function TCUIAutomation.GetPatternProgrammaticName(pattern: SYSINT; out name: WideString): HResult;
- begin
- Result := DefaultInterface.GetPatternProgrammaticName(pattern, name);
- end;
- function TCUIAutomation.PollForPotentialSupportedPatterns(const pElement: IUIAutomationElement;
- out patternIds: PSafeArray;
- out patternNames: PSafeArray): HResult;
- begin
- Result := DefaultInterface.PollForPotentialSupportedPatterns(pElement, patternIds, patternNames);
- end;
- function TCUIAutomation.PollForPotentialSupportedProperties(const pElement: IUIAutomationElement;
- out propertyIds: PSafeArray;
- out propertyNames: PSafeArray): HResult;
- begin
- Result := DefaultInterface.PollForPotentialSupportedProperties(pElement, propertyIds,
- propertyNames);
- end;
- function TCUIAutomation.CheckNotSupported(value: OleVariant; out isNotSupported: Integer): HResult;
- begin
- Result := DefaultInterface.CheckNotSupported(value, isNotSupported);
- end;
- function TCUIAutomation.ElementFromIAccessible(const accessible: IAccessible; childId: SYSINT;
- out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.ElementFromIAccessible(accessible, childId, element);
- end;
- function TCUIAutomation.ElementFromIAccessibleBuildCache(const accessible: IAccessible;
- childId: SYSINT;
- const cacheRequest: IUIAutomationCacheRequest;
- out element: IUIAutomationElement): HResult;
- begin
- Result := DefaultInterface.ElementFromIAccessibleBuildCache(accessible, childId, cacheRequest,
- element);
- end;
- {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
- constructor TCUIAutomationProperties.Create(AServer: TCUIAutomation);
- begin
- inherited Create;
- FServer := AServer;
- end;
- function TCUIAutomationProperties.GetDefaultInterface: IUIAutomation;
- begin
- Result := FServer.DefaultInterface;
- end;
- function TCUIAutomationProperties.Get_ControlViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- begin
- Result := DefaultInterface.Get_ControlViewWalker(walker);
- end;
- function TCUIAutomationProperties.Get_ContentViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- begin
- Result := DefaultInterface.Get_ContentViewWalker(walker);
- end;
- function TCUIAutomationProperties.Get_RawViewWalker(out walker: IUIAutomationTreeWalker): HResult;
- begin
- Result := DefaultInterface.Get_RawViewWalker(walker);
- end;
- function TCUIAutomationProperties.Get_RawViewCondition(out condition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.Get_RawViewCondition(condition);
- end;
- function TCUIAutomationProperties.Get_ControlViewCondition(out condition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.Get_ControlViewCondition(condition);
- end;
- function TCUIAutomationProperties.Get_ContentViewCondition(out condition: IUIAutomationCondition): HResult;
- begin
- Result := DefaultInterface.Get_ContentViewCondition(condition);
- end;
- function TCUIAutomationProperties.Get_ProxyFactoryMapping(out factoryMapping: IUIAutomationProxyFactoryMapping): HResult;
- begin
- Result := DefaultInterface.Get_ProxyFactoryMapping(factoryMapping);
- end;
- function TCUIAutomationProperties.Get_ReservedNotSupportedValue(out notSupportedValue: IUnknown): HResult;
- begin
- Result := DefaultInterface.Get_ReservedNotSupportedValue(notSupportedValue);
- end;
- function TCUIAutomationProperties.Get_ReservedMixedAttributeValue(out mixedAttributeValue: IUnknown): HResult;
- begin
- Result := DefaultInterface.Get_ReservedMixedAttributeValue(mixedAttributeValue);
- end;
- {$ENDIF}
- procedure Register;
- begin
- RegisterComponents(dtlServerPage, [TCUIAutomation]);
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement