ACAT.Lib.Extension.AppAgents.WindowsExplorer.WindowsExplorerAgentBase.getWindowElement C# (CSharp) Метод

getWindowElement() защищенный Метод

Returns the automation element for the window handle
protected getWindowElement ( IntPtr hWndMain ) : AutomationElement
hWndMain System.IntPtr window handle
Результат System.Windows.Automation.AutomationElement
        protected AutomationElement getWindowElement(IntPtr hWndMain)
        {
            AutomationElement retVal = null;
            try
            {
                retVal = AutomationElement.FromHandle(hWndMain);
            }
            catch
            {
                retVal = null;
            }
            return retVal;
        }