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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search for an application running 1

Status
Not open for further replies.

ibel

Programmer
Feb 12, 2002
4
ES
Hi all,

I am developing an application that has to know if another application is running. Someone can tell me if it is possible to know which applications are running in a machine? I got it in visual c ++ but I don't know how to do it.

Thanks in advance

 
ibel

You can use the Win32 API function FindWindow as follows
Assume your program has a title 'An App'
var
h : hwnd;
begin
h := FindWindow(nil,'An App');
//h is the window handle so if it is not zero it found the window
if h > 0 then
found it!
else
not there!
end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top