Suspending a Thread

You can suspend a thread at any time by using the SuspendThread function. You can also perform additional tasks on a thread. The following table describes these tasks.

To
Call
Resume running a thread ResumeThread
Suspend a thread for a specified number of milliseconds Sleep
Profile the performance of a thread and return how much time the thread has run GetThreadTimes

When suspending a thread more than once, you must match multiple calls to SuspendThread with the same number of calls to ResumeThread.