Babel Home > Babel Plug-in API > Plug-in Reference > Plug-in Macros > Plugin_DoHookFor
Plugin_DoHookFor Macro

Tells Babel that a hook event has occured. You can use this macro or send the PLG_DO_HOOK_FOR message explicitly.

Syntax

BOOL Plugin_DoHookFor(

    HWND hBabel,     PHOOKINSTALLSTRUCT pHookInfo );

Parameters

hBabel
Handle to Babel Instant Messenger (passed on PLGMSG_INITPLUGIN).
pHookInfo
A pointer to a HOOKINSTALLSTRUCT structure that describes the hook event that is occuring.

Return Value

Returns a BOOL value, TRUE on success and FALSE on failure.

Macro Information

Headerplugin.h