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

Lets Babel know that you want to be notified of an event. You can use this macro or send the PLG_INSTALL_HOOK message explicitly.

Syntax

BOOL Plugin_InstallHook(

    HWND hBabel,     PHOOKINSTALLSTRUCT pHookInfo );

Parameters

hBabel
Handle to Babel Instant Messenger (passed on PLGMSG_INITPLUGIN).
pHookInfo
A pointer to HOOKINSTALLSTRUCT that describes the hook to install.

Return Value

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

Macro Information

Headerplugin.h