Click to See Complete Forum and Search --> : Getting ProcessID


Thorin
August 1st, 1999, 12:11 PM
Does anyone know how to get the ProcessID of a running app?
Thanx,
Thorin

Ravi Kiran
August 1st, 1999, 08:13 PM
Hi,
Because it is a running app, you can first get the window handle of that app With EnumWindows and then pass this handle to GetWindowThreadProcessId fn which returns the Thread & Process ids associated with that window.

If the running app has no window, then i dont know ?!?!

Ravi Kiran