Partager via


CeGetThreadPriority (Windows CE 5.0)

Send Feedback

This function gets the priority for a real-time thread.

int CeGetThreadPriority(HANDLE hThread); 

Parameters

  • hThread
    [in] Handle to a thread.

Return Values

If the function succeeds, it returns the priority of the thread, which is a value from zero (0) through 255. Zero is the highest priority.

If the function fails, it returns THREAD_PRIORITY_ERROR_RETURN.

To get extended error information, call GetLastError.

This function returns the base priority of the thread. If priority inheritance changes the priority of a thread, the value returned by this function might not match the original thread priority or the value assigned by SetThreadPriority.

Remarks

In previous releases, a call to GetThreadPriority or CeGetThreadPriority returned the priority of the current thread. The value returned might have been a priority boosted by priority inheritance.

For more information about priority levels in Windows CE, see Priority Levels.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

CeSetThreadPriority | SetThreadPriority

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.