I have managed to get the ProcessID from a Windows Handle:
GetWindowThreadProcessID(hWnd, @ProcID) ;
And created a handle to the process:
ProcHandle := OpenProcess(Process_All_Access, False, ProcID) ;
But what I really want, is to find all the currently running applications on
a machine that have a window, and retrieve the original "File Path" of the
application.
i.e. "c:\program files\borland\delphi5\bin\delphi32.exe"
I'm afraid I thought this was going to be easy, but with my trusty Tomes
"Win32 Core API" by my side, I am still stumped.
Is this possible?
Dave.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/