## Virtual Device Driver Reference for OS/2

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

### VDHArmContextHook - Parameters

HookHandle (HHOOK) Hook handle allocated with VDHAllocHook.

VDMHandle (HVDM) DOS session handle. A value of -1 indicates a global context.

Hook routine interface:

     VOID HOOKENTRY fnarm(pRefData, pcrf)

          ENTRY    pRefData - Pointer to reference data

                   pcrf     - Pointer to client register frame

          EXIT     None

          USES     EAX, ECX, EDX, FS, GS, Flags

          CONTEXT  Task (global) or DOS session-task (local)

          NOTE     pcrf is valid only for local context hook handlers

Success If the function was successful, it returns nothing.

Failure If HookHandle or VDMHandle is invalid, or if the hook is already armed, a system halt occurs.