152 references to UiaCoreApi
UIAutomationClient (152)
MS\Internal\Automation\CacheHelper.cs (3)
64UiaCoreApi.UiaCacheRequest cacheRequest, 65UiaCoreApi.UiaCacheResponse response) 141UiaCoreApi.UiaCacheRequest cacheRequest,
MS\Internal\Automation\CalloutQueueItem.cs (4)
24internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) 61internal UiaCoreApi.UiaCacheResponse _cacheResponse; // prefetched data (possibly including the element and properties/patterns) 62internal UiaCoreApi.UiaCacheRequest _cacheRequest; // list of items to prefetch (also used when deserializing prefetched data)
MS\Internal\Automation\ClientEventManager.cs (4)
130ec.EventHandle = UiaCoreApi.UiaAddEvent(rawEl.RawNode, l.EventId.Id, ec.CallbackDelegate, l.TreeScope, PropertyArrayToIntArray(l.Properties), l.CacheRequest); 420UiaCoreApi.UiaCacheRequest cacheRequest = listener.EventListener.CacheRequest; 580UiaCoreApi.UiaEventRemoveWindow(ec.EventHandle, hwnd); 638UiaCoreApi.UiaEventAddWindow(ec.EventHandle, hwnd);
MS\Internal\Automation\ClientSideQueueItem.cs (5)
23internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) 52UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_srcEl.RawNode, _request, UiaCoreApi.NormalizeState.View, null); 75private UiaCoreApi.UiaCacheRequest _request; // shopping list for prefetch
MS\Internal\Automation\EventListener.cs (3)
27UiaCoreApi.UiaCacheRequest cacheRequest 77internal UiaCoreApi.UiaCacheRequest CacheRequest 99private UiaCoreApi.UiaCacheRequest _cacheRequest; // properties etc to prefetch
MS\Internal\Automation\EventListenerClientSide.cs (6)
31_callbackDelegate = new UiaCoreApi.UiaEventCallback(OnEvent); 61AutomationEventArgs e = UiaCoreApi.GetUiaEventArgs(argsAddr); 72UiaCoreApi.UiaCacheResponse cacheResponse = new UiaCoreApi.UiaCacheResponse(requestedData, treeStructure, _eventListener.CacheRequest); 228internal UiaCoreApi.UiaEventCallback CallbackDelegate 293private UiaCoreApi.UiaEventCallback _callbackDelegate;
MS\Internal\Automation\FocusTracker.cs (1)
180SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromProvider(provider);
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
1089id[0] = UiaCoreApi.UiaHwndRuntimeIdBase; 1352if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
MS\Internal\Automation\SafeHandles.cs (3)
33return UiaCoreApi.UiaNodeRelease(handle); 56return UiaCoreApi.UiaPatternRelease(handle); 76UiaCoreApi.UiaRemoveEvent(handle);
MS\Internal\Automation\Schema.cs (2)
178SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(value); 195SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(objArr[i]);
MS\Internal\Automation\UiaCoreApi.cs (1)
227if (val == null || val == AutomationElement.NotSupported || UiaCoreApi.IsErrorMarker(val, false/*throwException*/))
MS\Internal\Automation\WinEventWrap.cs (1)
220if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
System\Windows\Automation\AndCondition.cs (2)
44SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.And, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\AutomationElement.cs (42)
37internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 403_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode); 426SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 432UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 434UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 454return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl)); 505UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value); 582hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id); 647UiaCoreApi.IsErrorMarker(val, true/*throwException*/); 731UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest(); 734UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 749UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null); 772UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest; 773UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null); 852UiaCoreApi.UiaSetFocus(_hnode); 941SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 943UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 946UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 1114UiaCoreApi.UiaCacheRequest cacheRequest; 1120UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest); 1128UiaCoreApi.UiaCacheRequest cacheRequest; 1135UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition); 1268private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest) 1270UiaCoreApi.UiaCacheResponse response; 1272response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest); 1274response = UiaCoreApi.UiaNodeFromFocus(cacheRequest); 1281private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker) 1294UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams 1311UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request); 1337private UiaCoreApi.UiaCacheRequest _request;
System\Windows\Automation\CacheRequest.cs (9)
115UiaCoreApi.UiaCacheRequest uiaCacheRequest) 175_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertyArray, patternArray, _automationElementMode); 403internal static UiaCoreApi.UiaCacheRequest DefaultUiaCacheRequest 409_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, Array.Empty<AutomationPattern>(), AutomationElementMode.Full); 425internal UiaCoreApi.UiaCacheRequest GetUiaCacheRequest() 433_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertiesArray, patternsArray, _automationElementMode); 440internal static UiaCoreApi.UiaCacheRequest CurrentUiaCacheRequest 505private UiaCoreApi.UiaCacheRequest _uiaCacheRequest; 527internal static UiaCoreApi.UiaCacheRequest _defaultUiaCacheRequest;
System\Windows\Automation\Condition.cs (3)
162SetMarshalData(new UiaCoreApi.UiaCondition(b ? UiaCoreApi.ConditionType.True : UiaCoreApi.ConditionType.False));
System\Windows\Automation\DockPattern.cs (1)
67UiaCoreApi.DockPattern_SetDockPosition(_hPattern, dockPosition);
System\Windows\Automation\ExpandCollapsePattern.cs (2)
65UiaCoreApi.ExpandCollapsePattern_Expand(_hPattern); 73UiaCoreApi.ExpandCollapsePattern_Collapse(_hPattern);
System\Windows\Automation\GridPattern.cs (1)
70SafeNodeHandle hNode = UiaCoreApi.GridPattern_GetItem(_hPattern, row, column);
System\Windows\Automation\InvokePattern.cs (1)
76UiaCoreApi.InvokePattern_Invoke(_hPattern);
System\Windows\Automation\ItemContainerPattern.cs (4)
97hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, property.Id, value); 99hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, 0, null); 104hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 106hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
System\Windows\Automation\MultipleViewPattern.cs (2)
73return UiaCoreApi.MultipleViewPattern_GetViewName(_hPattern, viewId); 81UiaCoreApi.MultipleViewPattern_SetCurrentView(_hPattern, viewId);
System\Windows\Automation\NotCondition.cs (1)
39SetMarshalData(new UiaCoreApi.UiaNotCondition(_condition._safeHandle.DangerousGetHandle()));
System\Windows\Automation\OrCondition.cs (2)
44SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.Or, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\PropertyCondition.cs (1)
214SetMarshalData(new UiaCoreApi.UiaPropertyCondition(_property.Id, _val, _flags));
System\Windows\Automation\RangeValuePattern.cs (1)
100UiaCoreApi.RangeValuePattern_SetValue(_hPattern, value);
System\Windows\Automation\ScrollItemPattern.cs (1)
65UiaCoreApi.ScrollItemPattern_ScrollIntoView(_hPattern);
System\Windows\Automation\ScrollPattern.cs (4)
89UiaCoreApi.ScrollPattern_SetScrollPercent(_hPattern, horizontalPercent, verticalPercent); 102UiaCoreApi.ScrollPattern_Scroll(_hPattern, horizontalAmount, verticalAmount); 111UiaCoreApi.ScrollPattern_Scroll(_hPattern, amount, ScrollAmount.NoAmount); 120UiaCoreApi.ScrollPattern_Scroll(_hPattern, ScrollAmount.NoAmount, amount);
System\Windows\Automation\SelectionItemPattern.cs (3)
87UiaCoreApi.SelectionItemPattern_Select(_hPattern); 94UiaCoreApi.SelectionItemPattern_AddToSelection(_hPattern); 102UiaCoreApi.SelectionItemPattern_RemoveFromSelection(_hPattern);
System\Windows\Automation\SynchronizedInputPattern.cs (2)
83UiaCoreApi.SynchronizedInputPattern_StartListening(_hPattern,inputType); 92UiaCoreApi.SynchronizedInputPattern_Cancel(_hPattern);
System\Windows\Automation\Text\TextRange.cs (20)
34return UiaCoreApi.UiaTextRangeRelease(handle); 106SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange); 119return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange); 138return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 158UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit); 199SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward); 219SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase); 239object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id); 264return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange); 276return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)); 287return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength); 311return UiaCoreApi.TextRange_Move(_hTextRange, unit, count); 331return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count); 346UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 354UiaCoreApi.TextRange_Select(_hTextRange); 362UiaCoreApi.TextRange_AddToSelection(_hTextRange); 370UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange); 380UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop); 402object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange); 406SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);
System\Windows\Automation\TextPattern.cs (6)
174SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetSelection(_hPattern); 187SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetVisibleRanges(_hPattern); 201SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromChild(_hPattern, childElement.RawNode); 223SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromPoint(_hPattern, screenLocation); 245SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_get_DocumentRange(_hPattern); 258return UiaCoreApi.TextPattern_get_SupportedTextSelection(_hPattern);
System\Windows\Automation\TogglePattern.cs (1)
67UiaCoreApi.TogglePattern_Toggle(_hPattern);
System\Windows\Automation\TransformPattern.cs (3)
77UiaCoreApi.TransformPattern_Move(_hPattern, x, y); 90UiaCoreApi.TransformPattern_Resize(_hPattern, width, height); 100UiaCoreApi.TransformPattern_Rotate(_hPattern, degrees);
System\Windows\Automation\ValuePattern.cs (1)
88UiaCoreApi.ValuePattern_SetValue(_hPattern, value);
System\Windows\Automation\VirtualizedItemPattern.cs (1)
66UiaCoreApi.VirtualizedItemPattern_Realize(_hPattern);
System\Windows\Automation\WindowPattern.cs (3)
91UiaCoreApi.WindowPattern_SetWindowVisualState(_hPattern, state); 102UiaCoreApi.WindowPattern_Close(_hPattern); 128return UiaCoreApi.WindowPattern_WaitForInputIdle(_hPattern, milliseconds);