## Virtual Device Driver Reference for OS/2

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

### VDHAllocHook - Format

This function is used to allocate a hook handle for the arm hook services: Context, STI, Return, Timer, and BP (breakpoint).

    #include mvdm.h

    ULONG     HookType;     /*  Hook type */

    PFNARM    ArmHookFcn;   /*  Arm hook function */

    ULONG     RefDataSize;  /*  Size of the reference data */

    HHOOK     rc;

    rc = VDHAllocHook(HookType, ArmHookFcn, RefDataSize);