Page 1 of 1

All running Processes And Loaded Modudles

Posted: Fri Mar 13, 2009 10:11 pm
by randy
Hi , i want to Enumerate All running Processes and All Loaded Modules( All loaded modules not when i select a Process ID but all Loaded Modules in Memory )

// All running processes ( Path+Exename )
// All Loaded Modules ( Path+Exename )

Is this possible with madKernel .

if possible with a sample Project .





many thanks

Posted: Thu Apr 23, 2009 11:54 am
by madshi
Add "madKernel" to your uses clause. Then you can do something like this:

Code: Select all

with Processes do
  for i1 := 0 to ItemCount - 1 do
    ShowMessage(Items[i1].ExeFile);

Code: Select all

with Modules(true) do
  for i1 := 0 to ItemCount - 1 do
    ShowMessage(Items[i1].FileName);