2 instantiations of SafePatternHandle
UIAutomationClient (2)
MS\Internal\Automation\UiaCoreApi.cs (2)
405hobj = new SafePatternHandle(); 538hobj = new SafePatternHandle();
143 references to SafePatternHandle
UIAutomationClient (143)
MS\Internal\Automation\AutomationPatternInfo.cs (1)
11internal delegate object WrapObjectClientSide(AutomationElement el, SafePatternHandle hPattern, bool cached);
MS\Internal\Automation\Misc.cs (2)
135internal static object WrapInterfaceOnClientSide(AutomationElement el, SafePatternHandle hPattern, AutomationPattern pattern) 188internal static void ValidateCurrent(SafePatternHandle hPattern)
MS\Internal\Automation\UiaCoreApi.cs (71)
253SafePatternHandle hpatternobj = UiaHPatternObjectFromVariant(val); 397internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId) 399SafePatternHandle hobj; 530internal static SafePatternHandle UiaHPatternObjectFromVariant(object var) 532SafePatternHandle hobj; 712internal static void DockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition) 717internal static void ExpandCollapsePattern_Collapse(SafePatternHandle hobj) 722internal static void ExpandCollapsePattern_Expand(SafePatternHandle hobj) 727internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column) 740internal static void InvokePattern_Invoke(SafePatternHandle hobj) 745internal static string MultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId) 752internal static void MultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId) 757internal static void RangeValuePattern_SetValue(SafePatternHandle hobj, double val) 762internal static void ScrollItemPattern_ScrollIntoView(SafePatternHandle hobj) 767internal static void ScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount) 772internal static void ScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent) 777internal static void SelectionItemPattern_AddToSelection(SafePatternHandle hobj) 782internal static void SelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj) 787internal static void SelectionItemPattern_Select(SafePatternHandle hobj) 792internal static void TogglePattern_Toggle(SafePatternHandle hobj) 797internal static void TransformPattern_Move(SafePatternHandle hobj, double x, double y) 802internal static void TransformPattern_Resize(SafePatternHandle hobj, double width, double height) 807internal static void TransformPattern_Rotate(SafePatternHandle hobj, double degrees) 812internal static void ValuePattern_SetValue(SafePatternHandle hobj, string pVal) 817internal static void WindowPattern_Close(SafePatternHandle hobj) 822internal static void WindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state) 827internal static bool WindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds) 835internal static void SynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType) 841internal static void SynchronizedInputPattern_Cancel(SafePatternHandle hobj) 847internal static void VirtualizedItemPattern_Realize(SafePatternHandle hobj) 852internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value) 865internal static SafeTextRangeHandle [] TextPattern_GetSelection(SafePatternHandle hobj) 881internal static SafeTextRangeHandle[] TextPattern_GetVisibleRanges(SafePatternHandle hobj) 897internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement) 910internal static SafeTextRangeHandle TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point) 923internal static SafeTextRangeHandle TextPattern_get_DocumentRange(SafePatternHandle hobj) 936internal static SupportedTextSelection TextPattern_get_SupportedTextSelection(SafePatternHandle hobj) 1219private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj); 1255private static extern int RawUiaHPatternObjectFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafePatternHandle hnode); 1287private static extern int RawDockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition); 1290private static extern int RawExpandCollapsePattern_Collapse(SafePatternHandle hobj); 1293private static extern int RawExpandCollapsePattern_Expand(SafePatternHandle hobj); 1296private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult); 1299private static extern int RawInvokePattern_Invoke(SafePatternHandle hobj); 1302private static extern int RawMultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId, [MarshalAs(UnmanagedType.BStr)] out string ppStr); 1305private static extern int RawMultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId); 1308private static extern int RawRangeValuePattern_SetValue(SafePatternHandle hobj, double val); 1311private static extern int RawScrollItemPattern_ScrollIntoView(SafePatternHandle hobj); 1314private static extern int RawScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount); 1317private static extern int RawScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent); 1320private static extern int RawSelectionItemPattern_AddToSelection(SafePatternHandle hobj); 1323private static extern int RawSelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj); 1326private static extern int RawSelectionItemPattern_Select(SafePatternHandle hobj); 1329private static extern int RawTogglePattern_Toggle(SafePatternHandle hobj); 1332private static extern int RawTransformPattern_Move(SafePatternHandle hobj, double x, double y); 1335private static extern int RawTransformPattern_Resize(SafePatternHandle hobj, double width, double height); 1338private static extern int RawTransformPattern_Rotate(SafePatternHandle hobj, double degrees); 1341private static extern int RawValuePattern_SetValue(SafePatternHandle hobj, [MarshalAs(UnmanagedType.LPWStr)] string pVal); 1344private static extern int RawWindowPattern_Close(SafePatternHandle hobj); 1347private static extern int RawWindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state); 1350private static extern int RawWindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds, out bool pResult); 1353private static extern int RawSynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType); 1356private static extern int RawSynchronizedInputPattern_Cancel(SafePatternHandle hobj); 1359private static extern int RawVirtualizedItemPattern_Realize(SafePatternHandle hobj); 1362private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result); 1369private static extern int RawTextPattern_GetSelection(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result); 1372private static extern int RawTextPattern_GetVisibleRanges(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result); 1375private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result); 1378private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out SafeTextRangeHandle result); 1381private static extern int RawTextPattern_get_DocumentRange(SafePatternHandle hobj, out SafeTextRangeHandle result); 1384private static extern int RawTextPattern_get_SupportedTextSelection(SafePatternHandle hobj, out SupportedTextSelection result);
System\Windows\Automation\AutomationElement.cs (5)
579SafePatternHandle hpatternobj = null; 702SafePatternHandle hPattern = (SafePatternHandle)obj; 1258SafePatternHandle hpatternobj = (SafePatternHandle)val;
System\Windows\Automation\BasePattern.cs (2)
21private SafePatternHandle _hPattern; 23internal BasePattern( AutomationElement el, SafePatternHandle hPattern )
System\Windows\Automation\DockPattern.cs (3)
27private DockPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 140internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 156private SafePatternHandle _hPattern;
System\Windows\Automation\ExpandCollapsePattern.cs (3)
25private ExpandCollapsePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 147internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 163private SafePatternHandle _hPattern;
System\Windows\Automation\GridItemPattern.cs (3)
29internal GridItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 148internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 164private SafePatternHandle _hPattern;
System\Windows\Automation\GridPattern.cs (3)
25internal GridPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 144internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 160internal SafePatternHandle _hPattern;
System\Windows\Automation\InvokePattern.cs (3)
34private InvokePattern(AutomationElement el, SafePatternHandle hPattern) 103internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 118private SafePatternHandle _hPattern;
System\Windows\Automation\ItemContainerPattern.cs (3)
28private ItemContainerPattern(AutomationElement el, SafePatternHandle hPattern) 182internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 197private SafePatternHandle _hPattern;
System\Windows\Automation\MultipleViewPattern.cs (3)
25private MultipleViewPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 153internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 169private SafePatternHandle _hPattern;
System\Windows\Automation\RangeValuePattern.cs (3)
32private RangeValuePattern( AutomationElement el, SafePatternHandle hPattern, bool cached ) 173internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 189private SafePatternHandle _hPattern;
System\Windows\Automation\ScrollItemPattern.cs (3)
27private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) 78internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 94private SafePatternHandle _hPattern;
System\Windows\Automation\ScrollPattern.cs (3)
27private ScrollPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 193internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 209private SafePatternHandle _hPattern;
System\Windows\Automation\SelectionItemPattern.cs (3)
27private SelectionItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 176internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 192private SafePatternHandle _hPattern;
System\Windows\Automation\SelectionPattern.cs (3)
27private SelectionPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 147internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 163private SafePatternHandle _hPattern;
System\Windows\Automation\SynchronizedInputPattern.cs (3)
28private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) 109internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 125private SafePatternHandle _hPattern;
System\Windows\Automation\TableItemPattern.cs (3)
28private TableItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 137internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 153private SafePatternHandle _hPattern;
System\Windows\Automation\TablePattern.cs (2)
27private TablePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 127internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\TextPattern.cs (3)
29internal TextPattern(AutomationElement el, SafePatternHandle hPattern) 271internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 297private SafePatternHandle _hPattern;
System\Windows\Automation\TogglePattern.cs (3)
27private TogglePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 141internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 157private SafePatternHandle _hPattern;
System\Windows\Automation\TransformPattern.cs (3)
25private TransformPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 175internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 191private SafePatternHandle _hPattern;
System\Windows\Automation\ValuePattern.cs (3)
28internal ValuePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 163internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 179private SafePatternHandle _hPattern;
System\Windows\Automation\VirtualizedItemPattern.cs (3)
27private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) 79internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 95private SafePatternHandle _hPattern;
System\Windows\Automation\WindowPattern.cs (3)
29private WindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 202internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 218private SafePatternHandle _hPattern;