• Welcome to Valhalla Legends Archive.
 

Question Concerning Open Processes

Started by Dyndrilliac, May 02, 2004, 01:56 AM

Previous topic - Next topic

Dyndrilliac

I want to get all open processes that are running and there process id's, and display them on a listview - How would I go about doing this? I used search, and tried www.pscode.com, but my results were not - comforting, to say the least. My end goal is to create a program to load patches into another processes memory in order to alter it. I am aware this project will require several API's, including GetProcess() and WriteProcessMemory().
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

iago

Have a look at the book "Advanced Programming" or "Programming Application in Microsoft Windows" - one of his sample programs enumerates running processes.  It's written in C++, but the api calls (which are the important part) can be converted easily.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Grok

#2
I've written VB code to enumerate processes too.  Will find and post.

Or just use this from MSDN -  (Q187913) HOWTO: List Running Processes