## Virtual Device Driver Reference for OS/2

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

### VDHFreezeVDM - Format

This function freezes a DOS session, which prevents it from executing. The specified DOS session is not allowed to execute any V86-mode code until VDHThawVDM is called. This freeze occurs when the specified DOS session leaves kernel mode. The DOS session does not execute any V86-mode code from the time VDHFreezeVDM is called until the matching VDHThawVDM is called.

    #include mvdm.h

    HVDM    VDMHandle;  /*  Handle to the DOS session to freeze */

    BOOL    rc;

    rc = VDHFreezeVDM(VDMHandle);