## Virtual Device Driver Reference for OS/2

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

### VDHPushInt - Format

This function is used to change the DOS session's control flow to the interrupt handler when an interrupt is simulated. This function also simulates an interrupt to a specified V86-interrupt vector as if a DOS program has executed an INT n instruction. Any virtual device driver hooked on this interrupt with VDHInstallIntHook will get control as expected. The VDHArmReturnHook service can be used after this function is called to regain control when the V86 code executes the Interrupt Return (IRET).

If the DOS session is in V86-mode, the V86-mode handler from the IVT is called. If the DOS session is in protected mode, the protected-mode interrupt handler is called.

    #include mvdm.h

    ULONG    Vector;  /*  Number of the interrupt vector to push */

    BOOL     rc;

    rc = VDHPushInt(Vector);