2 instantiations of SafePatternHandle
UIAutomationClient (2)
MS\Internal\Automation\UiaCoreApi.cs (2)
410hobj = new SafePatternHandle(); 543hobj = new SafePatternHandle();
143 references to SafePatternHandle
UIAutomationClient (143)
MS\Internal\Automation\AutomationPatternInfo.cs (1)
13internal delegate object WrapObjectClientSide(AutomationElement el, SafePatternHandle hPattern, bool cached);
MS\Internal\Automation\Misc.cs (2)
145internal static object WrapInterfaceOnClientSide(AutomationElement el, SafePatternHandle hPattern, AutomationPattern pattern) 198internal static void ValidateCurrent(SafePatternHandle hPattern)
MS\Internal\Automation\UiaCoreApi.cs (71)
258SafePatternHandle hpatternobj = UiaHPatternObjectFromVariant(val); 402internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId) 404SafePatternHandle hobj; 535internal static SafePatternHandle UiaHPatternObjectFromVariant(object var) 537SafePatternHandle hobj; 717internal static void DockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition) 722internal static void ExpandCollapsePattern_Collapse(SafePatternHandle hobj) 727internal static void ExpandCollapsePattern_Expand(SafePatternHandle hobj) 732internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column) 745internal static void InvokePattern_Invoke(SafePatternHandle hobj) 750internal static string MultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId) 757internal static void MultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId) 762internal static void RangeValuePattern_SetValue(SafePatternHandle hobj, double val) 767internal static void ScrollItemPattern_ScrollIntoView(SafePatternHandle hobj) 772internal static void ScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount) 777internal static void ScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent) 782internal static void SelectionItemPattern_AddToSelection(SafePatternHandle hobj) 787internal static void SelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj) 792internal static void SelectionItemPattern_Select(SafePatternHandle hobj) 797internal static void TogglePattern_Toggle(SafePatternHandle hobj) 802internal static void TransformPattern_Move(SafePatternHandle hobj, double x, double y) 807internal static void TransformPattern_Resize(SafePatternHandle hobj, double width, double height) 812internal static void TransformPattern_Rotate(SafePatternHandle hobj, double degrees) 817internal static void ValuePattern_SetValue(SafePatternHandle hobj, string pVal) 822internal static void WindowPattern_Close(SafePatternHandle hobj) 827internal static void WindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state) 832internal static bool WindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds) 840internal static void SynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType) 846internal static void SynchronizedInputPattern_Cancel(SafePatternHandle hobj) 852internal static void VirtualizedItemPattern_Realize(SafePatternHandle hobj) 857internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value) 870internal static SafeTextRangeHandle [] TextPattern_GetSelection(SafePatternHandle hobj) 886internal static SafeTextRangeHandle[] TextPattern_GetVisibleRanges(SafePatternHandle hobj) 902internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 915internal static SafeTextRangeHandle TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point) 928internal static SafeTextRangeHandle TextPattern_get_DocumentRange(SafePatternHandle hobj) 941internal static SupportedTextSelection TextPattern_get_SupportedTextSelection(SafePatternHandle hobj) 1224private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj); 1260private static extern int RawUiaHPatternObjectFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafePatternHandle hnode); 1292private static extern int RawDockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition); 1295private static extern int RawExpandCollapsePattern_Collapse(SafePatternHandle hobj); 1298private static extern int RawExpandCollapsePattern_Expand(SafePatternHandle hobj); 1301private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult); 1304private static extern int RawInvokePattern_Invoke(SafePatternHandle hobj); 1307private static extern int RawMultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId, [MarshalAs(UnmanagedType.BStr)] out string ppStr); 1310private static extern int RawMultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId); 1313private static extern int RawRangeValuePattern_SetValue(SafePatternHandle hobj, double val); 1316private static extern int RawScrollItemPattern_ScrollIntoView(SafePatternHandle hobj); 1319private static extern int RawScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount); 1322private static extern int RawScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent); 1325private static extern int RawSelectionItemPattern_AddToSelection(SafePatternHandle hobj); 1328private static extern int RawSelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj); 1331private static extern int RawSelectionItemPattern_Select(SafePatternHandle hobj); 1334private static extern int RawTogglePattern_Toggle(SafePatternHandle hobj); 1337private static extern int RawTransformPattern_Move(SafePatternHandle hobj, double x, double y); 1340private static extern int RawTransformPattern_Resize(SafePatternHandle hobj, double width, double height); 1343private static extern int RawTransformPattern_Rotate(SafePatternHandle hobj, double degrees); 1346private static extern int RawValuePattern_SetValue(SafePatternHandle hobj, [MarshalAs(UnmanagedType.LPWStr)] string pVal); 1349private static extern int RawWindowPattern_Close(SafePatternHandle hobj); 1352private static extern int RawWindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state); 1355private static extern int RawWindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds, out bool pResult); 1358private static extern int RawSynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType); 1361private static extern int RawSynchronizedInputPattern_Cancel(SafePatternHandle hobj); 1364private static extern int RawVirtualizedItemPattern_Realize(SafePatternHandle hobj); 1367private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result); 1374private static extern int RawTextPattern_GetSelection(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result); 1377private static extern int RawTextPattern_GetVisibleRanges(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result); 1380private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1383private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out SafeTextRangeHandle result); 1386private static extern int RawTextPattern_get_DocumentRange(SafePatternHandle hobj, out SafeTextRangeHandle result); 1389private static extern int RawTextPattern_get_SupportedTextSelection(SafePatternHandle hobj, out SupportedTextSelection result);
System\Windows\Automation\AutomationElement.cs (5)
592SafePatternHandle hpatternobj = null; 715SafePatternHandle hPattern = (SafePatternHandle)obj; 1277SafePatternHandle hpatternobj = (SafePatternHandle)val;
System\Windows\Automation\BasePattern.cs (2)
25private SafePatternHandle _hPattern; 27internal BasePattern( AutomationElement el, SafePatternHandle hPattern )
System\Windows\Automation\DockPattern.cs (3)
30private DockPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 143internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 159private SafePatternHandle _hPattern;
System\Windows\Automation\ExpandCollapsePattern.cs (3)
28private ExpandCollapsePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 150internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 166private SafePatternHandle _hPattern;
System\Windows\Automation\GridItemPattern.cs (3)
32internal GridItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 151internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 167private SafePatternHandle _hPattern;
System\Windows\Automation\GridPattern.cs (3)
28internal GridPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 147internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 163internal SafePatternHandle _hPattern;
System\Windows\Automation\InvokePattern.cs (3)
37private InvokePattern(AutomationElement el, SafePatternHandle hPattern) 106internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 121private SafePatternHandle _hPattern;
System\Windows\Automation\ItemContainerPattern.cs (3)
32private ItemContainerPattern(AutomationElement el, SafePatternHandle hPattern) 188static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 203private SafePatternHandle _hPattern;
System\Windows\Automation\MultipleViewPattern.cs (3)
28private MultipleViewPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 156internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 172private SafePatternHandle _hPattern;
System\Windows\Automation\RangeValuePattern.cs (3)
35private RangeValuePattern( AutomationElement el, SafePatternHandle hPattern, bool cached ) 176static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 192private SafePatternHandle _hPattern;
System\Windows\Automation\ScrollItemPattern.cs (3)
31private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) 82static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 98private SafePatternHandle _hPattern;
System\Windows\Automation\ScrollPattern.cs (3)
30private ScrollPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 196static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 212SafePatternHandle _hPattern;
System\Windows\Automation\SelectionItemPattern.cs (3)
31private SelectionItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 180internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 196private SafePatternHandle _hPattern;
System\Windows\Automation\SelectionPattern.cs (3)
32private SelectionPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 152internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 168private SafePatternHandle _hPattern;
System\Windows\Automation\SynchronizedInputPattern.cs (3)
31private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) 112internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 128private SafePatternHandle _hPattern;
System\Windows\Automation\TableItemPattern.cs (3)
31private TableItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 140internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 156private SafePatternHandle _hPattern;
System\Windows\Automation\TablePattern.cs (2)
30private TablePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 130internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\TextPattern.cs (3)
32internal TextPattern(AutomationElement el, SafePatternHandle hPattern) 274static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 300private SafePatternHandle _hPattern;
System\Windows\Automation\TogglePattern.cs (3)
30private TogglePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 144static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 160private SafePatternHandle _hPattern;
System\Windows\Automation\TransformPattern.cs (3)
28private TransformPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 178internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 194private SafePatternHandle _hPattern;
System\Windows\Automation\ValuePattern.cs (3)
31internal ValuePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 166static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 182private SafePatternHandle _hPattern;
System\Windows\Automation\VirtualizedItemPattern.cs (3)
31private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) 83static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 99private SafePatternHandle _hPattern;
System\Windows\Automation\WindowPattern.cs (3)
33private WindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 206internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 222private SafePatternHandle _hPattern;