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)
131ec.EventHandle = UiaCoreApi.UiaAddEvent(rawEl.RawNode, l.EventId.Id, ec.CallbackDelegate, l.TreeScope, PropertyArrayToIntArray(l.Properties), l.CacheRequest); 421UiaCoreApi.UiaCacheRequest cacheRequest = listener.EventListener.CacheRequest; 581UiaCoreApi.UiaEventRemoveWindow(ec.EventHandle, hwnd); 639UiaCoreApi.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)
1090id[0] = UiaCoreApi.UiaHwndRuntimeIdBase; 1353if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
MS\Internal\Automation\SafeHandles.cs (3)
34return UiaCoreApi.UiaNodeRelease(handle); 57return UiaCoreApi.UiaPatternRelease(handle); 77UiaCoreApi.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)
228if (val == null || val == AutomationElement.NotSupported || UiaCoreApi.IsErrorMarker(val, false/*throwException*/))
MS\Internal\Automation\WinEventWrap.cs (1)
224if (UiaCoreApi.UiaHasServerSideProvider(hwnd))
System\Windows\Automation\AndCondition.cs (2)
45SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.And, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\AutomationElement.cs (42)
38internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 404_runtimeId = UiaCoreApi.UiaGetRuntimeId(_hnode); 427SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 433UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 435UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 455return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl)); 506UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value); 583hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id); 648UiaCoreApi.IsErrorMarker(val, true/*throwException*/); 732UiaCoreApi.UiaCacheRequest cacheRequest = request.GetUiaCacheRequest(); 735UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 750UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, CacheRequest.CurrentUiaCacheRequest, true, null); 773UiaCoreApi.UiaCacheRequest request = CacheRequest.CurrentUiaCacheRequest; 774UiaCoreApi.UiaCacheResponse[] responses = Find(scope, condition, request, false, null); 853UiaCoreApi.UiaSetFocus(_hnode); 942SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 944UiaCoreApi.UiaCacheRequest cacheRequest = CacheRequest.CurrentUiaCacheRequest; 947UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(hnode, cacheRequest, UiaCoreApi.NormalizeState.None, null); 1115UiaCoreApi.UiaCacheRequest cacheRequest; 1121UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaNavigate(_hnode, direction, condition, cacheRequest); 1129UiaCoreApi.UiaCacheRequest cacheRequest; 1136UiaCoreApi.UiaCacheResponse response = UiaCoreApi.UiaGetUpdatedCache(_hnode, cacheRequest, UiaCoreApi.NormalizeState.Custom, condition); 1269private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest) 1271UiaCoreApi.UiaCacheResponse response; 1273response = UiaCoreApi.UiaNodeFromPoint(pt.X, pt.Y, cacheRequest); 1275response = UiaCoreApi.UiaNodeFromFocus(cacheRequest); 1282private UiaCoreApi.UiaCacheResponse[] Find(TreeScope scope, Condition condition, UiaCoreApi.UiaCacheRequest request, bool findFirst, BackgroundWorker worker) 1295UiaCoreApi.UiaFindParams findParams = new UiaCoreApi.UiaFindParams 1312UiaCoreApi.UiaCacheResponse[] retVal = UiaCoreApi.UiaFind(_hnode, findParams, condition, request); 1338private 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)
163SetMarshalData(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)
45SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.Or, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\PropertyCondition.cs (1)
215SetMarshalData(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)
35return UiaCoreApi.UiaTextRangeRelease(handle); 107SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_Clone(_hTextRange); 120return UiaCoreApi.TextRange_Compare(_hTextRange, range._hTextRange); 139return UiaCoreApi.TextRange_CompareEndpoints(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 159UiaCoreApi.TextRange_ExpandToEnclosingUnit(_hTextRange, unit); 200SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward); 220SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindText(_hTextRange, text, backward, ignoreCase); 240object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id); 265return UiaCoreApi.TextRange_GetBoundingRectangles(_hTextRange); 277return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)); 288return UiaCoreApi.TextRange_GetText(_hTextRange, maxLength); 312return UiaCoreApi.TextRange_Move(_hTextRange, unit, count); 332return UiaCoreApi.TextRange_MoveEndpointByUnit(_hTextRange, endpoint, unit, count); 347UiaCoreApi.TextRange_MoveEndpointByRange(_hTextRange, endpoint, targetRange._hTextRange, targetEndpoint); 355UiaCoreApi.TextRange_Select(_hTextRange); 363UiaCoreApi.TextRange_AddToSelection(_hTextRange); 371UiaCoreApi.TextRange_RemoveFromSelection(_hTextRange); 381UiaCoreApi.TextRange_ScrollIntoView(_hTextRange, alignToTop); 403object[] rawChildren = UiaCoreApi.TextRange_GetChildren(_hTextRange); 407SafeNodeHandle 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);