Ok, I've been trying to do this for a while
I'm trying to code a section of my program to scan all the current running processes, then afterwards kill any new ones that try to start
It scans and adds all the processes to a list at the beginning, then it starts checking all the running processes against the ones in the list,if one of the running processes aren't on the list it kills it...well at least thats what its supposed to do, I've been stuck on this problem a while and i just decided to post it and see if anyone could help me, so that section of code has long since been deleted because it crashed my computer every time it was run. But if i remember correctly I had a fastloop that would go though each process on the list and then enumerate processes and check each one to the one on the list, if one of the ones matched then it went to the next one, if none matched, it kills it.
I hope you can understand what I'm asking
A example would be greatly appreciated also
Thanks ahead of time!
Oh and I know someone will ask why i need this, well its for a security application I'm working on, you'll see in a bit when i release it!