## Virtual Device Driver Reference for OS/2

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

### VDHInstallUserHook - Format

This function is used to set a handler for a specific DOS session event.

    #include mvdm.h

    ULONG        Event;     /*  A DOS session event for which a handler is installed */

    PUSERHOOK    UserHook;  /*  User's handler for this event */

    BOOL         rc;

    rc = VDHInstallUserHook(Event, UserHook);