DOS/32 Advanced DOS Extender - Programmer's Reference

2.45 - DPMI function 0900h - Get and Disable Virtual Interrupt State

Disables the virtual interrupt flag and returns the previous state of the virtual interrupt flag.


In: AX = 0900h
Out: CF clear
Virtual interrupts disabled
AL = 0 if virtual interrupts were previously disabled
AL = 1 if virtual interrupts were previously enabled


a) AH is not changed by this function. Therefore, the previous state can be restored by simply executing another INT 31h. See DPMI function 0901h.

b) A client that does not need to know the prior interrupt state can execute the CLI instruction rather than calling this function. The instruction may be trapped by the host and should be assumed to be very slow.


Copyright Supernar Systems, Ltd. 1996-2005
All Rights Reserved.