include vpicd.inc
mov edi, OFFSET32 vid
VxDcall VPICD_Virtualize_IRQ
jc errorhandler
mov [IRQHand], eax
Assigns a virtual interrupt request to the calling virtual device. This is not an asynchronous service. Uses EAX, Flags
The carry flag is set to indicate an error such as the IRQ has already been virtualized, or the IRQ number is not valid.
The IRQ can be shared by up to 32 virtual devices if every virtual device specifies the VPICD_Opt_Can_Share value in the VID_Options field of the VPICD_IRQ_Descriptor structure.