I want to extend the default Speakers notificon’s (tray icon) right-click context menu with a new item. Also, I want to handle the mouseclick using C++.
Illustration

What I know so far
I learned how to dll-inject using CreateRemoteThread(), because I think that’s the way to go. My problem is: what to do inside the injected dll? For example, how to access the NotifyIcon object?
Maybe it is possible with a simple Windows API call, but I’m not familiar with it.
Thanks Luke for the hint. I got it working using EasyHook. I chose it, because it also supports 64-bit dll-inject.
DLL to inject: