delphi - Get list of process -


i need list of process pid. know how pid handle , viceversa, problem i'm not 1 create process, don't have handle nor pid. didn't find information on how on internet.

is there function returns list of process pid?

i mean pids of 'chrome.exe', example.

both vcl , firemonkey solutions appreciated.

this platform-specific, , such there nothing in firemonkey or vcl it. have use platform apis directly.

for instance, on windows can use createtoolhelp32snapshot(), process32first() , process32next():

taking snapshot , viewing processes

or can use enumprocesses():

enumerating processes

either approach getyou list of filenames , pids, can filter list filename(s) interested in.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -