## Virtual Device Driver Reference for OS/2

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

### VDHChangeVPMIF

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function changes the virtual Interrupt Flag (IF) that enables or disables protected-mode interrupts. This change is reflected in a bit in the flVDMStatus kernel variable (see "Notes" under Purpose). If the STI hooks are waiting and interrupts are enabled, the hooks are called.

    #include mvdm.h

    BOOL    SetIFFlag;  /*  Indicates whether to turn the IF flag on or off */

    BOOL    rc;

    rc = VDHChangeVPMIF(SetIFFlag);