Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6/MASM32: Intercepting SHELL_NOTIFYICON
#1
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. Big Grin Anyone that provides information that directly or indirectly assists in solving this gets a big fat credit in lights in an upcoming product... Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#2
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
Reply
#3
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.'
Reply
#4
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. Big Grin 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. Big Grin

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. Sad
I'd knock on wood, but my desk is particle board.
Reply
#5
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)