Example #1
0
 public static IRawElementProviderSimple HostProviderFromHandle(IntPtr hwnd)
 {
     AutomationInteropProvider.ValidateArgument(hwnd != IntPtr.Zero, "HwndMustBeNonNULL");
     return(UiaCoreProviderApi.UiaHostProviderFromHwnd(hwnd));
 }
Example #2
0
 public static IntPtr ReturnRawElementProvider(IntPtr hwnd, IntPtr wParam, IntPtr lParam, IRawElementProviderSimple el)
 {
     AutomationInteropProvider.ValidateArgument(hwnd != IntPtr.Zero, "HwndMustBeNonNULL");
     AutomationInteropProvider.ValidateArgumentNonNull(el, "el");
     return(UiaCoreProviderApi.UiaReturnRawElementProvider(hwnd, wParam, lParam, el));
 }