WaitForInputIdle function user32
Waits until the specified process has finished processing its initial input and is waiting for user input with no input pending, or until the time-out interval has elapsed.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-waitforinputidle.
Implementation
@pragma('vm:prefer-inline')
int WaitForInputIdle(HANDLE hProcess, int dwMilliseconds) =>
_WaitForInputIdle(hProcess, dwMilliseconds);