Changes the base priority of a child process or thread in the current process.
#define INCL_DOSPROCESS
#include <os2.h>
ULONG scope; /* The extent of the priority change. */
ULONG ulClass; /* Priority class of a process. */
LONG delta; /* Change to apply to the current base priority level of the process. */
ULONG PorTid; /* A process identifier (scope == PRTYS_PROCESS or PRTYS_PROCESSTREE) or a thread identifier (scope == PRTYS_THREAD). */
APIRET ulrc; /* Return Code. */
ulrc = DosSetPriority(scope, ulClass, delta,
PorTid);