Suppose there is a program that does certain operations in the background, no matter what, for example, every 10 seconds it collects information on the CPU and RAM load. The program itself is desktop, it is launched by handles, it would be necessary to make it so that it starts up in the autorun.
The question is: how to teach her that when she collapses she hides in the tray, and, if necessary, overturns any messages. For example, as Kaspersky antivirus. Hanging in the tray, overturns notifications when you open it - appears in the taskbar