| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

process_priority

#include "sflproc.h"
int
process_priority (int priority)

Synopsis

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.

Source Code - (sflproc.c)

{
#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
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation