http://bugs.winehq.org/show_bug.cgi?id=15382
--- Comment #11 from Kirill K. Smirnov lich@math.spbu.ru 2008-09-29 10:21:03 ---
As I noted earlier, in my case Shell_NotifyIcon() knew that the icon hasn't been added and returned FALSE. But the error status wasn't properly updated so GetLastError() returned zero.
Yes, right now wine does not bother to set LastError nor clear it. This is FIXME.
Does Shell_NotifyIcon() use some kind of RPC to add the icons? It would explain the problem with timeout.
It just does a cross-process SendMessage to explorer process.
To localize the bug try run application in desktop mode:
$ wine explorer /desktop=q,1024x768 taskmgr
There should be two windows in wine virtual desktop: taskmgr itself and mini-systray with one icon. If so, then problem is somewhere in communication with Xserver via XEMBED.
And please, clarify what bug you try to report: 1) Shell_NotifyIcon() does not set last error. 2) Tray icons do not appear at all. 3) Tray icons work, but stop after some amount of time. I'm sorry, but I cannot extract this information from your posts. I assume this is #2.