HELP - Global hooks

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

Mattias Sjögren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top