Loading... Please wait...
   Home arrow CSharp arrow Checking for a previous Instance
Contact Code Collections | About Code Collections
  
 
             | 
X Sections
Code News RSS
Links
Developer Sites
License Types
Checking for a previous Instance PDF Print E-mail
Written by Phillip Brown   
Saturday, 23 September 2006
language: csharp
  1. public static bool IsPrevInstRunning()
  2. {
  3. Int32 _isProcessRunning;
  4. _isProcessRunning = System.Diagnostics.Process.GetProcessesByName(
  5. System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length;
  6. if(_isProcessRunning != 1)
  7. {
  8. return true;
  9. }
  10. else
  11. {
  12. return false;
  13. }
  14. }
Comments
Add NewSearchRSS
Only registered users can write comments!
Last Updated ( Monday, 06 November 2006 )
 
< Prev   Next >
Page was generated in 0.035388 seconds