8 instantiations of SafeNodeHandle
UIAutomationClient (8)
MS\Internal\Automation\UiaCoreApi.cs (6)
487hnode = new SafeNodeHandle(); 500hnode = new SafeNodeHandle(); 513hnode = new SafeNodeHandle(); 526hnode = new SafeNodeHandle(); 736result = new SafeNodeHandle(); 1047result = new SafeNodeHandle();
System\Windows\Automation\ItemContainerPattern.cs (2)
105hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 107hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), 0, null);
56 references to SafeNodeHandle
UIAutomationClient (56)
MS\Internal\Automation\CacheHelper.cs (2)
160SafeNodeHandle hnode = null; 167hnode = (SafeNodeHandle)properties[propIndex, 0];
MS\Internal\Automation\FocusTracker.cs (1)
181SafeNodeHandle 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)
214SafeNodeHandle safeHandle = UiaHUiaNodeFromVariant(val); 381internal static UiaCacheResponse UiaGetUpdatedCache(SafeNodeHandle hnode, UiaCacheRequest request, NormalizeState normalize, Condition customCondition) 393internal static void UiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value) 398internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId) 411internal static int[] UiaGetRuntimeId(SafeNodeHandle hnode) 418internal static void UiaSetFocus(SafeNodeHandle hnode) 423internal static UiaCacheResponse UiaNavigate(SafeNodeHandle hnode, NavigateDirection direction, Condition condition, UiaCacheRequest request) 435internal static UiaCacheResponse[] UiaFind(SafeNodeHandle hnode, UiaFindParams findParams, Condition findCondition, UiaCacheRequest request) 479internal static SafeNodeHandle UiaNodeFromHandle(IntPtr hwnd) 481SafeNodeHandle hnode; 492internal static SafeNodeHandle UiaGetRootNode() 494SafeNodeHandle hnode; 505internal static SafeNodeHandle UiaNodeFromProvider(IRawElementProviderSimple provider) 507SafeNodeHandle hnode; 518internal static SafeNodeHandle UiaHUiaNodeFromVariant(object var) 520SafeNodeHandle hnode; 582internal static SafeEventHandle UiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, int[] properties, UiaCacheRequest request) 728internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column) 730SafeNodeHandle result; 853internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value) 855SafeNodeHandle result; 898internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 1039internal static SafeNodeHandle TextRange_GetEnclosingElement(SafeTextRangeHandle hobj) 1041SafeNodeHandle result; 1217private static extern int RawUiaGetPropertyValue(SafeNodeHandle hnode, int propertyId, out object value); 1220private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj); 1223private static extern int RawUiaGetRuntimeId(SafeNodeHandle hnode, [MarshalAs(UnmanagedType.SafeArray)] out int[] runtimeId); 1226private static extern int RawUiaSetFocus(SafeNodeHandle hnode); 1229private 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); 1232private 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); 1235private static extern int RawUiaNodeFromHandle(IntPtr hwnd, out SafeNodeHandle hnode); 1238private static extern int RawUiaNodeFromProvider(IRawElementProviderSimple provider, out SafeNodeHandle hode); 1241private static extern int RawUiaGetRootNode(out SafeNodeHandle hnode); 1250private 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); 1253private static extern int RawUiaHUiaNodeFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafeNodeHandle hnode); 1272private static extern int RawUiaAddEvent(SafeNodeHandle hnode, int eventId, UiaEventCallback callback, TreeScope scope, [MarshalAs(UnmanagedType.LPArray)] int[] pProperties, int cProperties, UiaMiniCacheRequest pRequest, out SafeEventHandle hevent); 1297private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult); 1363private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result); 1376private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1412private static extern int RawTextRange_GetEnclosingElement(SafeTextRangeHandle hobj, out SafeNodeHandle result);
System\Windows\Automation\AutomationElement.cs (6)
38internal AutomationElement(SafeNodeHandle hnode, object[,] cachedValues, int cachedValuesIndex, UiaCoreApi.UiaCacheRequest request) 74internal static AutomationElement Wrap(SafeNodeHandle hnode) 427SafeNodeHandle hnode = UiaCoreApi.UiaNodeFromHandle(hwnd); 942SafeNodeHandle hnode = UiaCoreApi.UiaGetRootNode(); 1183internal SafeNodeHandle RawNode 1326private SafeNodeHandle _hnode;
System\Windows\Automation\GridPattern.cs (1)
71SafeNodeHandle hNode = UiaCoreApi.GridPattern_GetItem(_hPattern, row, column);
System\Windows\Automation\ItemContainerPattern.cs (1)
86SafeNodeHandle hNode;
System\Windows\Automation\Text\TextRange.cs (1)
407SafeNodeHandle hnode = UiaCoreApi.UiaHUiaNodeFromVariant(rawChildren[i]);