Code To Check If An Application Is Running (1 Viewer)

CharlesWhiteman

Registered User.
Local time
Today, 03:41
Joined
Feb 26, 2007
Messages
421
Hello All, I have a document managment system which I push documents into from my access Db which is utilised on the click event of a button but the application needs to be running first.

I havent been able to solve it from current posts and therefore wonder whether anyone has any ideas on how i can achieve this?

Thanks
 

MStCyr

New member
Local time
Yesterday, 22:41
Joined
Sep 18, 2003
Messages
333
Hello All, I have a document managment system which I push documents into from my access Db which is utilised on the click event of a button but the application needs to be running first.

I havent been able to solve it from current posts and therefore wonder whether anyone has any ideas on how i can achieve this?

Thanks


Good morning

The answer to this may be found in Microsoft Knowledge base, Article Q88167

The API function used to determine if a specific program is running is
called FindWindow(). FindWindow() returns the handle of the window whose
class is given by the lpClassName parameter and whose window name (or caption) is given by the lpCaption parameter. If the returned value is zero, the application is not running.

Best regards

Maurice
 

CharlesWhiteman

Registered User.
Local time
Today, 03:41
Joined
Feb 26, 2007
Messages
421
Thanks, I'm a little stumped at the moment but will come back to this.
 

Users who are viewing this thread

Top Bottom