HELP - Global hooks

  • Thread starter Thread starter Víctor
  • Start date Start date
V

Víctor

Hello,

I'm doing a kind of Windows TaskBar application and I've found a problem.
When I want to show open application's buttons I need to search in each
Process running at PC and system becomes too slow. I thinked to modificate
the process by using a global hook to intercept Window Opening, but only two
events are received by using managed code: Mouse and Keyboard events.

Could you help me with that problem or sugest alternative solutions? I've
used Kennedy.ManagedHooks and I've tried to modify source code to intercept
all shell messages, but I haven't be able to do this.

Thanks.
Victor.
 
Could you help me with that problem or sugest alternative solutions?

If requiring Windows 2000 or later is acceptable, then I suggest you
look at the RegisterShellHookWindow API. It can give you the
notifications you need as regular window messages.

If not you need a global WH_SHELL hook. Don't try to implement that in
managed code.


Mattias
 
Back
Top