System.Diagnostics.MainWindowFinder.IsMainWindow C# (CSharp) 메소드

IsMainWindow() 개인적인 메소드

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