if you inject a block of memory into a process does the process clean it up on exit or do you have to deal with this?
Code: Select all
CodeAddress.l = VirtualAllocEx_(hprocess, 0, 2000, #MEM_COMMIT, #PAGE_READWRITE)
I use this bit of code to get the processID
Code: Select all
ProcessFound = CallFunctionFast(ProcessFirst, Snapshot, Process)
While ProcessFound
PID = Process\th32ProcessID
hProcess = OpenProcess_(#PROCESS_ALL_ACCESS, 0, PID)
Pete.