So is there a different hook we should be using, or is the exit on the tray icon just not doing an explicit unhooking.
I only know of global / local variables like in a small basic or c program ...
Are there such things as local hooks - not global hooks? My understanding about how these hooks actually work is a little weak.
I am pretty sure that all the programmers I have talk to about this claim:
1. A server side service to set a hook will not work, because the hook process needs to be running in each users space. So we basically start up a trayhookicon for each citrix user that logs on to the box. This seems a little heavy handed to me - having 10 processes instead of 1 system service running.
2. Would it be better to load a service each time a user logs on? Right now, because titlehooktray.exe icon loads, the citrix session never ends. When the users exit the dental app from their seamless window there is no way for them to unload the tray icon, or kill titletrayicon... I might have the same problem with a user level running service but I do not think user services attach to a particular citrix session like a small app does.
Other prgrogrammers have told me that it may or may not go away, even after being unhooked.
I see you are a guru several times over:
What specific recommendations would have to make this work as elegantly as possible?
I appreciate the time it takes to reply.
Thanks,
Greg
Main Topics
Browse All Topics





by: DanRollinsPosted on 2009-10-14 at 22:40:49ID: 25577526
1. A global hook becomes part of every program on the computer. Unless you explicitly unhook it, it will remain in memory until a reboot.
See: http://msdn.microsoft.com/ en-us/libr ary/ms6449 60(VS.85). aspx en-us/libr ary/ms6449 93(VS.85). aspx
and http://msdn.microsoft.com/
2. GetWindowText on a top-level window should return the text in the title bar. You might be able to change the code so that it only operates on that type of window -- its parent will be NULL or the value of GetDesktopWindow()