ITask::GetPriorityITask::GetPriority*
*Contents  *Index  *Topic Contents
*Previous Topic: ITask::GetParameters
*Next Topic: ITask::GetTaskFlags

ITask::GetPriority

HRESULT GetPriority(
    DWORD * pdwPriority
);

Retrieves the priority for the task.

pdwPriority
Address of a DWORD that contains 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 the following flags (in descending order of thread scheduling priority):
REALTIME_PRIORITY_CLASS
HIGH_PRIORITY_CLASS
NORMAL_PRIORITY_CLASS
IDLE_PRIORITY_CLASS

See also ITask::SetPriority

Back to top


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