Good afternoon, faced with such an interesting task that I need to determine that the terminal is currently inactive or minimized. Is there a way to determine without third-party DLLs and using WinAPI that the terminal is currently inactive or minimized.
The need arose in order not to update the panel data on the chart at such times and not to waste resources on it.
PS. I want to immediately draw attention to the fact that I need to check for minimized and terminal in the background, and not the chart window, these are different things.