CeSetThreadPriority (Windows CE 5.0)

Send Feedback

This function sets the priority for a real-time thread on a thread by thread basis.

BOOL CeSetThreadPriority(HANDLE hThread, int nPriority); 

Parameters

  • hThread
    [in] Handle to a thread.

  • nPriority
    [in] Priority to set for the thread.

    This value can range from 0 (zero) through 255, with zero as the highest priority.

Return Values

TRUE indicates success.

FALSE indicates failure.

To get extended error information, call GetLastError.

Remarks

When the priority of a blocked thread is increased, the change takes effect immediately.

When the priority of a blocked thread is decreased, the change does not take effect until the thread is no longer blocked.

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: Nk.lib.

See Also

CeGetThreadPriority

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.