private static void TrayIconAdded(NativeMethods.NOTIFYICONDATA iconData) { // TODO: GUID not taken into account var tuple = Tuple.Create(iconData.hWnd, iconData.uID); // add to visible or to hidden icons if (!SystemAndProcessInformation.isAtLeast7 || SystemTray.ContainsButton(SystemAndProcessInformation.trayHandle, (IntPtr)iconData.hWnd, iconData.uID)) { IconAdded(iconData, tuple); } else { DoHiddenIconAdded(iconData, tuple); } }