## Virtual Device Driver Reference for OS/2

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

### VDHArmContextHook - Format

This function is used to get to a task-time context from interrupt time when an interrupt is simulated. This service adds a handler to the list of routines called the next time the task context is entered (global context), or the next time a specific DOS session-task context is reached (local context). This is done only once; the handler is removed from the list after it is executed.

    #include mvdm.h

    HHOOK    HookHandle;  /*  Hook handle allocated with VDHAllocHook */

    HVDM     VDMHandle;   /*  DOS session handle */

    VDHArmContextHook(HookHandle, VDMHandle);