home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
LIBSRC.ZOO
/
libsrc
/
local
/
setprty.c
< prev
next >
Wrap
Text File
|
1992-04-05
|
360b
|
22 lines
#include <errno.h>
unsigned long Dos32SetPriority() asm ("Dos32SetPriority");
int setpriority (int which, int who, int prio)
{
unsigned long rc;
if (prio > 20) prio = 20;
else if (prio < -20) prio = -20;
rc = Dos32SetPriority (0, 2, prio, 0);
if (rc) {
errno = EINVAL;
return (-1);
}
return (0);
}