8 instantiations of SafeNodeHandle
UIAutomationClient (8)
MS\Internal\Automation\UiaCoreAPI.cs (6)
500hnode = new SafeNodeHandle(); 513hnode = new SafeNodeHandle(); 526hnode = new SafeNodeHandle(); 539hnode = new SafeNodeHandle(); 748result = new SafeNodeHandle(); 1059result = new SafeNodeHandle();
System\Windows\Automation\ItemContainerPattern.cs (2)
116hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 118hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
56 references to SafeNodeHandle
UIAutomationClient (56)
MS\Internal\Automation\CacheHelper.cs (2)
173SafeNodeHandle hnode = null; 180hnode = (SafeNodeHandle)properties[propIndex, 0];
MS\Internal\Automation\FocusTracker.cs (1)
189SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromProvider(provider);
MS\Internal\Automation\Schema.cs (2)
196SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(value); 213SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(objArr[i]);
MS\Internal\Automation\UiaCoreAPI.cs (42)
227SafeNodeHandle safeHandle = UiaHUiaNodeFromVariant(val); 394internal static UiaCacheResponse UiaGetUpdatedCache(SafeNodeHandle hnode, UiaCacheRequest request, NormalizeState normalize, Condition customCondition) 406internal static void UiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value) 411internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId) 424internal static int[] UiaGetRuntimeId(SafeNodeHandle hnode) 431internal static void UiaSetFocus(SafeNodeHandle hnode) 436internal static UiaCacheResponse UiaNavigate(SafeNodeHandle hnode, NavigateDirection direction, Condition condition, UiaCacheRequest request) 448internal static UiaCacheResponse[] UiaFind(SafeNodeHandle hnode, UiaFindParams findParams, Condition findCondition, UiaCacheRequest request) 492internal static SafeNodeHandle UiaNodeFromHandle(IntPtr hwnd) 494SafeNodeHandle hnode; 505internal static SafeNodeHandle UiaGetRootNode() 507SafeNodeHandle hnode; 518internal static SafeNodeHandle UiaNodeFromProvider(IRawElementProviderSimple provider) 520SafeNodeHandle hnode; 531internal static SafeNodeHandle UiaHUiaNodeFromVariant(object var) 533SafeNodeHandle hnode; 607internal static SafeEventHandle UiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, int[] properties, UiaCacheRequest request) 740internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column) 742SafeNodeHandle result; 865internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value) 867SafeNodeHandle result; 910internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 1051internal static SafeNodeHandle TextRange_GetEnclosingElement(SafeTextRangeHandle hobj) 1053SafeNodeHandle result; 1229private static extern int RawUiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value); 1232private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj); 1235private static extern int RawUiaGetRuntimeId(SafeNodeHandle hnode, [MarshalAs(UnmanagedType.SafeArray)] out int[] runtimeId); 1238private static extern int RawUiaSetFocus(SafeNodeHandle hnode); 1241private 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); 1244private 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); 1247private static extern int RawUiaNodeFromHandle(IntPtr hwnd, out SafeNodeHandle hnode); 1250private static extern int RawUiaNodeFromProvider(IRawElementProviderSimple provider, out SafeNodeHandle hode); 1253private static extern int RawUiaGetRootNode(out SafeNodeHandle hnode); 1262private 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); 1265private static extern int RawUiaHUiaNodeFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafeNodeHandle hnode); 1290private static extern int RawUiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, [MarshalAs(UnmanagedType.LPArray)] int[] pProperties, int cProperties, UiaMiniCacheRequest pRequest, out SafeEventHandle hevent); 1315private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult); 1381private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result); 1394private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1430private static extern int RawTextRange_GetEnclosingElement(SafeTextRangeHandle hobj, out SafeNodeHandle result);
System\Windows\Automation\AutomationElement.cs (6)
55internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 92internal static AutomationElement Wrap(SafeNodeHandle hnode) 444SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 1032SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 1285internal SafeNodeHandle RawNode 1426private SafeNodeHandle _hnode;
System\Windows\Automation\GridPattern.cs (1)
86SafeNodeHandle hNode = UiaCoreApi.GridPattern_GetItem(_hPattern, row, column);
System\Windows\Automation\ItemContainerPattern.cs (1)
97SafeNodeHandle hNode;
System\Windows\Automation\Text\TextRange.cs (1)
421SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);