Hi Anatoliy, I have been looking around and came across MSKB#
149276 which refers to api Shell_NotifyIcon function in Shell32. But I am not sure how to perform a simple refresh of the system tray/taskbar notification area.
>May be try this code as well, if it can remove invalid icons:
>#DEFINE TRAYWINDOW_CLASS "Shell_TrayWnd"
>#DEFINE SW_SHOW 5
>#DEFINE SW_SHOWNA 8
>#DEFINE SW_SHOWDEFAULT 10
>
>DECLARE INTEGER FindWindow IN user32;
> STRING lpClassName, STRING lpWindowName
>
>DECLARE INTEGER ShowWindow IN user32 AS ShowWindowA;
> INTEGER hWindow, INTEGER nCmdShow
>
>hTray = FindWindow(TRAYWINDOW_CLASS, Null)
>= ShowWindowA(hTray, SW_SHOWNA)
>
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.