Boost_With_Decay

include vmm.inc

mov     edi, ThreadHandle
mov     eax, BoostAmount
mov     ecx, DecayAmount
VMMCall Boost_With_Decay
 

Boosts a thread's time-slice priority for one time slice, then adjusts the boost by the specified decay amount for subsequent time slices until the thread's original base priority is reached. Uses Flags.

ThreadHandle
Handle of the thread to boost.
BoostAmount
A signed integer value representing the number of milliseconds to lengthen or shorten the time slice.
DecayAmount
A signed integer value representing the number of milliseconds to lengthen or shorten each subsequent time slice. A positive value shortens subsequent time slices; a negative value lengthens them.

The BoostAmount and DecayAmount values must be either both positive or both negative.