Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SetWinEventHook callback called only once with internet explorer

42 views
Skip to first unread message

François Beretti

unread,
Oct 2, 2009, 6:22:13 AM10/2/09
to
Hi,

we are using SetWinEventHook as following to hook to internet explorer
objects creation events :

m_hEventHook = SetWinEventHook(EVENT_OBJECT_CREATE,
EVENT_OBJECT_CREATE,
handle,
pProc,
0x0,
0x0,
WINEVENT_INCONTEXT | WINEVENT_SKIPOWNPROCESS );

the callback function is in a separate dll, as it seems to be
mandatory.

when we open Internet Explorer, our callback function is called once
(this function calls Beep() so I am sure of it). And it is never
called again, if we reload the page our browse to an other page.

but if I run accevent32.exe during the test, my callback function is
called when reloading or browsing.

So I am probably missing something, but I can't find what.

Thank you for your help
François

François Beretti

unread,
Oct 2, 2009, 6:32:42 AM10/2/09
to

One other thing I just discovered: if I call SetWinEventHook
(EVENT_MIN, EVENT_MAX, ... then I get all the events, and so the
EVENT_OBJECT_CREATE events, when reloading the page ! Could it be a
bug ?

Thank you
François

0 new messages