SuspendThread
Prevents a specified thread in the NLM from being scheduled
#include <nwthread.h>
int SuspendThread (
int threadID);
The following table lists return values and descriptions.
This function causes a specified thread to be suspended. ResumeThread makes the thread runnable once again.
SuspendThread maintains a count of the number of times a thread is suspended. An equal number of calls to ResumeThread must be performed for the thread to run again. This allows calls to SuspendThread and ResumeThread to be nested.
Blocking Information SuspendThread does not block when suspending other threads, but blocks when suspending itself.