Is there a maximum amount of time I can pass to the Sleep API function? Can I have it sleep for days?
Printable View
Is there a maximum amount of time I can pass to the Sleep API function? Can I have it sleep for days?
I looked at everything I could find on Sleep and didn't see anything stipulating a maximum amount of time, but that doesn't mean there isn't any.
Having said that, however, I think you might want to take a look at SleepEx rather than Sleep.Quote:
The SleepEx function causes the current thread to enter a wait state until one of the following occurs:· An I/O completion callback function is called· An asynchronous procedure call (APC) is queued to the thread.· The time-out interval elapses