SleepEx function kernel32

int SleepEx(
  1. int dwMilliseconds,
  2. int bAlertable
)

Suspends the current thread until the specified condition is met. Execution resumes when one of the following occurs: (i) an I/O completion callback function is called; (ii) an asynchronous procedure call (APC) is queued to the thread; (iii) the time-out interval elapses.

DWORD SleepEx(
  DWORD dwMilliseconds,
  BOOL  bAlertable
);

Implementation

int SleepEx(int dwMilliseconds, int bAlertable) =>
    _SleepEx(dwMilliseconds, bAlertable);