A version of this page is also available for
This function sets the priority for a real-time thread on a thread-by-thread basis.
BOOL CeSetThreadPriority( HANDLE hThread, int nPriority );
[in] Handle to a thread.
[in] Priority to set for the thread.
This value can range from zero through 255, with zero as the highest priority. The following list shows the symbolic names for some values of nPriority:
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.
The following list shows the symbolic priority names provided for SetThreadPriority, which must not be used with CeSetThreadPriority:
For more information about priority levels in Windows Embedded CE, see Priority Levels.
|Windows Embedded CE||Windows CE 3.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|