Contents Index Topic Contents | ||
Previous Topic: ITask::SetParameters Next Topic: ITask::SetTaskFlags |
ITask::SetPriority
HRESULT SetPriority( DWORD dwPriority );Sets the priority for the task.
- Returns S_OK if successful, or E_INVALIDARG if the argument is not valid.
- 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
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.