AvSetMmThreadPriority function

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

Syntax

AVRTAPI BOOL AvSetMmThreadPriority(
  HANDLE        AvrtHandle,
  AVRT_PRIORITY Priority
);

Parameters

AvrtHandle

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

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

   
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