This topic has not yet been rated - Rate this topic

CeGetThreadPriority (Windows Embedded Compact 7)

1/23/2013

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


int CeGetThreadPriority(
  HANDLE hThread
);
hThread

[in] Handle to a thread.

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

THREAD_PRIORITY_ERROR_RETURN indicates failure. 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.

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.

Header

winbase.h

Library

coredll.lib

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.