GetThreadPriority

  int GetThreadPriority(hThread)    
  HANDLE hThread; /* specifies thread */

The GetThreadPriority function returns the priority of the specified thread.

Parameters

hThread

Specifies a handle for the thread to return the priority for. The handle must have THREAD_QUERY_INFORMATION access.

Return Value

If the function is successful, the return value is the thread's current priority. Otherwise, the return value is THREAD_PRIORITY_ERROR_RETURN. Use the GetLastError function to obtain extended error information.

See Also

SetThreadPriority