I need to capture the startup and shutdown messages of windows, so I need an interface. After I do boot, the program does call my method in the background, but there is no interface, so I cannot receive the shutdown message of windows. But if I open the program normally and then shut down, it will work normally, and an icon will appear in the taskbar.
ask for divine support.