🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3209

How do I detect if a windows program is running

#3209
From: Robert E Mitchell, Sr.
Date: Sun, 30 Jul 2006 04:09
17 lines
1613 bytes
I sell a software package that starts several windows programs, but does not 
always shut them down properly.  If any of the programs are running, it 
blocks the windows shutdown functionality.  It also won't start the package 
properly if any of the programs are already running.  I get tired of going 
out to my customers sites to go through the task manager to clean things up. 
The manufacturer doesn't want to solve the problem, so I want to write a 
program that will detect if any of the programs are already running, and if 
they are, shut them down.

I need some advice on where to start finding if a program is running.

Any help would be greatly appreciated.

Thank you.

Robert E Mitchell, Sr.
Mill Creek, WA 
Technical Details
Message-ID: <44cc30ce$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8821223f4f1a60c,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Robert E Mitchell, Sr." <n2963p@earthlink.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How do I detect if a windows program is running
Date: Sat, 29 Jul 2006 21:09:02 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 209.91.59.12
Message-ID: <44cc30ce$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154232526 209.91.59.12 (29 Jul 2006 21:08:46 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail