Set_Inversion_Pri

include vmm.inc

mov     edi, TargetThread
mov     ebx, BoosterThread
mov     eax, Priority
mov     edx, BoostID
VMMCall Set_Inversion_Pri
jc      error
mov     [InvertHandle], eax
 

Adds the given target thread to the priority inversion list. While a thread remains in the list, it has the same time-slice priority as that of the thread with the highest priority in the list. Uses EAX and Flags.

TargetThread
Handle of the thread to add to the priority inversion list.
BoosterThread
Handle of the thread that is adding the target thread to the inversion list. This parameter need not be the current thread. Also, 0 is valid.
Priority
Absolute Win32 priority required by the target thread.
BoostID
Identifier to associate with the entry in the priority inversion list. If a virtual device does not use this parameter, it should set it to zero.

A virtual device can use the handle returned by this service in a subsequent call to Release_Inversion_Pri to remove the thread from the inversion list.

See Also

Reset_Inversion_Pri