[PATCH 1/3] user: extend conformance test for remote-menu accesses

Dmitry Timoshkov dmitry at codeweavers.com
Fri Jun 16 23:14:46 CDT 2006


<tkho at ucla.edu> wrote:

> +    ok (CreateProcess(NULL, "notepad.exe", NULL, NULL, FALSE, 0, NULL, NULL,
> +                      &si, &pi),
> +        "CreateProcess error=%ld\n", GetLastError());
> +
> +    while (elapsed < timeout)
> +    {
> +        Sleep(50);
> +        elapsed += 50;
> +
> +        hNotepad = GetForegroundWindow();
> +        if (!hNotepad)
> +            continue;
> +        if (GetWindowText(hNotepad, wndTitle, 30) == 0)
> +            continue;
> +        if (strstr(wndTitle, "Notepad"))
> +            break;
> +    }

WaitForInputIdle is supposed to be used instead of the while loop above.

-- 
Dmitry.



More information about the wine-devel mailing list