Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AvSetMmThreadPriority function (avrt.h)

Adjusts the thread priority of the calling thread relative to other threads performing the same task.

Syntax

AVRTAPI BOOL AvSetMmThreadPriority(
 [in] HANDLE AvrtHandle,
 [in] AVRT_PRIORITY Priority
);

Parameters

[in] AvrtHandle

A handle to the task. This handle is returned by the AvSetMmThreadCharacteristics or AvSetMmMaxThreadCharacteristics function.

[in] Priority

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

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header avrt.h
Library Avrt.lib
DLL Avrt.dll

See also

Multimedia Class Scheduler Service


Feedback

Was this page helpful?

Additional resources