//------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods /// <summary> /// Servers that are slotting into the HWND tree can use this to get a base implementation. /// </summary> /// <param name="hwnd">HWND that server is slotting in over</param> /// <returns>base raw element for specified window</returns> public static IRawElementProviderSimple HostProviderFromHandle(IntPtr hwnd) { ValidateArgument(hwnd != IntPtr.Zero, nameof(SRID.HwndMustBeNonNULL)); return(UiaCoreProviderApi.UiaHostProviderFromHwnd(hwnd)); }
public static IRawElementProviderSimple HostProviderFromHandle(IntPtr hwnd) { Utility.ValidateArgument(hwnd != IntPtr.Zero, "HWND must not be null"); return(UiaCoreProviderApi.UiaHostProviderFromHwnd(hwnd)); }
public static IRawElementProviderSimple HostProviderFromHandle(IntPtr hwnd) { AutomationInteropProvider.ValidateArgument(hwnd != IntPtr.Zero, "HwndMustBeNonNULL"); return(UiaCoreProviderApi.UiaHostProviderFromHwnd(hwnd)); }