delphi package - easy access to kernel objects etc.
neji
Posts: 155 Joined: Wed Mar 09, 2005 11:39 am
Contact:
Post
by neji » Wed Oct 18, 2006 9:52 am
Hi, I need to be notified when a trayicons hint changes. I could use a timer that checks the hint, but is there a more elegant way to do this?
madshi
Site Admin
Posts: 10766 Joined: Sun Mar 21, 2004 5:25 pm
Post
by madshi » Wed Oct 18, 2006 1:30 pm
You could hook the Shell_NotifyIcon API (or however the API is named). I'd suggest to inject the hook dll only into the target process to make it all less intrusive.
neji
Posts: 155 Joined: Wed Mar 09, 2005 11:39 am
Contact:
Post
by neji » Wed Oct 18, 2006 2:03 pm
Thank you, had the same idea and it seems to work quite fine