## Virtual Device Driver Reference for OS/2

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

### VDHArmTimerHook - Parameters

HookHandle (HHOOK) Timer hook handle.

Duration (ULONG) Timer duration in milliseconds.

VDMHandle (HVDM) DOS session handle.

Possible values are:

DOS Session Handle or 0 When the specified time duration expires, a local context hook is automatically armed by using the specified HookHandle.

VDH_TIMER_GLOBAL_CONTEXT When the specified time duration expires, a global context hook is automatically armed by using the specified HookHandle.

VDH_TIMER_INTERRUPT_HOOK When the specified time duration expires, the timer hook specified by HookHandle is called at interrupt time.

Hook routine interface:

    VOID HOOKENTRY  pfn(pRefData)

         ENTRY      pRefData - Pointer to reference data

         EXIT       None

         CONTEXT    Interrupt

    Note:  This hook routine interface is for interrupt-type hooks only.

           For context-type hooks, see hook routine interface listed under

           VDHArmContextHook.

Success If the function is successful, it returns nothing.

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