AvSetMmThreadPriority function
Applies to: desktop apps only
Adjusts the thread priority of the calling thread relative to other threads performing the same task.
Syntax
BOOL WINAPI AvSetMmThreadPriority( __in HANDLE AvrtHandle, __in AVRT_PRIORITY Priority );
Parameters
- AvrtHandle [in]
-
A handle to the task. This handle is returned by the AvSetMmThreadCharacteristics or AvSetMmMaxThreadCharacteristics function.
- Priority [in]
-
The relative thread priority of this thread to other threads performing a similar task. This parameter can be one of the following values.
- AVRT_PRIORITY_CRITICAL (2)
- AVRT_PRIORITY_HIGH (1)
- AVRT_PRIORITY_LOW (-1)
- AVRT_PRIORITY_NORMAL (0)
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Requirements
|
Minimum supported client | Windows Vista |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012