WaitForInputIdle function Null safety user32

int WaitForInputIdle(
  1. int hProcess,
  2. int dwMilliseconds
)

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.

DWORD WaitForInputIdle(
  HANDLE hProcess,
  DWORD  dwMilliseconds
);

Implementation

int WaitForInputIdle(int hProcess, int dwMilliseconds) =>
    _WaitForInputIdle(hProcess, dwMilliseconds);