8 instantiations of SafeNodeHandle
UIAutomationClient (8)
MS\Internal\Automation\UiaCoreApi.cs (6)
491hnode = new SafeNodeHandle(); 504hnode = new SafeNodeHandle(); 517hnode = new SafeNodeHandle(); 530hnode = new SafeNodeHandle(); 740result = new SafeNodeHandle(); 1051result = new SafeNodeHandle();
System\Windows\Automation\ItemContainerPattern.cs (2)
108hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 110hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
56 references to SafeNodeHandle
UIAutomationClient (56)
MS\Internal\Automation\CacheHelper.cs (2)
165SafeNodeHandle hnode = null; 172hnode = (SafeNodeHandle)properties[propIndex, 0];
MS\Internal\Automation\FocusTracker.cs (1)
181SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromProvider(provider);
MS\Internal\Automation\Schema.cs (2)
189SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(value); 206SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(objArr[i]);
MS\Internal\Automation\UiaCoreApi.cs (42)
218SafeNodeHandle safeHandle = UiaHUiaNodeFromVariant(val); 385internal static UiaCacheResponse UiaGetUpdatedCache(SafeNodeHandle hnode, UiaCacheRequest request, NormalizeState normalize, Condition customCondition) 397internal static void UiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value) 402internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId) 415internal static int[] UiaGetRuntimeId(SafeNodeHandle hnode) 422internal static void UiaSetFocus(SafeNodeHandle hnode) 427internal static UiaCacheResponse UiaNavigate(SafeNodeHandle hnode, NavigateDirection direction, Condition condition, UiaCacheRequest request) 439internal static UiaCacheResponse[] UiaFind(SafeNodeHandle hnode, UiaFindParams findParams, Condition findCondition, UiaCacheRequest request) 483internal static SafeNodeHandle UiaNodeFromHandle(IntPtr hwnd) 485SafeNodeHandle hnode; 496internal static SafeNodeHandle UiaGetRootNode() 498SafeNodeHandle hnode; 509internal static SafeNodeHandle UiaNodeFromProvider(IRawElementProviderSimple provider) 511SafeNodeHandle hnode; 522internal static SafeNodeHandle UiaHUiaNodeFromVariant(object var) 524SafeNodeHandle hnode; 586internal static SafeEventHandle UiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, int[] properties, UiaCacheRequest request) 732internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column) 734SafeNodeHandle result; 857internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value) 859SafeNodeHandle result; 902internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 1043internal static SafeNodeHandle TextRange_GetEnclosingElement(SafeTextRangeHandle hobj) 1045SafeNodeHandle result; 1221private static extern int RawUiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value); 1224private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj); 1227private static extern int RawUiaGetRuntimeId(SafeNodeHandle hnode, [MarshalAs(UnmanagedType.SafeArray)] out int[] runtimeId); 1230private static extern int RawUiaSetFocus(SafeNodeHandle hnode); 1233private 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); 1236private 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); 1239private static extern int RawUiaNodeFromHandle(IntPtr hwnd, out SafeNodeHandle hnode); 1242private static extern int RawUiaNodeFromProvider(IRawElementProviderSimple provider, out SafeNodeHandle hode); 1245private static extern int RawUiaGetRootNode(out SafeNodeHandle hnode); 1254private 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); 1257private static extern int RawUiaHUiaNodeFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafeNodeHandle hnode); 1276private static extern int RawUiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, [MarshalAs(UnmanagedType.LPArray)] int[] pProperties, int cProperties, UiaMiniCacheRequest pRequest, out SafeEventHandle hevent); 1301private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult); 1367private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result); 1380private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1416private static extern int RawTextRange_GetEnclosingElement(SafeTextRangeHandle hobj, out SafeNodeHandle result);
System\Windows\Automation\AutomationElement.cs (6)
47internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 83internal static AutomationElement Wrap(SafeNodeHandle hnode) 436SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 954SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 1201internal SafeNodeHandle RawNode 1342private SafeNodeHandle _hnode;
System\Windows\Automation\GridPattern.cs (1)
73SafeNodeHandle hNode = UiaCoreApi.GridPattern_GetItem(_hPattern, row, column);
System\Windows\Automation\ItemContainerPattern.cs (1)
89SafeNodeHandle hNode;
System\Windows\Automation\Text\TextRange.cs (1)
413SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);