I'm running ruby on my Windows 7 machine. How can I do the following with Ruby(1.9.3):
Get all the processes details (like PID, Image Name, Memory Usage) running on the machine &
Get the memory contents in plain text format for each of the above processes so that I will be able to parse it..
For first task should I use windows tasklist
command and parse it for the required information or some better alternative exists.
And for second I have read a lot and still confused, whether I should create a ruby extension
or use FFI
or use some kind of WinAPI
function ReadProcessMemory
..
This stack overflow question resembles my situation How can I read the memory of another process in Python in Windows?