public static IRawElementProviderSimple HostProviderFromHandle(IntPtr hwnd) { AutomationInteropProvider.ValidateArgument(hwnd != IntPtr.Zero, "HwndMustBeNonNULL"); return(UiaCoreProviderApi.UiaHostProviderFromHwnd(hwnd)); }
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)); }