Solved

A Single Program how many time running in windows

Posted on 2004-09-05
7
199 Views
Last Modified: 2010-04-17
Dear Sir,

can you help me?

I single application how many time running in the windows? how to find through visual basic program?


best Regards,

M. Mohamed Rafeek
0
Comment
Question by:md_yasheen
  • 2
7 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 25 total points
ID: 11986192
If you can rely on the window title to be consistent, you can use the EnumWindows() API call to find all windows.  You then look at the title for each to see if it matches.  Here's an example of using EnumWindows():
http://www.developerfusion.com/show/34/2
0
 

Assisted Solution

by:Andrew-Killer
Andrew-Killer earned 25 total points
ID: 11986337
http://support.microsoft.com/?kbid=197593

This appears to do what you need.
0
 
LVL 2

Expert Comment

by:Parsi
ID: 11987096
Dear Mohamed

if u wanna check your current program,

'App.PrevInstance' is a boolean variable which shows that the current program is running in the memory.

Good luck.
0
 
LVL 22

Expert Comment

by:cookre
ID: 12169723
Split between Andrew-Killer and cookre
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now