Contents Index Topic Contents | ||
Previous Topic: ITask::GetParameters Next Topic: ITask::GetTaskFlags |
ITask::GetPriority
HRESULT GetPriority( DWORD * pdwPriority );Retrieves the priority for the task.
- Returns one of the following values:
S_OK The operation was successful. E_INVALIDARG The arguments are not valid. E_OUTOFMEMORY Not enough memory is available.
- 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
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.