ITask::SetPriorityITask::SetPriority*
*Contents  *Index  *Topic Contents
*Previous Topic: ITask::SetParameters
*Next Topic: ITask::SetTaskFlags

ITask::SetPriority

HRESULT SetPriority(
    DWORD dwPriority
);

Sets the priority for the task.

dwPriority
Value assigned as the priority for the current task. The priority value determines the frequency and length of a process' time slices. This applies only to Windows NT and has no effect in Windows 95. It is taken from the CreateProcess priority class and can be one of following flags (in descending order of thread scheduling priority):
REALTIME_PRIORITY_CLASS
HIGH_PRIORITY_CLASS
NORMAL_PRIORITY_CLASS
IDLE_PRIORITY_CLASS

See also ITask::GetPriority

Back to top


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.