Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to check the instance of an external application 1

Status
Not open for further replies.

rumman

Programmer
Feb 10, 2002
20
0
0
US
Hi
I am using Tcl/Tk language in Windows XP to find if an external application is already open or not.Is there a Windoes API pr something with which i can know this?

thanks
rumman
 
I'd like to know the 'correct' way of doing this as well.

The only way I know to get this to fly is to use CreateToolhelp32Snapshot() to take a snapshot and then walk the process list using Process32First() and Process32Next().

For each process you extract szExeFile from the PROCESSENTRY32 struct (contains the name of the executable for the process) and hopefully this tells you what you need...



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top