The parameters for THelpEvent are documented incorrectly in the help file - even in the latest update.
As documented:
THelpEvent = function (Command: Word; Data: Longint): Boolean of object;
ACTUAL parameters:
THelpEvent = function (Command: Word; Data: Longint; var CallHelp: Boolean):
Boolean of object;