include vmm.inc mov ebx, VMHandle VMMcall Get_Time_Slice_Priority mov [Flags], eax mov [Foreground], ecx mov [Background], edx mov [CPUTime], esi
Retrieves the time-slice execution flags for the specified virtual machine. Also, for backward compatibility, this service also retrieves values for certain obsolete parameters. Uses EAX, ECX, EDX, ESI, and Flags.
EAX | One of the following time-slice execution flags: |
VMStat_Exclusive | Virtual machine is executing to the exclusion of all other threads |
VMStat_Background | Virtual machine is executing in the background |
VMStat_High_Pri_Back | Virtual machine is executing in the background, but with a boost in time-slice priority |
ECX | Set to 10,000 if the virtual machine is time-critical and has almost exclusive execution priority; otherwise, ECX is set to 100. In previous versions of Windows, this value indicates the foreground time-slice priority. |
EDX | Obsolete. The low-order word is always 50, and the high-order word is always zero. In previous versions of Windows, this value indicates the background time-slice priority. |
ESI | Obsolete. Always specifies 100. In previous versions of Windows, this value indicates the percentage of processor usage. |
VMHandle
Handle of the virtual machine for which to retrieve information.
See also Get_Time_Slice_Granularity, Set_Time_Slice_Priority