BolterLibrary.Imports.EnumTheWindows C# (CSharp) Метод

EnumTheWindows() защищенный статический Метод

protected static EnumTheWindows ( IntPtr hWnd, IntPtr lParam ) : bool
hWnd System.IntPtr
lParam System.IntPtr
Результат bool
        protected static bool EnumTheWindows(IntPtr hWnd, IntPtr lParam)
        {
            var size = GetWindowTextLength(hWnd);

            if (size++ <= 0 || !IsWindowVisible(hWnd)) return true;

            var sb = new StringBuilder(size);

            GetWindowText(hWnd, sb, size);

            if (sb.ToString() != "FINAL FANTASY XIV: A Realm Reborn") return true;

            uint PID;

            GetWindowThreadProcessId(hWnd, out PID);

            if (PID == Process.GetCurrentProcess().Id)
                Hwnd = hWnd;
            return true;
        }