public static IntPtr Get(string windowTitle) { IntPtr ıntPtr = WinAPI.FindWindow(null, windowTitle); if (ıntPtr == IntPtr.Zero) { throw new Exception("Window not found."); } return(ıntPtr); }
public static bool DoesExist(string windowTitle) { return(WinAPI.FindWindow(null, windowTitle) != IntPtr.Zero); }