Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to show an cn n system tray of win XP when a USB devce is plug

0 views
Skip to first unread message

Electronic75

unread,
May 23, 2008, 9:39:04 AM5/23/08
to
Hello, I've posted this question to different forums, including "code
project" but nobody answered me. I hope someone here can help me. I have a
USB instrument that uses FT232 USB chip with its own supplied drivers. I want
when I plug in the USB cord, an icon to be displayed in system tray that
shows a text tip message when mouse is over it. and when I unplug the cord
the icon goes away. How should I do this? I suspect that I have to edit .inf
files of driver but I don't know how. can anybody help me or give me a tip.
thanks a lot!

Kerem Gümrükcü

unread,
May 23, 2008, 10:20:00 AM5/23/08
to
Hi,

if your driver does not have a way to communicate to some
sort of user mode interface/application, then you have to write
a backgrounding application that receives Device Notifications
and ceates on device arrival a notification icon in the tray. The
Windows API comes with two API Functions that will help
you here: Shell_NotifyIcon(...) and RegisterDeviceNotification(...)
You also could write some Kernel Code, but if this is the only
requirement, displaying an icon in the tray and a tooltip,...this
usermode approach is sufficient,...

These are your friends:

RegisterDeviceNotification(...)
Shell_NotifyIcon(...)

See MSDN for more Information,...

There are tons of examples out there,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Electronic75" <Electr...@discussions.microsoft.com> schrieb im
Newsbeitrag news:070FFF26-5BE9-46CA...@microsoft.com...

Electronic75

unread,
May 23, 2008, 11:05:00 AM5/23/08
to
Thanks a million time kerem!
you absolutely helped! I have developed a user mode application with MFC
that manages to communicate with instrument. So can I change text of tip
message from this program ? what function should I look for to change
properties of tray icon.

thanks a lot again
Best regards,

Electronic75

unread,
May 23, 2008, 11:14:04 AM5/23/08
to

Sorry you have mention it shell_notifyicon
I was too excited about a response that I didn't look carefully.
thanks a lot !
god bless you!
I wish you the best in your life!

Kerem Gümrükcü

unread,
May 23, 2008, 11:33:08 AM5/23/08
to
Hi,

>Sorry you have mention it shell_notifyicon
>I was too excited about a response that I didn't look carefully.
>thanks a lot !

You are welcome,...

>god bless you!
I really need it, i am/got very ill,....looks bad for me,...:(

>I wish you the best in your life!

Thanks,...

Regards

Kerem


--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Electronic75" <Electr...@discussions.microsoft.com> schrieb im

Newsbeitrag news:CACA9152-2D05-4F79...@microsoft.com...

0 new messages