FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Checking Windows Service
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Checking Windows Service
Posted: Wed Jan 28, 2015 03:57 PM

Is there a function to test and see if a windows service is running or not?

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Checking Windows Service
Posted: Wed Jan 28, 2015 09:34 PM
You can try this (from my notes)--I don't know if it will work.

Code (fw): Select all Collapse
// Check whether the application is already running in the same PC 
if IsExeRunning( cFileName( HB_ARGV( 0 ) ) ) 
   MsgWait( "This application is already running", "Application Name" ) 
   Quit 
endif
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion