152 references to UiaCoreApi
UIAutomationClient (152)
MS\Internal\Automation\CacheHelper.cs (3)
65UiaCoreApi.UiaCacheRequest cacheRequest, 66UiaCoreApi.UiaCacheResponse response) 142UiaCoreApi.UiaCacheRequest cacheRequest,
MS\Internal\Automation\CalloutQueueItem.cs (4)
25internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) 62internal UiaCoreApi.UiaCacheResponse _cacheResponse; // prefetched data (possibly including the element and properties/patterns) 63internal UiaCoreApi.UiaCacheRequest _cacheRequest; // list of items to prefetch (also used when deserializing prefetched data)
MS\Internal\Automation\ClientEventManager.cs (4)
134ec.EventHandle = UiaCoreApi.UiaAddEvent(rawEl.RawNode, l.EventId.Id, ec.CallbackDelegate, l.TreeScope, PropertyArrayToIntArray(l.Properties), l.CacheRequest); 427UiaCoreApi.UiaCacheRequest cacheRequest = listener.EventListener.CacheRequest; 587UiaCoreApi.UiaEventRemoveWindow(ec.EventHandle, hwnd); 645UiaCoreApi.UiaEventAddWindow(ec.EventHandle, hwnd);
MS\Internal\Automation\ClientSideQueueItem.cs (5)
24internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) 53UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_srcEl.RawNode, _request, UiaCoreApi.NormalizeState.View, null); 76private UiaCoreApi.UiaCacheRequest _request; // shopping list for prefetch
MS\Internal\Automation\EventListener.cs (3)
28UiaCoreApi.UiaCacheRequest cacheRequest 78internal UiaCoreApi.UiaCacheRequest CacheRequest 100private UiaCoreApi.UiaCacheRequest _cacheRequest; // properties etc to prefetch
MS\Internal\Automation\EventListenerClientSide.cs (6)
32_callbackDelegate = new UiaCoreApi.UiaEventCallback(OnEvent); 62AutomationEventArgs e = UiaCoreApi.GetUiaEventArgs(argsAddr); 73UiaCoreApi.UiaCacheResponse cacheResponse = new UiaCoreApi.UiaCacheResponse(requestedData, treeStructure, _eventListener.CacheRequest); 229internal UiaCoreApi.UiaEventCallback CallbackDelegate 294private UiaCoreApi.UiaEventCallback _callbackDelegate;
MS\Internal\Automation\FocusTracker.cs (1)
181SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromProvider(provider);
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
1101id[0] = UiaCoreApi.UiaHwndRuntimeIdBase; 1364if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
MS\Internal\Automation\SafeHandles.cs (3)
37return UiaCoreApi.UiaNodeRelease(handle); 60return UiaCoreApi.UiaPatternRelease(handle); 80UiaCoreApi.UiaRemoveEvent(handle);
MS\Internal\Automation\Schema.cs (2)
184SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(value); 201SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(objArr[i]);
MS\Internal\Automation\UiaCoreApi.cs (1)
231if (val == null || val == AutomationElement.NotSupported || UiaCoreApi.IsErrorMarker(val, false/*throwException*/))
MS\Internal\Automation\WinEventWrap.cs (1)
231if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
System\Windows\Automation\AndCondition.cs (2)
49SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.And, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\AutomationElement.cs (42)
41internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 407_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode); 430SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 436UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 438UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 458return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl)); 512UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value); 589hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id); 654UiaCoreApi.IsErrorMarker(val, true/*throwException*/); 738UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest(); 741UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 756UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null); 779UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest; 780UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null); 859UiaCoreApi.UiaSetFocus(_hnode); 948SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 950UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 953UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 1127UiaCoreApi.UiaCacheRequest cacheRequest; 1133UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest); 1141UiaCoreApi.UiaCacheRequest cacheRequest; 1148UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition); 1281private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest) 1283UiaCoreApi.UiaCacheResponse response; 1285response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest); 1287response = UiaCoreApi.UiaNodeFromFocus(cacheRequest); 1294private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker) 1307UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams(); 1322UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request); 1348private UiaCoreApi.UiaCacheRequest _request;
System\Windows\Automation\CacheRequest.cs (9)
116UiaCoreApi.UiaCacheRequest uiaCacheRequest) 176_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertyArray, patternArray, _automationElementMode); 404internal static UiaCoreApi.UiaCacheRequest DefaultUiaCacheRequest 410_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, new AutomationPattern[] { }, AutomationElementMode.Full); 426internal UiaCoreApi.UiaCacheRequest GetUiaCacheRequest() 434_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertiesArray, patternsArray, _automationElementMode); 441static internal UiaCoreApi.UiaCacheRequest CurrentUiaCacheRequest 506UiaCoreApi.UiaCacheRequest _uiaCacheRequest; 528internal static UiaCoreApi.UiaCacheRequest _defaultUiaCacheRequest;
System\Windows\Automation\Condition.cs (3)
169SetMarshalData(new UiaCoreApi.UiaCondition(b ? UiaCoreApi.ConditionType.True : UiaCoreApi.ConditionType.False));
System\Windows\Automation\DockPattern.cs (1)
68UiaCoreApi.DockPattern_SetDockPosition(_hPattern, dockPosition);
System\Windows\Automation\ExpandCollapsePattern.cs (2)
66UiaCoreApi.ExpandCollapsePattern_Expand(_hPattern); 74UiaCoreApi.ExpandCollapsePattern_Collapse(_hPattern);
System\Windows\Automation\GridPattern.cs (1)
71SafeNodeHandle hNode = UiaCoreApi.GridPattern_GetItem(_hPattern, row, column);
System\Windows\Automation\InvokePattern.cs (1)
77UiaCoreApi.InvokePattern_Invoke(_hPattern);
System\Windows\Automation\ItemContainerPattern.cs (4)
98hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, property.Id, value); 100hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, 0, null); 105hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 107hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
System\Windows\Automation\MultipleViewPattern.cs (2)
74return UiaCoreApi.MultipleViewPattern_GetViewName(_hPattern, viewId); 82UiaCoreApi.MultipleViewPattern_SetCurrentView(_hPattern, viewId);
System\Windows\Automation\NotCondition.cs (1)
40SetMarshalData(new UiaCoreApi.UiaNotCondition(_condition._safeHandle.DangerousGetHandle()));
System\Windows\Automation\OrCondition.cs (2)
48SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.Or, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\PropertyCondition.cs (1)
218SetMarshalData(new UiaCoreApi.UiaPropertyCondition(_property.Id, _val, _flags));
System\Windows\Automation\RangeValuePattern.cs (1)
101UiaCoreApi.RangeValuePattern_SetValue(_hPattern, value);
System\Windows\Automation\ScrollItemPattern.cs (1)
66UiaCoreApi.ScrollItemPattern_ScrollIntoView(_hPattern);
System\Windows\Automation\ScrollPattern.cs (4)
90UiaCoreApi.ScrollPattern_SetScrollPercent(_hPattern, horizontalPercent, verticalPercent); 103UiaCoreApi.ScrollPattern_Scroll(_hPattern, horizontalAmount, verticalAmount); 112UiaCoreApi.ScrollPattern_Scroll(_hPattern, amount, ScrollAmount.NoAmount); 121UiaCoreApi.ScrollPattern_Scroll(_hPattern, ScrollAmount.NoAmount, amount);
System\Windows\Automation\SelectionItemPattern.cs (3)
88UiaCoreApi.SelectionItemPattern_Select(_hPattern); 95UiaCoreApi.SelectionItemPattern_AddToSelection(_hPattern); 103UiaCoreApi.SelectionItemPattern_RemoveFromSelection(_hPattern);
System\Windows\Automation\SynchronizedInputPattern.cs (2)
84UiaCoreApi.SynchronizedInputPattern_StartListening(_hPattern,inputType); 93UiaCoreApi.SynchronizedInputPattern_Cancel(_hPattern);
System\Windows\Automation\Text\TextRange.cs (20)
38return UiaCoreApi.UiaTextRangeRelease(handle); 110SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange); 123return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange); 142return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 162UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit); 203SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward); 223SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase); 243object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id); 268return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange); 280return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)); 291return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength); 315return UiaCoreApi.TextRange_Move(_hTextRange, unit, count); 335return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count); 350UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 358UiaCoreApi.TextRange_Select(_hTextRange); 366UiaCoreApi.TextRange_AddToSelection(_hTextRange); 374UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange); 384UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop); 406object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange); 410SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);
System\Windows\Automation\TextPattern.cs (6)
175SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetSelection(_hPattern); 188SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetVisibleRanges(_hPattern); 202SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromChild(_hPattern, childElement.RawNode); 224SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromPoint(_hPattern, screenLocation); 246SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_get_DocumentRange(_hPattern); 259return UiaCoreApi.TextPattern_get_SupportedTextSelection(_hPattern);
System\Windows\Automation\TogglePattern.cs (1)
68UiaCoreApi.TogglePattern_Toggle(_hPattern);
System\Windows\Automation\TransformPattern.cs (3)
78UiaCoreApi.TransformPattern_Move(_hPattern, x, y); 91UiaCoreApi.TransformPattern_Resize(_hPattern, width, height); 101UiaCoreApi.TransformPattern_Rotate(_hPattern, degrees);
System\Windows\Automation\ValuePattern.cs (1)
89UiaCoreApi.ValuePattern_SetValue(_hPattern, value);
System\Windows\Automation\VirtualizedItemPattern.cs (1)
67UiaCoreApi.VirtualizedItemPattern_Realize(_hPattern);
System\Windows\Automation\WindowPattern.cs (3)
92UiaCoreApi.WindowPattern_SetWindowVisualState(_hPattern, state); 103UiaCoreApi.WindowPattern_Close(_hPattern); 129return UiaCoreApi.WindowPattern_WaitForInputIdle(_hPattern, milliseconds);