AvSetMmThreadPriority function
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.
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 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also