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.

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]

Header

Avrt.h

Library

Avrt.lib

DLL

Avrt.dll

See also

Multimedia Class Scheduler Service

 

 

Show: