
Getting info on currently executing programs
Here is a little C# app. showing how to enumerate all current windows,
and get some basic info. back. Easy to extend:
http://home.istar.ca/~neutron/enumwindows/EnumWins.cs
- Michel Gallant MVP Security
http://home.istar.ca/~neutron
Quote:
> Mike,
> You can always call the static GetProcesses method on the Process class.
> Once you have this, you can get the handle for the window on each process
> and then call ShowWindow through the P/Invoke layer.
> Hope this helps.
> --
> - Nicholas Paldino [.NET/C# MVP]
> > I want to write a small task switching utility which will sit on my
> desktop
> > and show all the programs/windows I currently have running/open so that I
> > can switch between them with a mouse click.
> > Is there a class in the .net framework which provides information on the
> > programs currently running or on the windows currently open?
> > I have been through the .net documentation & the Professional C# wrox book
> > to no avail.
> > Many thanks,
> > Mike