Posts: 3,279
Threads: 170
Joined: Nov 2003
Does anyone know how to intercept this call? I've looked around a bit but have thus far come up empty-handed. It's a Windows call which places an icon in the system tray. I already know how to use it, but what I want to know is how to intercept it so it can basically be redirected. C/Delphi/whatever is cool, I can easily translate between languages.
Anyone that provides information that directly or indirectly assists in solving this gets a big fat credit in lights in an upcoming product...
I'd knock on wood, but my desk is particle board.
Posts: 788
Threads: 53
Joined: Nov 2002
The only thing i can think off at this moment is hooking the api. But i'm not sure exactly what you want to do.
oship me and i will give you lots of guurrls and beeea
Posts: 451
Threads: 16
Joined: Feb 2003
Yeah, I have VB code to place an icon in the system tray with right-click menu and all that junk.
It's at home and I'll be there later today, so it\ll have to wait until then.
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Posts: 3,279
Threads: 170
Joined: Nov 2003
Quote:Yeah, I have VB code to place an icon in the system tray with right-click menu and all that junk.
It's at home and I'll be there later today, so it\ll have to wait until then.
You might have misunderstood me. That's not what I want...I've been doing that for ages.
What I'm looking for is a way to hook the call itself to use it in my own program...my own system tray, if you will.
EDIT: Well, I might have found a lead in this...something about having an hWnd with a classname of "Shell_TrayWnd", and hooking WH_CALLWNDPROC for the express purpose of intercepting all WM_COPYDATA messages bound for Shell_TrayWnd. Sounds like a long night ahead.
I'd knock on wood, but my desk is particle board.
Posts: 788
Threads: 53
Joined: Nov 2002
My thought was to replace the first op code at the start of the procedure with a jump to yours. Though i'm not sure if it's possible, i'm sure windows places code in a read-only segment. But i've seen it been done before i think.
oship me and i will give you lots of guurrls and beeea