M
masterra
Hello all!
I am trying to create a replacement task bar for windows (don't ask
why..) in C#, and have run into some troubles.
I am aware that i can get a list of running processes (using
System.Diagnostics.Process), however this is ALL processes, and i ONLY
WANT the ones that would show on the task bar normally.
I noticed that if i looked at a Processes MainWindowTitle property, i
could weed out most things i didn't want by just igoring those with an
empty Title, however this will miss a few!
Mainly, if i have a few open My Computer instances, this will only
catch the first one.
I also tried at least two methods using Windows API's (mainly
GetWindow, two different ways), but this returns even more junk i don't
want, and i don't see any way to tell which ones would be displayed on
the task bar.
Can anyone help?
Thanks in advance!
I am trying to create a replacement task bar for windows (don't ask
why..) in C#, and have run into some troubles.
I am aware that i can get a list of running processes (using
System.Diagnostics.Process), however this is ALL processes, and i ONLY
WANT the ones that would show on the task bar normally.
I noticed that if i looked at a Processes MainWindowTitle property, i
could weed out most things i didn't want by just igoring those with an
empty Title, however this will miss a few!
Mainly, if i have a few open My Computer instances, this will only
catch the first one.
I also tried at least two methods using Windows API's (mainly
GetWindow, two different ways), but this returns even more junk i don't
want, and i don't see any way to tell which ones would be displayed on
the task bar.
Can anyone help?
Thanks in advance!