Is there any way to check if a variable of type Process currently has an opened GUI/window.
I'm using this to try and get all open application (with an open GUI) and then render their icons
Is there any way to check if a variable of type Process currently has an opened GUI/window.
I'm using this to try and get all open application (with an open GUI) and then render their icons
I will try to answer this.
After a bit a research, I came across the following article in UserInteractive Property
So maybe you can try something like this:
Environment.UserInteractive
The above property is a boolean, which returns true if the current process is running in user interactive mode
And also you can look on this article: MainWindowHandle Property
which gets the window handle of the main window of the associated process, especially IntPtr which is the system-generated window handle of the main window of the associated process.