Qbasicnews.com
November 27, 2021, 04:51:06 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: VB6/MASM32: Intercepting SHELL_NOTIFYICON  (Read 3162 times)
adosorken
*/-\*
*****
Posts: 3655



WWW
« on: March 30, 2004, 07:30:05 PM »

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. Cheesy Anyone that provides information that directly or indirectly assists in solving this gets a big fat credit in lights in an upcoming product... Cheesy
Logged

I'd knock on wood, but my desk is particle board.
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #1 on: March 31, 2004, 01:42:52 PM »

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

oship me and i will give you lots of guurrls and beeea
1000101
Ancient Guru
****
Posts: 519



WWW
« Reply #2 on: March 31, 2004, 02:59:34 PM »

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

Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #3 on: March 31, 2004, 04:33:14 PM »

Quote from: "1000101"
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. Cheesy 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. Cheesy

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
Logged

I'd knock on wood, but my desk is particle board.
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #4 on: April 01, 2004, 08:15:58 AM »

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

oship me and i will give you lots of guurrls and beeea
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!