WaitForSingleObject function kernel32
Waits until the specified object is in the signaled state or the time-out interval elapses.
DWORD WaitForSingleObject(
HANDLE hHandle,
DWORD dwMilliseconds
);
Implementation
int WaitForSingleObject(int hHandle, int dwMilliseconds) =>
_WaitForSingleObject(hHandle, dwMilliseconds);