## Virtual Device Driver Reference for OS/2

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

### VDHAllocHook - Parameters

HookType (ULONG) Hook type.

Possible values are:

VDH_CONTEXT_HOOK VDHArmContextHook
VDH_STI_HOOK VDHArmSTIHook
VDH_RETURN_HOOK VDHArmReturnHook
VDH_TIMER_HOOK VDHArmTimerHook
VDH_BP_HOOK VDHArmBPHook

ArmHookFcn (PFNARM) Arm hook function.

RefDataSize (ULONG) Size of the reference data.

rc (HHOOK) - returns

Success If the function is successful, it returns a hook handle, which is used in the Arm services.

Failure If there is an error, the function returns NULL. VDHGetError should be called to determine the nature of the problem. If HookType or ArmHookFcn is invalid, a system halt occurs.