System.Diagnostics.MainWindowFinder.IsMainWindow C# (CSharp) Method

IsMainWindow() private method

private IsMainWindow ( IntPtr handle ) : bool
handle IntPtr
return bool
        private bool IsMainWindow(IntPtr handle) 
        {           
            if (Interop.User32.GetWindow(handle, GW_OWNER) != (IntPtr)0 || !Interop.User32.IsWindowVisible(handle))
                return false;
            
            return true;
        }