Disables thread switching for the current process.
#define INCL_DOSPROCESS #include <os2.h> APIRET ulrc; /* Return Code. */ ulrc = DosEnterCritSec();