All running Processes And Loaded Modudles

delphi package - easy access to kernel objects etc.
Post Reply
randy
Posts: 7
Joined: Sun Jun 08, 2008 1:07 am

All running Processes And Loaded Modudles

Post 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
madshi
Site Admin
Posts: 10369
Joined: Sun Mar 21, 2004 5:25 pm

Post 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);
Post Reply