Begin critical section ("Multiplex" Func 16/81)
INT 2Fh - MS WINDOWS 3+
AX = 1681h
Notes: used to prevent a task switch from occurring should be followed by an INT 2F/AX=1682h call as soon as possible not supported in Windows/386 2.x. Get INDOS flag with INT 21/AH=34h and increment by hand.
End critical section ("Multiplex" Func 16/82)
INT 2Fh - MS WINDOWS 3+
AX = 1682h
Note: not supported in Windows/386 2.x. Get INDOS flag with INT 21/AH=34h and decrement by hand.
Get current virtual machine ID ("Multiplex" Func 16/83)
INT 2Fh - MS WINDOWS 3+
AX = 1683h
Return: BX = current virtual machine (VM) ID
Notes: Windows itself currently runs in VM 1, but this can't be relied upon VM IDs are reused when VMs are destroyed an ID of 0 will never be returned