Hi all

I use an addon for Outlook that is creating multiple instances of Outlook to
run invisibly. I can see them all using Task Manager.

Is there a way in FoxPro or API to count how many instances of any
application are active? This might be useful in other circumstances where a
bug in my automation code leaves multiple copies of Word running.

Malcolm

Re: How to find out how many instances running. by Eric

Eric
Tue Sep 09 05:15:37 CDT 2003

Hello, Malcolm!
You wrote on Tue, 9 Sep 2003 10:15:26 +0100:

M> I use an addon for Outlook that is creating multiple instances of
M> Outlook to run invisibly. I can see them all using Task Manager.

M> Is there a way in FoxPro or API to count how many instances of any
M> application are active? This might be useful in other circumstances
M> where a bug in my automation code leaves multiple copies of Word
M> running.

Here's something to start with:

HOWTO: Use API Calls to Detect Other Running Applications
http://support.microsoft.com/default.aspx?scid=kb;en-us;188404

HOWTO: Determine When a 32-bit Process has Completed
http://support.microsoft.com/default.aspx?scid=kb;en-us;191584

HOWTO: Capture the Path to a File that has been Loaded into an Applications
Memory Space
http://support.microsoft.com/default.aspx?scid=kb;en-us;240239
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: How to find out how many instances running. by Malcolm

Malcolm
Wed Sep 10 04:12:18 CDT 2003

Thanks Eric. Spot on! :-)