Minimize / Maximize process window to Tray toolbar.
 

 

As the name says, this is a function that will permanently minimize the process window of the program. Fixed means that the program will be minimized to the Tray Bar and will remain there until programmatically invoked, ie, it does not respond to mouse clicks to minimize - maximize.

What is it good for us? This function fits nicely with malware type ransomware, when we minimize programmatically and after some time minimize the malware window with the fact that the user cannot do the activity himself and we want him to know that the program has on his computer, he will see the icon in the toolbar Tray.

 

 

-----------------------------------------------------------------

The whole function is built into header WinAPI.h WinAPI.h


#include "WinAPI.h" //https://www.netbot.sk/en/14-blog-headers/44-winapi-en

int _cdecl main (void) 
{
    ::Diall_WinApi::WinApi::GetInstance()->ShowMeInTrayBar(::Diall_WinApi::InTrayBar::Active);
    Sleep(6000);
    ::Diall_WinApi::WinApi::GetInstance()->ShowMeInTrayBar(::Diall_WinApi::InTrayBar::Deactive);

return 0; }