-
Notifications
You must be signed in to change notification settings - Fork 316
/
UIAutomationCore.idl
executable file
·1343 lines (1168 loc) · 47 KB
/
UIAutomationCore.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// -------------------------------------------------------------
// UIAutomationCore.idl
//
// UIAutomation interface definitions and related types and enums
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// -------------------------------------------------------------
cpp_quote("// -------------------------------------------------------------")
cpp_quote("// UIAutomationCore.H")
cpp_quote("//")
cpp_quote("// UIAutomation interface definitions and related types and enums")
cpp_quote("// (Generated from UIAutomationCore.idl)")
cpp_quote("//")
cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.")
cpp_quote("// -------------------------------------------------------------")
#define DO_NO_IMPORTS
import "oaidl.idl";
import "oleacc.idl";
// Base enums
enum NavigateDirection
{
NavigateDirection_Parent = 0,
NavigateDirection_NextSibling = 1,
NavigateDirection_PreviousSibling = 2,
NavigateDirection_FirstChild = 3,
NavigateDirection_LastChild = 4
};
enum ProviderOptions
{
ProviderOptions_ClientSideProvider = 0x0001,
ProviderOptions_ServerSideProvider = 0x0002,
ProviderOptions_NonClientAreaProvider = 0x0004,
ProviderOptions_OverrideProvider = 0x0008,
ProviderOptions_ProviderOwnsSetFocus = 0x0010,
ProviderOptions_UseComThreading = 0x0020,
ProviderOptions_RefuseNonClientSupport = 0x0040,
ProviderOptions_HasNativeIAccessible = 0x0080,
ProviderOptions_UseClientCoordinates = 0x0100,
};
cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(ProviderOptions)")
// Pattern, Event & property enums
enum StructureChangeType
{
StructureChangeType_ChildAdded,
StructureChangeType_ChildRemoved,
StructureChangeType_ChildrenInvalidated,
StructureChangeType_ChildrenBulkAdded,
StructureChangeType_ChildrenBulkRemoved,
StructureChangeType_ChildrenReordered,
};
enum TextEditChangeType
{
TextEditChangeType_None = 0,
TextEditChangeType_AutoCorrect = 1,
TextEditChangeType_Composition = 2,
TextEditChangeType_CompositionFinalized = 3
};
enum OrientationType
{
OrientationType_None = 0,
OrientationType_Horizontal = 1,
OrientationType_Vertical = 2
};
enum DockPosition
{
DockPosition_Top = 0,
DockPosition_Left = 1,
DockPosition_Bottom = 2,
DockPosition_Right = 3,
DockPosition_Fill = 4,
DockPosition_None = 5
};
enum ExpandCollapseState
{
ExpandCollapseState_Collapsed = 0,
ExpandCollapseState_Expanded = 1,
ExpandCollapseState_PartiallyExpanded = 2,
ExpandCollapseState_LeafNode = 3
};
enum ScrollAmount
{
ScrollAmount_LargeDecrement = 0,
ScrollAmount_SmallDecrement = 1,
ScrollAmount_NoAmount = 2,
ScrollAmount_LargeIncrement = 3,
ScrollAmount_SmallIncrement = 4
};
enum RowOrColumnMajor
{
RowOrColumnMajor_RowMajor = 0,
RowOrColumnMajor_ColumnMajor = 1,
RowOrColumnMajor_Indeterminate = 2
};
enum ToggleState
{
ToggleState_Off = 0,
ToggleState_On = 1,
ToggleState_Indeterminate = 2
};
enum WindowVisualState
{
WindowVisualState_Normal = 0,
WindowVisualState_Maximized = 1,
WindowVisualState_Minimized = 2
};
enum SynchronizedInputType
{
SynchronizedInputType_KeyUp = 0x01,
SynchronizedInputType_KeyDown = 0x02,
SynchronizedInputType_LeftMouseUp = 0x04,
SynchronizedInputType_LeftMouseDown = 0x08,
SynchronizedInputType_RightMouseUp = 0x10,
SynchronizedInputType_RightMouseDown = 0x20
};
cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SynchronizedInputType)")
enum WindowInteractionState
{
WindowInteractionState_Running = 0,
WindowInteractionState_Closing = 1,
WindowInteractionState_ReadyForUserInteraction = 2,
WindowInteractionState_BlockedByModalWindow = 3,
WindowInteractionState_NotResponding = 4
};
// Text enums
enum TextUnit
{
TextUnit_Character = 0,
TextUnit_Format = 1,
TextUnit_Word = 2,
TextUnit_Line = 3,
TextUnit_Paragraph = 4,
TextUnit_Page = 5,
TextUnit_Document = 6
};
enum TextPatternRangeEndpoint
{
TextPatternRangeEndpoint_Start = 0,
TextPatternRangeEndpoint_End = 1
};
enum SupportedTextSelection
{
SupportedTextSelection_None = 0,
SupportedTextSelection_Single = 1,
SupportedTextSelection_Multiple = 2
};
enum LiveSetting
{
Off = 0,
Polite = 1,
Assertive = 2
};
enum ActiveEnd
{
ActiveEnd_None = 0,
ActiveEnd_Start = 1,
ActiveEnd_End = 2
};
enum CaretPosition
{
CaretPosition_Unknown = 0,
CaretPosition_EndOfLine = 1,
CaretPosition_BeginningOfLine = 2
};
enum CaretBidiMode
{
CaretBidiMode_LTR = 0,
CaretBidiMode_RTL = 1
};
enum ZoomUnit
{
ZoomUnit_NoAmount = 0,
ZoomUnit_LargeDecrement = 1,
ZoomUnit_SmallDecrement = 2,
ZoomUnit_LargeIncrement = 3,
ZoomUnit_SmallIncrement = 4
};
// Text attributes
enum AnimationStyle
{
AnimationStyle_None = 0,
AnimationStyle_LasVegasLights = 1,
AnimationStyle_BlinkingBackground = 2,
AnimationStyle_SparkleText = 3,
AnimationStyle_MarchingBlackAnts = 4,
AnimationStyle_MarchingRedAnts = 5,
AnimationStyle_Shimmer = 6,
AnimationStyle_Other = -1
};
enum BulletStyle
{
BulletStyle_None = 0,
BulletStyle_HollowRoundBullet = 1,
BulletStyle_FilledRoundBullet = 2,
BulletStyle_HollowSquareBullet = 3,
BulletStyle_FilledSquareBullet = 4,
BulletStyle_DashBullet = 5,
BulletStyle_Other = -1
};
enum CapStyle
{
CapStyle_None = 0,
CapStyle_SmallCap = 1,
CapStyle_AllCap = 2,
CapStyle_AllPetiteCaps = 3,
CapStyle_PetiteCaps = 4,
CapStyle_Unicase = 5,
CapStyle_Titling = 6,
CapStyle_Other = -1
};
enum FlowDirections
{
FlowDirections_Default = 0,
FlowDirections_RightToLeft = 1,
FlowDirections_BottomToTop = 2,
FlowDirections_Vertical = 4
};
enum HorizontalTextAlignment
{
HorizontalTextAlignment_Left = 0,
HorizontalTextAlignment_Centered = 1,
HorizontalTextAlignment_Right = 2,
HorizontalTextAlignment_Justified = 3
};
enum OutlineStyles
{
OutlineStyles_None = 0,
OutlineStyles_Outline = 1,
OutlineStyles_Shadow = 2,
OutlineStyles_Engraved = 4,
OutlineStyles_Embossed = 8
};
enum TextDecorationLineStyle
{
TextDecorationLineStyle_None = 0,
TextDecorationLineStyle_Single = 1,
TextDecorationLineStyle_WordsOnly = 2,
TextDecorationLineStyle_Double = 3,
TextDecorationLineStyle_Dot = 4,
TextDecorationLineStyle_Dash = 5,
TextDecorationLineStyle_DashDot = 6,
TextDecorationLineStyle_DashDotDot = 7,
TextDecorationLineStyle_Wavy = 8,
TextDecorationLineStyle_ThickSingle = 9,
TextDecorationLineStyle_DoubleWavy = 11,
TextDecorationLineStyle_ThickWavy = 12,
TextDecorationLineStyle_LongDash = 13,
TextDecorationLineStyle_ThickDash = 14,
TextDecorationLineStyle_ThickDashDot = 15,
TextDecorationLineStyle_ThickDashDotDot = 16,
TextDecorationLineStyle_ThickDot = 17,
TextDecorationLineStyle_ThickLongDash = 18,
TextDecorationLineStyle_Other = -1,
};
// Types...
typedef int PROPERTYID;
typedef int PATTERNID;
typedef int EVENTID;
typedef int TEXTATTRIBUTEID;
typedef int CONTROLTYPEID;
struct UiaRect
{
double left;
double top;
double width;
double height;
};
struct UiaPoint
{
double x;
double y;
};
//
// IRawElementProviderSimple
//
[object, uuid(d6dd68d1-86fd-4332-8666-9abedea2d24c), pointer_default(unique)]
interface IRawElementProviderSimple : IUnknown
{
[propget] HRESULT ProviderOptions (
[out, retval] enum ProviderOptions * pRetVal );
HRESULT GetPatternProvider (
[in] PATTERNID patternId,
[out, retval] IUnknown ** pRetVal );
HRESULT GetPropertyValue (
[in] PROPERTYID propertyId,
[out, retval] VARIANT * pRetVal );
[propget] HRESULT HostRawElementProvider (
[out, retval] IRawElementProviderSimple ** pRetVal );
}
//
// IRawElementProviderSimple2
//
[object, uuid(A0A839A9-8DA1-4A82-806A-8E0D44E79F56), pointer_default(unique)]
interface IRawElementProviderSimple2 : IRawElementProviderSimple
{
HRESULT ShowContextMenu ();
}
interface IRawElementProviderFragmentRoot;
//
// IRawElementProviderFragment
//
[object, uuid(f7063da8-8359-439c-9297-bbc5299a7d87), pointer_default(unique)]
interface IRawElementProviderFragment : IUnknown
{
HRESULT Navigate (
[in] enum NavigateDirection direction,
[out, retval] IRawElementProviderFragment ** pRetVal );
HRESULT GetRuntimeId (
[out,retval] SAFEARRAY(int) * pRetVal );
HRESULT get_BoundingRectangle (
[out,retval] struct UiaRect * pRetVal );
HRESULT GetEmbeddedFragmentRoots (
[out,retval] SAFEARRAY(VARIANT) * pRetVal );
HRESULT SetFocus ();
[propget] HRESULT FragmentRoot (
[out, retval] IRawElementProviderFragmentRoot ** pRetVal );
}
//
// IRawElementProviderFragmentRoot
//
[object, uuid(620ce2a5-ab8f-40a9-86cb-de3c75599b58), pointer_default(unique)]
interface IRawElementProviderFragmentRoot : IUnknown
{
HRESULT ElementProviderFromPoint (
[in] double x,
[in] double y,
[out, retval] IRawElementProviderFragment ** pRetVal );
HRESULT GetFocus (
[out,retval] IRawElementProviderFragment ** pRetVal );
}
//
// IRawElementProviderAdviseEvents
//
[object, uuid(a407b27b-0f6d-4427-9292-473c7bf93258), pointer_default(unique)]
interface IRawElementProviderAdviseEvents : IUnknown
{
HRESULT AdviseEventAdded (
[in] EVENTID eventId,
[in] SAFEARRAY(PROPERTYID) propertyIDs);
HRESULT AdviseEventRemoved(
[in] EVENTID eventId,
[in] SAFEARRAY(PROPERTYID) propertyIDs);
}
//
// IRawElementProviderHwndOverride
//
[object, uuid(1d5df27c-8947-4425-b8d9-79787bb460b8), pointer_default(unique)]
interface IRawElementProviderHwndOverride : IUnknown
{
HRESULT GetOverrideProviderForHwnd(
[in] HWND hwnd,
[out, retval] IRawElementProviderSimple ** pRetVal);
}
//
// IRawElementProviderWindowlessSite
//
// Implemented by a windowless control site in order to enable the control
// to expose its UIA elements, properties, and events.
[object, uuid(0a2a93cc-bfad-42ac-9b2e-0991fb0d3ea0), pointer_default(unique)]
interface IRawElementProviderWindowlessSite : IUnknown
{
// Get an adjacent fragment for navigation.
// The supported directions are Parent, NextSibling, and PreviousSibling.
// A windowless control would know its own children.
HRESULT GetAdjacentFragment(
[in] enum NavigateDirection direction,
[out,retval] IRawElementProviderFragment ** ppParent);
// Returns a runtime ID unique to this site
HRESULT GetRuntimeIdPrefix(
[out,retval] SAFEARRAY(int) * pRetVal );
}
//
// IRawElementProviderHostingAccessibles
//
// Implemented by a root element for an HWND to indicate that the
// HWND is hosting windowless MSAA fragments internally.
[object, uuid(24BE0B07-D37D-487A-98CF-A13ED465E9B3), pointer_default(unique)]
interface IRawElementProviderHostingAccessibles : IUnknown
{
HRESULT GetEmbeddedAccessibles (
[out,retval] SAFEARRAY(VARIANT) * pRetVal );
}
[
uuid(930299ce-9965-4dec-b0f4-a54848d4b667),
lcid(0),
version(1.0),
hidden
]
library UIA
{
importlib ("stdole2.tlb");
[dllname("<no entry points>")]
module UIA_OtherConstants
{
const double UIA_ScrollPatternNoScroll = -1;
}
interface IRawElementProviderSimple;
interface IRawElementProviderSimple2;
//
// IAccessibleEx
//
[object, uuid(f8b80ada-2c44-48d0-89be-5ff23c9cd875), pointer_default(unique), oleautomation]
interface IAccessibleEx: IUnknown
{
// Returns the IAccessibleEx for specified child. Returns
// S_OK/NULL if this implementation does not use child ids,
// or does not have an IAccessibleEx for the specified child,
// or already represents a child element.
// idChild must be normalized; ie. client must have previously
// used get_accChild to check whether it actually has its own
// IAccessible. Only idChild values that do not have a corresponding
// IAccessible can be used here.
HRESULT GetObjectForChild (
[in] long idChild,
[out, retval] IAccessibleEx ** pRetVal );
// Returns an IAccessible and idChild pair for this IAccessibleEx.
// Implementation must return fully normalized idChild values: ie.
// it is not required to call get_accChild on the resulting pair.
//
// For IAccessible implementations that do not use child ids, this
// just returns the corresponding IAccessible and CHILDID_SELF.
HRESULT GetIAccessiblePair(
[out] IAccessible ** ppAcc,
[out] long * pidChild );
HRESULT GetRuntimeId (
[out,retval] SAFEARRAY(int) * pRetVal );
// Some wrapper-based implementations (notably UIABridge) can't reasonably wrap all
// IRawElementProviderSimple elements returned as property values or patterns, so
// these elements won't QI to IAccessibleEx. Where this is the case, the original
// IAccessibleEx that the property was retreived from must implement this method
// so that the client can get an IAccessibleEx.
//
// Usage for a client is as follows:
// When an IRawElementProviderSimple is obtained as a property value,
// - first try to QI to IAccessibleEx
// - if that fails, call this method on the source IAccessibleEx
HRESULT ConvertReturnedElement (
[in] IRawElementProviderSimple * pIn,
[out] IAccessibleEx ** ppRetValOut);
}
interface IRawElementProviderFragmentRoot;
interface IRawElementProviderFragment;
interface IRawElementProviderFragmentRoot;
interface IRawElementProviderAdviseEvents;
interface IRawElementProviderHwndOverride;
//
// IProxyProviderWinEventSink
//
// This is provided by UiaCore when it calls IProxyProviderWinEventHandler::RespondToWinEvent
// It stores up the events added to it, and when RespondToWinEvent returns, it passes
// the events back to the client side, where they are actually fired.
[object, uuid(4fd82b78-a43e-46ac-9803-0a6969c7c183), pointer_default(unique)]
interface IProxyProviderWinEventSink : IUnknown
{
HRESULT AddAutomationPropertyChangedEvent(
[in] IRawElementProviderSimple * pProvider,
[in] PROPERTYID id,
[in] VARIANT newValue);
HRESULT AddAutomationEvent(
[in] IRawElementProviderSimple * pProvider,
[in] EVENTID id);
HRESULT AddStructureChangedEvent(
[in] IRawElementProviderSimple * pProvider,
[in] enum StructureChangeType structureChangeType,
[in] SAFEARRAY(int) runtimeId);
}
//
// IProxyProviderWinEventHandler
//
// A Proxy that registers to receive certain WinEvents should implement this interface
// When the core receives a WinEvent it will create the proxy the call this method on it.
//
// This pattern is only meant to be used by registered proxies.
//
// When responding to WinEvents, RespondToWinEvent should not actually fire Events directly,
// it should use the Add*Event methods on the provided IProxyProviderWinEventSink
[object, uuid(89592ad4-f4e0-43d5-a3b6-bad7e111b435), pointer_default(unique)]
interface IProxyProviderWinEventHandler : IUnknown
{
HRESULT RespondToWinEvent (
[in] DWORD idWinEvent,
[in] HWND hwnd,
[in] LONG idObject,
[in] LONG idChild,
[in] IProxyProviderWinEventSink* pSink);
}
interface IRawElementProviderWindowlessSite;
//
// IAccessibleHostingElementProviders
//
// Implemented by a root element for an HWND to indicate that the
// HWND is hosting windowless UIA fragments internally.
[object, uuid(33AC331B-943E-4020-B295-DB37784974A3), pointer_default(unique)]
interface IAccessibleHostingElementProviders : IUnknown
{
// Get an array of fragment roots hosted by this IAccessible.
HRESULT GetEmbeddedFragmentRoots (
[out,retval] SAFEARRAY(IRawElementProviderFragmentRoot*) * pRetVal );
// Get an object ID for a given provider.
// This is used for firing a WinEvent; the implementation is
// not guaranteed to return the same object ID twice.
// Once the WinEvent is fired and received, client can
HRESULT GetObjectIdForProvider (
[in] IRawElementProviderSimple * pProvider,
[out] long * pidObject );
}
interface IRawElementProviderHostingAccessibles;
//
// Control Pattern Interfaces...
//
[object, uuid(159bc72c-4ad3-485e-9637-d7052edf0146), pointer_default(unique)]
interface IDockProvider : IUnknown
{
HRESULT SetDockPosition (
[in] enum DockPosition dockPosition );
[propget] HRESULT DockPosition (
[out, retval] enum DockPosition * pRetVal );
};
[object, uuid(d847d3a5-cab0-4a98-8c32-ecb45c59ad24), pointer_default(unique)]
interface IExpandCollapseProvider : IUnknown
{
HRESULT Expand ();
HRESULT Collapse ();
[propget] HRESULT ExpandCollapseState (
[out, retval] enum ExpandCollapseState * pRetVal );
};
[object, uuid(b17d6187-0907-464b-a168-0ef17a1572b1), pointer_default(unique)]
interface IGridProvider : IUnknown
{
HRESULT GetItem (
[in] int row,
[in] int column,
[out, retval] IRawElementProviderSimple ** pRetVal );
[propget] HRESULT RowCount (
[out, retval] int * pRetVal );
[propget] HRESULT ColumnCount (
[out, retval] int * pRetVal );
};
[object, uuid(d02541f1-fb81-4d64-ae32-f520f8a6dbd1), pointer_default(unique)]
interface IGridItemProvider : IUnknown
{
[propget] HRESULT Row (
[out, retval] int * pRetVal );
[propget] HRESULT Column (
[out, retval] int * pRetVal );
[propget] HRESULT RowSpan (
[out, retval] int * pRetVal );
[propget] HRESULT ColumnSpan (
[out, retval] int * pRetVal );
[propget] HRESULT ContainingGrid (
[out, retval] IRawElementProviderSimple ** pRetVal );
};
[object, uuid(54fcb24b-e18e-47a2-b4d3-eccbe77599a2), pointer_default(unique)]
interface IInvokeProvider : IUnknown
{
HRESULT Invoke ();
};
[object, uuid(6278cab1-b556-4a1a-b4e0-418acc523201), pointer_default(unique)]
interface IMultipleViewProvider : IUnknown
{
HRESULT GetViewName (
[in] int viewId,
[out, retval] BSTR * pRetVal );
HRESULT SetCurrentView (
[in] int viewId );
[propget] HRESULT CurrentView (
[out, retval] int * pRetVal );
HRESULT GetSupportedViews (
[out, retval] SAFEARRAY(int) * pRetVal );
};
[object, uuid(36dc7aef-33e6-4691-afe1-2be7274b3d33), pointer_default(unique)]
interface IRangeValueProvider : IUnknown
{
HRESULT SetValue (
[in] double val );
[propget] HRESULT Value (
[out, retval] double * pRetVal );
[propget] HRESULT IsReadOnly (
[out, retval] BOOL * pRetVal );
[propget] HRESULT Maximum (
[out, retval] double * pRetVal );
[propget] HRESULT Minimum (
[out, retval] double * pRetVal );
[propget] HRESULT LargeChange (
[out, retval] double * pRetVal );
[propget] HRESULT SmallChange (
[out, retval] double * pRetVal );
};
[object, uuid(2360c714-4bf1-4b26-ba65-9b21316127eb), pointer_default(unique)]
interface IScrollItemProvider : IUnknown
{
HRESULT ScrollIntoView ();
};
[object, uuid(fb8b03af-3bdf-48d4-bd36-1a65793be168), pointer_default(unique)]
interface ISelectionProvider : IUnknown
{
HRESULT GetSelection (
[out, retval] SAFEARRAY(IRawElementProviderSimple *) * pRetVal );
[propget] HRESULT CanSelectMultiple (
[out, retval] BOOL * pRetVal );
[propget] HRESULT IsSelectionRequired (
[out, retval] BOOL * pRetVal );
};
[object, uuid(b38b8077-1fc3-42a5-8cae-d40c2215055a), pointer_default(unique)]
interface IScrollProvider : IUnknown
{
HRESULT Scroll (
[in] enum ScrollAmount horizontalAmount,
[in] enum ScrollAmount verticalAmount );
HRESULT SetScrollPercent (
[in] double horizontalPercent,
[in] double verticalPercent );
[propget] HRESULT HorizontalScrollPercent (
[out, retval] double * pRetVal );
[propget] HRESULT VerticalScrollPercent (
[out, retval] double * pRetVal );
[propget] HRESULT HorizontalViewSize (
[out, retval] double * pRetVal );
[propget] HRESULT VerticalViewSize (
[out, retval] double * pRetVal );
[propget] HRESULT HorizontallyScrollable (
[out, retval] BOOL * pRetVal );
[propget] HRESULT VerticallyScrollable (
[out, retval] BOOL * pRetVal );
};
[object, uuid(2acad808-b2d4-452d-a407-91ff1ad167b2), pointer_default(unique)]
interface ISelectionItemProvider : IUnknown
{
HRESULT Select ();
HRESULT AddToSelection ();
HRESULT RemoveFromSelection ();
[propget] HRESULT IsSelected (
[out, retval] BOOL * pRetVal );
[propget] HRESULT SelectionContainer (
[out, retval] IRawElementProviderSimple ** pRetVal );
};
[object, uuid(29db1a06-02ce-4cf7-9b42-565d4fab20ee), pointer_default(unique)]
interface ISynchronizedInputProvider : IUnknown
{
HRESULT StartListening (
[in] enum SynchronizedInputType inputType );
HRESULT Cancel ();
};
[object, uuid(9c860395-97b3-490a-b52a-858cc22af166), pointer_default(unique)]
interface ITableProvider : IUnknown
{
HRESULT GetRowHeaders (
[out, retval] SAFEARRAY(IRawElementProviderSimple*) * pRetVal );
HRESULT GetColumnHeaders (
[out, retval] SAFEARRAY(IRawElementProviderSimple*) * pRetVal );
[propget] HRESULT RowOrColumnMajor (
[out, retval] enum RowOrColumnMajor * pRetVal );
};
[object, uuid(b9734fa6-771f-4d78-9c90-2517999349cd), pointer_default(unique)]
interface ITableItemProvider : IUnknown
{
HRESULT GetRowHeaderItems (
[out, retval] SAFEARRAY(IRawElementProviderSimple*) * pRetVal );
HRESULT GetColumnHeaderItems (
[out, retval] SAFEARRAY(IRawElementProviderSimple*) * pRetVal );
};
[object, uuid(56d00bd0-c4f4-433c-a836-1a52a57e0892), pointer_default(unique)]
interface IToggleProvider : IUnknown
{
HRESULT Toggle ();
[propget] HRESULT ToggleState (
[out, retval] enum ToggleState * pRetVal );
};
[object, uuid(6829ddc4-4f91-4ffa-b86f-bd3e2987cb4c), pointer_default(unique)]
interface ITransformProvider : IUnknown
{
HRESULT Move (
[in] double x,
[in] double y );
HRESULT Resize (
[in] double width,
[in] double height );
HRESULT Rotate (
[in] double degrees );
[propget] HRESULT CanMove (
[out, retval] BOOL * pRetVal );
[propget] HRESULT CanResize (
[out, retval] BOOL * pRetVal );
[propget] HRESULT CanRotate (
[out, retval] BOOL * pRetVal );
};
[object, uuid(c7935180-6fb3-4201-b174-7df73adbf64a), pointer_default(unique)]
interface IValueProvider : IUnknown
{
HRESULT SetValue (
[in] LPCWSTR val );
[propget] HRESULT Value (
[out, retval] BSTR * pRetVal );
[propget] HRESULT IsReadOnly (
[out, retval] BOOL * pRetVal );
};
[object, uuid(987df77b-db06-4d77-8f8a-86a9c3bb90b9), pointer_default(unique)]
interface IWindowProvider : IUnknown
{
HRESULT SetVisualState (
[in] enum WindowVisualState state );
HRESULT Close ();
HRESULT WaitForInputIdle (
[in] int milliseconds,
[out, retval] BOOL * pRetVal );
[propget] HRESULT CanMaximize (
[out, retval] BOOL * pRetVal );
[propget] HRESULT CanMinimize (
[out, retval] BOOL * pRetVal );
[propget] HRESULT IsModal (
[out, retval] BOOL * pRetVal );
[propget] HRESULT WindowVisualState (
[out, retval] enum WindowVisualState * pRetVal );
[propget] HRESULT WindowInteractionState (
[out, retval] enum WindowInteractionState * pRetVal );
[propget] HRESULT IsTopmost (
[out, retval] BOOL * pRetVal );
};
[object, uuid(e44c3566-915d-4070-99c6-047bff5a08f5), pointer_default(unique)]
interface ILegacyIAccessibleProvider : IUnknown
{
HRESULT Select ( long flagsSelect );
HRESULT DoDefaultAction ();
HRESULT SetValue ( LPCWSTR szValue );
HRESULT GetIAccessible ( [out, retval] IAccessible ** ppAccessible );
[propget] HRESULT ChildId (
[out, retval] int * pRetVal );
[propget] HRESULT Name (
[out, retval] BSTR * pszName );
[propget] HRESULT Value (
[out, retval] BSTR * pszValue );
[propget] HRESULT Description (
[out, retval] BSTR * pszDescription );
[propget] HRESULT Role (
[out, retval] DWORD * pdwRole );
[propget] HRESULT State (
[out, retval] DWORD * pdwState );
[propget] HRESULT Help (
[out, retval] BSTR * pszHelp );
[propget] HRESULT KeyboardShortcut (
[out, retval] BSTR * pszKeyboardShortcut );
HRESULT GetSelection (
[out, retval] SAFEARRAY(IRawElementProviderSimple *) * pvarSelectedChildren );
[propget] HRESULT DefaultAction (
[out, retval] BSTR * pszDefaultAction );
};
[object, uuid(e747770b-39ce-4382-ab30-d8fb3f336f24), pointer_default(unique)]
interface IItemContainerProvider : IUnknown
{
// Find item by specified property/value. May return actual
// AutomationElement or a placeholder if the matching element is
// virtualized.
// Returns E_INVALIDARG if the property requested is not one that the
// container supports searching over. Expected that most containers will
// support Name property, and if appropriate for the container,
// AutomationId and IsSelected.
//
// This method is expected to be relatively slow, since it may need to
// traverse multiple objects in order to find a matching one.
// When used in a loop to return multiple items, no specific order is
// defined so long as each item is returned only once (ie. loop should
// terminate). This method is also item-centric, not UI-centric, so items
// with multiple UI representations need only be returned once.
//
// A special propertyId of 0 means 'match all items'. This can be used
// with pStartAfter=NULL to get the first item, and then to get successive
// items. Value should be VT_EMPTY in this case.
HRESULT FindItemByProperty([in] IRawElementProviderSimple * pStartAfter,
[in] PROPERTYID propertyId,
[in] VARIANT value,
[out, retval] IRawElementProviderSimple ** pFound);
};
[object, uuid(cb98b665-2d35-4fac-ad35-f3c60d0c0b8b), pointer_default(unique)]
interface IVirtualizedItemProvider : IUnknown
{
// Request that a placeholder element make itself fully available. Blocks
// until element is available, which could take time.
// Returns S_OK if item is already available.
// Parent control may scroll as a side effect if the container needs to
// being the item into view in order to devirtualize it.
HRESULT Realize();
};
[object, uuid(3ad86ebd-f5ef-483d-bb18-b1042a475d64), pointer_default(unique)]
interface IObjectModelProvider : IUnknown
{
HRESULT GetUnderlyingObjectModel ( [out, retval] IUnknown ** ppUnknown );
};
[object, uuid(f95c7e80-bd63-4601-9782-445ebff011fc), pointer_default(unique)]
interface IAnnotationProvider : IUnknown
{
[propget] HRESULT AnnotationTypeId (
[out, retval] int * retVal );
[propget] HRESULT AnnotationTypeName (
[out, retval] BSTR * retVal );
[propget] HRESULT Author (
[out, retval] BSTR * retVal);
[propget] HRESULT DateTime (
[out, retval] BSTR * retVal);
[propget] HRESULT Target (
[out, retval] IRawElementProviderSimple ** retVal);
};
[object, uuid(19b6b649-f5d7-4a6d-bdcb-129252be588a), pointer_default(unique)]
interface IStylesProvider : IUnknown
{
[propget] HRESULT StyleId (
[out, retval] int * retVal );
[propget] HRESULT StyleName (
[out, retval] BSTR * retVal );
[propget] HRESULT FillColor (
[out, retval] int * retVal );
[propget] HRESULT FillPatternStyle (
[out, retval] BSTR * retVal );
[propget] HRESULT Shape (
[out, retval] BSTR * retVal );
[propget] HRESULT FillPatternColor (
[out, retval] int * retVal );
[propget] HRESULT ExtendedProperties (
[out, retval] BSTR * retVal );
};
[object, uuid(6f6b5d35-5525-4f80-b758-85473832ffc7), pointer_default(unique)]
interface ISpreadsheetProvider : IUnknown
{
HRESULT GetItemByName (
[in] LPCWSTR name,
[out, retval] IRawElementProviderSimple ** pRetVal );
};
[object, uuid(eaed4660-7b3d-4879-a2e6-365ce603f3d0), pointer_default(unique)]
interface ISpreadsheetItemProvider : IUnknown
{
[propget] HRESULT Formula (
[out, retval] BSTR * pRetVal );
HRESULT GetAnnotationObjects (
[out, retval] SAFEARRAY(IRawElementProviderSimple*) * pRetVal );
HRESULT GetAnnotationTypes (
[out, retval] SAFEARRAY(int) * pRetVal );
};
[object, uuid(4758742f-7ac2-460c-bc48-09fc09308a93), pointer_default(unique)]
interface ITransformProvider2 : ITransformProvider
{
HRESULT Zoom (
[in] double zoom );
[propget] HRESULT CanZoom (
[out, retval] BOOL * pRetVal );
[propget] HRESULT ZoomLevel (
[out, retval] double * pRetVal);
[propget] HRESULT ZoomMinimum (
[out, retval] double * pRetVal);
[propget] HRESULT ZoomMaximum (
[out, retval] double * pRetVal);
HRESULT ZoomByUnit (
[in] enum ZoomUnit zoomUnit);
}
[object, uuid(6aa7bbbb-7ff9-497d-904f-d20b897929d8), pointer_default(unique)]
interface IDragProvider : IUnknown
{
[propget] HRESULT IsGrabbed (
[out, retval] BOOL * pRetVal );
[propget] HRESULT DropEffect (
[out, retval] BSTR * pRetVal );
[propget] HRESULT DropEffects (
[out, retval] SAFEARRAY(BSTR) * pRetVal );
HRESULT GetGrabbedItems (
[out, retval] SAFEARRAY(IRawElementProviderSimple*) * pRetVal );
};
[object, uuid(bae82bfd-358a-481c-85a0-d8b4d90a5d61), pointer_default(unique)]