Forum: Win32/Win64 API (native code)
Delphi
by Fridolin Walther,
2. Jul 2009
It does work.
Getting the exact icons is tricky and doesn't work for all icons simply because some HICON values are invalid. To implement interactivity you will have to send the messages that the real systray would send to the application. You can take the parameters from the Tooltip data structure (what message to send and the recipient of the message).
May I ask what are you trying to do?...
Forum: Win32/Win64 API (native code)
Delphi
by Fridolin Walther,
1. Jul 2009
The systray is essentially a Toolbar. You can just search for it and get a list of pointer that point to datastructures holding the information about each item inside the systray. You can than read those datastructures using ReadProcessMemory. The whole process is outlined here:
http://www.codeproject.com/KB/applications/ShellTrayInfo.aspx
This will work for XP and later. Getting the tray...