Why I’m asking: we have a bunch of error reports from our application that shows problems when we try to send the application to tray: every time on that machines it fails with Windows error code $80004005
Unfortunately none of our machines shows this behavior.
From logs we found it happens when we try to enable the tray icon ( AppTrayIcon.Enabled := true; which is still false after the call). Deleting Windows error code before that call and checking it afterwards gives error code $80004005
So I checked RzTray.pas and found that difference in declaration of _RZNOTIFYICONDATAW. As I’m not sure, if this is custom declaration is still necessary, maybe you remember why it was introduced.
kind regards, Ulrich