## Virtual Device Driver Reference for OS/2

[prev][next][parent][TOC]

### VDHOpenVIRQ - Format

This function returns an IRQ handle for use with the other Virtual Programmable Interrupt Controller (VPIC) services and, optionally, sets handlers called when an End Of Interrupt (EOI) or Interrupt Return (IRET) is executed during a simulated interrupt.

    #include mvdm.h

    IRQN     IRQNumber;    /*  Number of the IRQ to open */

    PFN      EOIHandler;   /*  Address of End-Of-Interrupt (EOI) handler */

    PFN      IRETHandler;  /*  Address of Interrupt Return (IRET) handler */

    ULONG    Timeout;      /*  IRET timeout value in milliseconds */

    ULONG    OptionFlag;   /*  Indicates whether the IRQ can be shared */

    HIRQ     rc;

    rc = VDHOpenVIRQ(IRQNumber, EOIHandler, IRETHandler,

           Timeout, OptionFlag);