Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function sets the priority for a real-time thread on a thread by thread basis.
BOOL CeSetThreadPriority(HANDLE hThread, int nPriority);
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.
TRUE indicates success.
FALSE indicates failure.
To get extended error information, call GetLastError.
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.
OS Versions: Windows CE 3.0 and later.
Header: Winbase.h.
Link Library: Nk.lib.
Send Feedback on this topic to the authors