You can use the Process
class.
Process[] processes = Process.GetProcessesByName("someName");
foreach (Process p in processes)
{
IntPtr windowHandle = p.MainWindowHandle;
// do something with windowHandle
}
More Related Contents:
- How do I start a process from C#?
- Executing Batch File in C#
- How do I get output from a command to appear in a control on a Form in real-time?
- Delete a file being used by another process
- How do I determine the owner of a process in C#?
- How can I know if a process is running?
- Kill child process when parent process is killed
- Wait until a process ends
- Hide console window from Process.Start C#
- .NET Events for Process executable start
- How do I send ctrl+c to a process in c#?
- Open file with associated application
- Visual Studio “Could not copy” …. during build
- sharing memory between two applications
- Run elevated process
- How can a Windows Service start a process when a Timer event is raised?
- Using Process.Start() to start a process as a different user from within a Windows Service
- How to detect a process start & end using c# in windows?
- .NET – WindowStyle = hidden vs. CreateNoWindow = true?
- C# – Making a Process.Start wait until the process has start-up
- Start new process, without being a child of the spawning process
- Launching process in C# Without Distracting Console Window
- C# get process output while running
- Service starting a process wont show GUI C#
- Make a window topmost using a window handle
- To run cmd as administrator along with command?
- How to send keys instead of characters to a process?
- PostMessage WM_KEYDOWN send multiply keys?
- Redirect process output C#
- How to kill a process without getting a “process has exited” exception?