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.
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;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.