| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflproc.h" int process_priority (int priority)
Sets process priority as specified, to one of PRIORITY_LOW, PRIORITY_NORMAL, or PRIORITY_HIGH. Currently has an effect only under Windows NT/95. Returns 0 if okay, -1 if there was an error.
{ #if (defined (WIN32)) int class; if (priority == PRIORITY_HIGH) class = HIGH_PRIORITY_CLASS; else if (priority == PRIORITY_LOW) class = IDLE_PRIORITY_CLASS; else class = NORMAL_PRIORITY_CLASS; return (SetPriorityClass (GetCurrentProcess (), class)); #else return (0); #endif }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |