2 instantiations of SafePatternHandle
UIAutomationClient (2)
MS\Internal\Automation\UiaCoreAPI.cs (2)
419hobj = new SafePatternHandle(); 552hobj = new SafePatternHandle();
143 references to SafePatternHandle
UIAutomationClient (143)
MS\Internal\Automation\AutomationPatternInfo.cs (1)
21internal delegate object WrapObjectClientSide(AutomationElement el, SafePatternHandle hPattern, bool cached);
MS\Internal\Automation\Misc.cs (2)
154internal static object WrapInterfaceOnClientSide(AutomationElement el, SafePatternHandle hPattern, AutomationPattern pattern) 225internal static void ValidateCurrent(SafePatternHandle hPattern)
MS\Internal\Automation\UiaCoreAPI.cs (71)
267SafePatternHandle hpatternobj = UiaHPatternObjectFromVariant(val); 411internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId) 413SafePatternHandle hobj; 544internal static SafePatternHandle UiaHPatternObjectFromVariant(object var) 546SafePatternHandle hobj; 725internal static void DockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition) 730internal static void ExpandCollapsePattern_Collapse(SafePatternHandle hobj) 735internal static void ExpandCollapsePattern_Expand(SafePatternHandle hobj) 740internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column) 753internal static void InvokePattern_Invoke(SafePatternHandle hobj) 758internal static string MultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId) 765internal static void MultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId) 770internal static void RangeValuePattern_SetValue(SafePatternHandle hobj, double val) 775internal static void ScrollItemPattern_ScrollIntoView(SafePatternHandle hobj) 780internal static void ScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount) 785internal static void ScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent) 790internal static void SelectionItemPattern_AddToSelection(SafePatternHandle hobj) 795internal static void SelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj) 800internal static void SelectionItemPattern_Select(SafePatternHandle hobj) 805internal static void TogglePattern_Toggle(SafePatternHandle hobj) 810internal static void TransformPattern_Move(SafePatternHandle hobj, double x, double y) 815internal static void TransformPattern_Resize(SafePatternHandle hobj, double width, double height) 820internal static void TransformPattern_Rotate(SafePatternHandle hobj, double degrees) 825internal static void ValuePattern_SetValue(SafePatternHandle hobj, string pVal) 830internal static void WindowPattern_Close(SafePatternHandle hobj) 835internal static void WindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state) 840internal static bool WindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds) 848internal static void SynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType) 854internal static void SynchronizedInputPattern_Cancel(SafePatternHandle hobj) 860internal static void VirtualizedItemPattern_Realize(SafePatternHandle hobj) 865internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value) 878internal static SafeTextRangeHandle [] TextPattern_GetSelection(SafePatternHandle hobj) 894internal static SafeTextRangeHandle[] TextPattern_GetVisibleRanges(SafePatternHandle hobj) 910internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 923internal static SafeTextRangeHandle TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point) 936internal static SafeTextRangeHandle TextPattern_get_DocumentRange(SafePatternHandle hobj) 949internal static SupportedTextSelection TextPattern_get_SupportedTextSelection(SafePatternHandle hobj) 1232private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj); 1268private static extern int RawUiaHPatternObjectFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafePatternHandle hnode); 1306private static extern int RawDockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition); 1309private static extern int RawExpandCollapsePattern_Collapse(SafePatternHandle hobj); 1312private static extern int RawExpandCollapsePattern_Expand(SafePatternHandle hobj); 1315private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult); 1318private static extern int RawInvokePattern_Invoke(SafePatternHandle hobj); 1321private static extern int RawMultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId, [MarshalAs(UnmanagedType.BStr)] out string ppStr); 1324private static extern int RawMultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId); 1327private static extern int RawRangeValuePattern_SetValue(SafePatternHandle hobj, double val); 1330private static extern int RawScrollItemPattern_ScrollIntoView(SafePatternHandle hobj); 1333private static extern int RawScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount); 1336private static extern int RawScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent); 1339private static extern int RawSelectionItemPattern_AddToSelection(SafePatternHandle hobj); 1342private static extern int RawSelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj); 1345private static extern int RawSelectionItemPattern_Select(SafePatternHandle hobj); 1348private static extern int RawTogglePattern_Toggle(SafePatternHandle hobj); 1351private static extern int RawTransformPattern_Move(SafePatternHandle hobj, double x, double y); 1354private static extern int RawTransformPattern_Resize(SafePatternHandle hobj, double width, double height); 1357private static extern int RawTransformPattern_Rotate(SafePatternHandle hobj, double degrees); 1360private static extern int RawValuePattern_SetValue(SafePatternHandle hobj, [MarshalAs(UnmanagedType.LPWStr)] string pVal); 1363private static extern int RawWindowPattern_Close(SafePatternHandle hobj); 1366private static extern int RawWindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state); 1369private static extern int RawWindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds, out bool pResult); 1372private static extern int RawSynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType); 1375private static extern int RawSynchronizedInputPattern_Cancel(SafePatternHandle hobj); 1378private static extern int RawVirtualizedItemPattern_Realize(SafePatternHandle hobj); 1381private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result); 1388private static extern int RawTextPattern_GetSelection(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result); 1391private static extern int RawTextPattern_GetVisibleRanges(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result); 1394private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1397private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out SafeTextRangeHandle result); 1400private static extern int RawTextPattern_get_DocumentRange(SafePatternHandle hobj, out SafeTextRangeHandle result); 1403private static extern int RawTextPattern_get_SupportedTextSelection(SafePatternHandle hobj, out SupportedTextSelection result);
System\Windows\Automation\AutomationElement.cs (5)
620SafePatternHandle hpatternobj = null; 763SafePatternHandle hPattern = (SafePatternHandle)obj; 1361SafePatternHandle hpatternobj = (SafePatternHandle)val;
System\Windows\Automation\BasePattern.cs (2)
33private SafePatternHandle _hPattern; 35internal BasePattern( AutomationElement el, SafePatternHandle hPattern )
System\Windows\Automation\DockPattern.cs (3)
39private DockPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 157internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 173private SafePatternHandle _hPattern;
System\Windows\Automation\ExpandCollapsePattern.cs (3)
36private ExpandCollapsePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 168internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 184private SafePatternHandle _hPattern;
System\Windows\Automation\GridItemPattern.cs (3)
40internal GridItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 159internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 175private SafePatternHandle _hPattern;
System\Windows\Automation\GridPattern.cs (3)
36internal GridPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 160internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 176internal SafePatternHandle _hPattern;
System\Windows\Automation\InvokePattern.cs (3)
47private InvokePattern(AutomationElement el, SafePatternHandle hPattern) 121internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 136private SafePatternHandle _hPattern;
System\Windows\Automation\ItemContainerPattern.cs (3)
40private ItemContainerPattern(AutomationElement el, SafePatternHandle hPattern) 196static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 211private SafePatternHandle _hPattern;
System\Windows\Automation\MultipleViewPattern.cs (3)
37private MultipleViewPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 175internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 191private SafePatternHandle _hPattern;
System\Windows\Automation\RangeValuePattern.cs (3)
44private RangeValuePattern( AutomationElement el, SafePatternHandle hPattern, bool cached ) 190static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 206private SafePatternHandle _hPattern;
System\Windows\Automation\ScrollItemPattern.cs (3)
39private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) 90static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 106private SafePatternHandle _hPattern;
System\Windows\Automation\ScrollPattern.cs (3)
38private ScrollPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 224static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 240SafePatternHandle _hPattern;
System\Windows\Automation\SelectionItemPattern.cs (3)
39private SelectionItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 203internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 219private SafePatternHandle _hPattern;
System\Windows\Automation\SelectionPattern.cs (3)
40private SelectionPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 160internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 176private SafePatternHandle _hPattern;
System\Windows\Automation\SynchronizedInputPattern.cs (3)
39private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) 120internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 136private SafePatternHandle _hPattern;
System\Windows\Automation\TableItemPattern.cs (3)
39private TableItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 148internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 164private SafePatternHandle _hPattern;
System\Windows\Automation\TablePattern.cs (2)
38private TablePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 138internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\TextPattern.cs (3)
41internal TextPattern(AutomationElement el, SafePatternHandle hPattern) 286static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 312private SafePatternHandle _hPattern;
System\Windows\Automation\TogglePattern.cs (3)
38private TogglePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 157static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 173private SafePatternHandle _hPattern;
System\Windows\Automation\TransformPattern.cs (3)
37private TransformPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 200internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 216private SafePatternHandle _hPattern;
System\Windows\Automation\ValuePattern.cs (3)
39internal ValuePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 179static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 195private SafePatternHandle _hPattern;
System\Windows\Automation\VirtualizedItemPattern.cs (3)
39private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) 91static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 107private SafePatternHandle _hPattern;
System\Windows\Automation\WindowPattern.cs (3)
41private WindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 224internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 240private SafePatternHandle _hPattern;