8 instantiations of SafeNodeHandle
UIAutomationClient (8)
MS\Internal\Automation\UiaCoreApi.cs (6)
486hnode = new SafeNodeHandle(); 499hnode = new SafeNodeHandle(); 512hnode = new SafeNodeHandle(); 525hnode = new SafeNodeHandle(); 735result = new SafeNodeHandle(); 1046result = new SafeNodeHandle();
System\Windows\Automation\ItemContainerPattern.cs (2)
104hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 106hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
56 references to SafeNodeHandle
UIAutomationClient (56)
MS\Internal\Automation\CacheHelper.cs (2)
159SafeNodeHandle hnode = null; 166hnode = (SafeNodeHandle)properties[propIndex, 0];
MS\Internal\Automation\FocusTracker.cs (1)
180SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromProvider(provider);
MS\Internal\Automation\Schema.cs (2)
178SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(value); 195SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(objArr[i]);
MS\Internal\Automation\UiaCoreApi.cs (42)
213SafeNodeHandle safeHandle = UiaHUiaNodeFromVariant(val); 380internal static UiaCacheResponse UiaGetUpdatedCache(SafeNodeHandle hnode, UiaCacheRequest request, NormalizeState normalize, Condition customCondition) 392internal static void UiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value) 397internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId) 410internal static int[] UiaGetRuntimeId(SafeNodeHandle hnode) 417internal static void UiaSetFocus(SafeNodeHandle hnode) 422internal static UiaCacheResponse UiaNavigate(SafeNodeHandle hnode, NavigateDirection direction, Condition condition, UiaCacheRequest request) 434internal static UiaCacheResponse[] UiaFind(SafeNodeHandle hnode, UiaFindParams findParams, Condition findCondition, UiaCacheRequest request) 478internal static SafeNodeHandle UiaNodeFromHandle(IntPtr hwnd) 480SafeNodeHandle hnode; 491internal static SafeNodeHandle UiaGetRootNode() 493SafeNodeHandle hnode; 504internal static SafeNodeHandle UiaNodeFromProvider(IRawElementProviderSimple provider) 506SafeNodeHandle hnode; 517internal static SafeNodeHandle UiaHUiaNodeFromVariant(object var) 519SafeNodeHandle hnode; 581internal static SafeEventHandle UiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, int[] properties, UiaCacheRequest request) 727internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column) 729SafeNodeHandle result; 852internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value) 854SafeNodeHandle result; 897internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 1038internal static SafeNodeHandle TextRange_GetEnclosingElement(SafeTextRangeHandle hobj) 1040SafeNodeHandle result; 1216private static extern int RawUiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value); 1219private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj); 1222private static extern int RawUiaGetRuntimeId(SafeNodeHandle hnode, [MarshalAs(UnmanagedType.SafeArray)] out int[] runtimeId); 1225private static extern int RawUiaSetFocus(SafeNodeHandle hnode); 1228private static extern int RawUiaNavigate(SafeNodeHandle hnode, NavigateDirection direction, SafeConditionMemoryHandle condition, UiaMiniCacheRequest pRequest, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)] out object[,] requestedData, [MarshalAs(UnmanagedType.BStr)] out string treeStructure); 1231private static extern int RawUiaFind(SafeNodeHandle hnode, ref UiaFindParams pParams, UiaMiniCacheRequest pRequest, [MarshalAs(UnmanagedType.SafeArray)] out object[,] requestedData, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_I4)] out int[] offsets, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR)] out string[] treeStructures); 1234private static extern int RawUiaNodeFromHandle(IntPtr hwnd, out SafeNodeHandle hnode); 1237private static extern int RawUiaNodeFromProvider(IRawElementProviderSimple provider, out SafeNodeHandle hode); 1240private static extern int RawUiaGetRootNode(out SafeNodeHandle hnode); 1249private static extern int RawUiaGetUpdatedCache(SafeNodeHandle hnode, UiaMiniCacheRequest pRequest, NormalizeState normalizeState, SafeConditionMemoryHandle pNormalizeCondition, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)] out object[,] requestedData, [MarshalAs(UnmanagedType.BStr)] out string treeStructure); 1252private static extern int RawUiaHUiaNodeFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafeNodeHandle hnode); 1271private static extern int RawUiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, [MarshalAs(UnmanagedType.LPArray)] int[] pProperties, int cProperties, UiaMiniCacheRequest pRequest, out SafeEventHandle hevent); 1296private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult); 1362private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result); 1375private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1411private static extern int RawTextRange_GetEnclosingElement(SafeTextRangeHandle hobj, out SafeNodeHandle result);
System\Windows\Automation\AutomationElement.cs (6)
37internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 73internal static AutomationElement Wrap(SafeNodeHandle hnode) 426SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 941SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 1182internal SafeNodeHandle RawNode 1325private SafeNodeHandle _hnode;
System\Windows\Automation\GridPattern.cs (1)
70SafeNodeHandle hNode = UiaCoreApi.GridPattern_GetItem(_hPattern, row, column);
System\Windows\Automation\ItemContainerPattern.cs (1)
85SafeNodeHandle hNode;
System\Windows\Automation\Text\TextRange.cs (1)
406SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);