152 references to UiaCoreApi
UIAutomationClient (152)
MS\Internal\Automation\CacheHelper.cs (3)
78UiaCoreApi.UiaCacheRequest cacheRequest, 79UiaCoreApi.UiaCacheResponse response) 155UiaCoreApi.UiaCacheRequest cacheRequest,
MS\Internal\Automation\CalloutQueueItem.cs (4)
38internal CalloutQueueItem(Delegate clientCallback, UiaCoreApi.UiaCacheResponse cacheResponse, AutomationEventArgs e, UiaCoreApi.UiaCacheRequest cacheRequest) 75internal UiaCoreApi.UiaCacheResponse _cacheResponse; // prefetched data (possibly including the element and properties/patterns) 76internal UiaCoreApi.UiaCacheRequest _cacheRequest; // list of items to prefetch (also used when deserializing prefetched data)
MS\Internal\Automation\ClientEventManager.cs (4)
144ec.EventHandle = UiaCoreApi.UiaAddEvent(rawEl.RawNode, l.EventId.Id, ec.CallbackDelegate, l.TreeScope, PropertyArrayToIntArray(l.Properties), l.CacheRequest); 437UiaCoreApi.UiaCacheRequest cacheRequest = listener.EventListener.CacheRequest; 598UiaCoreApi.UiaEventRemoveWindow(ec.EventHandle, hwnd); 657UiaCoreApi.UiaEventAddWindow(ec.EventHandle, hwnd);
MS\Internal\Automation\ClientSideQueueItem.cs (5)
37internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) 66UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_srcEl.RawNode, _request, UiaCoreApi.NormalizeState.View, null); 89private UiaCoreApi.UiaCacheRequest _request; // shopping list for prefetch
MS\Internal\Automation\EventListener.cs (3)
37UiaCoreApi.UiaCacheRequest cacheRequest 87internal UiaCoreApi.UiaCacheRequest CacheRequest 109private UiaCoreApi.UiaCacheRequest _cacheRequest; // properties etc to prefetch
MS\Internal\Automation\EventListenerClientSide.cs (6)
42_callbackDelegate = new UiaCoreApi.UiaEventCallback(OnEvent); 72AutomationEventArgs e = UiaCoreApi.GetUiaEventArgs(argsAddr); 83UiaCoreApi.UiaCacheResponse cacheResponse = new UiaCoreApi.UiaCacheResponse(requestedData, treeStructure, _eventListener.CacheRequest); 239internal UiaCoreApi.UiaEventCallback CallbackDelegate 304private UiaCoreApi.UiaEventCallback _callbackDelegate;
MS\Internal\Automation\FocusTracker.cs (1)
189SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromProvider(provider);
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
1110id[0] = UiaCoreApi.UiaHwndRuntimeIdBase; 1373if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
MS\Internal\Automation\SafeHandles.cs (3)
39return UiaCoreApi.UiaNodeRelease(handle); 62return UiaCoreApi.UiaPatternRelease(handle); 82UiaCoreApi.UiaRemoveEvent(handle);
MS\Internal\Automation\Schema.cs (2)
196SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(value); 213SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(objArr[i]);
MS\Internal\Automation\UiaCoreAPI.cs (1)
241if (val == null || val == AutomationElement.NotSupported || UiaCoreApi.IsErrorMarker(val, false/*throwException*/))
MS\Internal\Automation\WinEventWrap.cs (1)
246if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
System\Windows\Automation\AndCondition.cs (2)
61SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.And, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\AutomationElement.cs (42)
55internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 411_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode); 444SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 450UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 452UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 472return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl)); 536UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value); 623hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id); 698UiaCoreApi.IsErrorMarker(val, true/*throwException*/); 792UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest(); 795UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 810UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null); 833UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest; 834UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null); 928UiaCoreApi.UiaSetFocus(_hnode); 1032SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 1034UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 1037UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 1217UiaCoreApi.UiaCacheRequest cacheRequest; 1223UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest); 1231UiaCoreApi.UiaCacheRequest cacheRequest; 1238UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition); 1371private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest) 1373UiaCoreApi.UiaCacheResponse response; 1375response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest); 1377response = UiaCoreApi.UiaNodeFromFocus(cacheRequest); 1384private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker) 1397UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams(); 1412UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request); 1438private UiaCoreApi.UiaCacheRequest _request;
System\Windows\Automation\CacheRequest.cs (9)
125UiaCoreApi.UiaCacheRequest uiaCacheRequest) 185_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertyArray, patternArray, _automationElementMode); 413internal static UiaCoreApi.UiaCacheRequest DefaultUiaCacheRequest 419_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, new AutomationPattern[] { }, AutomationElementMode.Full); 435internal UiaCoreApi.UiaCacheRequest GetUiaCacheRequest() 443_uiaCacheRequest = new UiaCoreApi.UiaCacheRequest(_viewCondition, _scope, propertiesArray, patternsArray, _automationElementMode); 450static internal UiaCoreApi.UiaCacheRequest CurrentUiaCacheRequest 515UiaCoreApi.UiaCacheRequest _uiaCacheRequest; 537internal static UiaCoreApi.UiaCacheRequest _defaultUiaCacheRequest;
System\Windows\Automation\Condition.cs (3)
183SetMarshalData(new UiaCoreApi.UiaCondition(b ? UiaCoreApi.ConditionType.True : UiaCoreApi.ConditionType.False));
System\Windows\Automation\DockPattern.cs (1)
84UiaCoreApi.DockPattern_SetDockPosition(_hPattern, dockPosition);
System\Windows\Automation\ExpandCollapsePattern.cs (2)
81UiaCoreApi.ExpandCollapsePattern_Expand(_hPattern); 94UiaCoreApi.ExpandCollapsePattern_Collapse(_hPattern);
System\Windows\Automation\GridPattern.cs (1)
86SafeNodeHandle hNode = UiaCoreApi.GridPattern_GetItem(_hPattern, row, column);
System\Windows\Automation\InvokePattern.cs (1)
94UiaCoreApi.InvokePattern_Invoke(_hPattern);
System\Windows\Automation\ItemContainerPattern.cs (4)
109hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, property.Id, value); 111hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, 0, null); 116hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 118hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
System\Windows\Automation\MultipleViewPattern.cs (2)
90return UiaCoreApi.MultipleViewPattern_GetViewName(_hPattern, viewId); 103UiaCoreApi.MultipleViewPattern_SetCurrentView(_hPattern, viewId);
System\Windows\Automation\NotCondition.cs (1)
51SetMarshalData(new UiaCoreApi.UiaNotCondition(_condition._safeHandle.DangerousGetHandle()));
System\Windows\Automation\OrCondition.cs (2)
61SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.Or, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\PropertyCondition.cs (1)
191SetMarshalData(new UiaCoreApi.UiaPropertyCondition(_property.Id, _val, _flags));
System\Windows\Automation\RangeValuePattern.cs (1)
117UiaCoreApi.RangeValuePattern_SetValue(_hPattern, value);
System\Windows\Automation\ScrollItemPattern.cs (1)
77UiaCoreApi.ScrollItemPattern_ScrollIntoView(_hPattern);
System\Windows\Automation\ScrollPattern.cs (4)
105UiaCoreApi.ScrollPattern_SetScrollPercent(_hPattern, horizontalPercent, verticalPercent); 123UiaCoreApi.ScrollPattern_Scroll(_hPattern, horizontalAmount, verticalAmount); 137UiaCoreApi.ScrollPattern_Scroll(_hPattern, amount, ScrollAmount.NoAmount); 151UiaCoreApi.ScrollPattern_Scroll(_hPattern, ScrollAmount.NoAmount, amount);
System\Windows\Automation\SelectionItemPattern.cs (3)
104UiaCoreApi.SelectionItemPattern_Select(_hPattern); 116UiaCoreApi.SelectionItemPattern_AddToSelection(_hPattern); 129UiaCoreApi.SelectionItemPattern_RemoveFromSelection(_hPattern);
System\Windows\Automation\SynchronizedInputPattern.cs (2)
94UiaCoreApi.SynchronizedInputPattern_StartListening(_hPattern,inputType); 103UiaCoreApi.SynchronizedInputPattern_Cancel(_hPattern);
System\Windows\Automation\Text\TextRange.cs (20)
49return UiaCoreApi.UiaTextRangeRelease(handle); 121SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange); 134return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange); 153return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 173UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit); 214SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward); 234SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase); 254object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id); 279return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange); 291return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)); 302return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength); 326return UiaCoreApi.TextRange_Move(_hTextRange, unit, count); 346return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count); 361UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 369UiaCoreApi.TextRange_Select(_hTextRange); 377UiaCoreApi.TextRange_AddToSelection(_hTextRange); 385UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange); 395UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop); 417object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange); 421SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);
System\Windows\Automation\TextPattern.cs (6)
186SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetSelection(_hPattern); 199SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetVisibleRanges(_hPattern); 216SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromChild(_hPattern, childElement.RawNode); 238SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromPoint(_hPattern, screenLocation); 260SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_get_DocumentRange(_hPattern); 273return UiaCoreApi.TextPattern_get_SupportedTextSelection(_hPattern);
System\Windows\Automation\TogglePattern.cs (1)
83UiaCoreApi.TogglePattern_Toggle(_hPattern);
System\Windows\Automation\TransformPattern.cs (3)
94UiaCoreApi.TransformPattern_Move(_hPattern, x, y); 111UiaCoreApi.TransformPattern_Resize(_hPattern, width, height); 125UiaCoreApi.TransformPattern_Rotate(_hPattern, degrees);
System\Windows\Automation\ValuePattern.cs (1)
104UiaCoreApi.ValuePattern_SetValue(_hPattern, value);
System\Windows\Automation\VirtualizedItemPattern.cs (1)
78UiaCoreApi.VirtualizedItemPattern_Realize(_hPattern);
System\Windows\Automation\WindowPattern.cs (3)
108UiaCoreApi.WindowPattern_SetWindowVisualState(_hPattern, state); 124UiaCoreApi.WindowPattern_Close(_hPattern); 150return UiaCoreApi.WindowPattern_WaitForInputIdle(_hPattern, milliseconds);