예제 #1
0
        public static IntPtr Get(string windowTitle)
        {
            IntPtr ıntPtr = WinAPI.FindWindow(null, windowTitle);

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