All running Processes And Loaded Modudles

delphi package - easy access to kernel objects etc.

All running Processes And Loaded Modudles

Postby randy » Fri Mar 13, 2009 10:11 pm

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
randy
 
Posts: 7
Joined: Sun Jun 08, 2008 1:07 am

Postby madshi » Thu Apr 23, 2009 11:54 am

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


Return to madKernel

Who is online

Users browsing this forum: No registered users and 2 guests

cron