C# Source Code: How to detect if an appication or process is responding
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
C# Source Code
How to detect if an appication or process is responding
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Thursday, March 24, 2005
Hits:
1505
Category:
Unspecified
Article:
The code below demonstrates how to detect if an application or process is responding ///
/// Detects if the user interface of the specified process/application is responding. ///
///
The process name. ///
Returns true if the process exists and is responding, else returns false.
public static bool ApplicationIsResponding( string processName ) { Process[] procs = Process.GetProcessesByName ( processName ); if ( procs.Length > 0 ) { return procs[0].Responding; } return false; }
Terms and Conditions
Support this site
Download a trial version of the best FTP application on the internet