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
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