Re: [PATCH 1/3] user: extend conformance test for remote-menu accesses
16 Jun
2006
16 Jun
'06
11:14 p.m.
<tkho(a)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.
7118
Age (days ago)
7118
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov