I have two arraylist. Namely ExistingProcess and CurrentProcess.
Arrayalist ExistingProcess contains a list of processes that started when this application started.
The CurrentProcess argualist is in the thread to run the process running on the system all the time.
Every time the arraylist currentProcess starts the current process, I want to do a comparison with the Arrayylist from ExistingProcess and show it as a message, for example,
Missing process: NotePad [If notepad is closed and the application is running] New process: MsPaint [if MSPaint is running after the application starts]
This is basically a comparison of two arraylist to find out that a new process is running and the process is closed after starting my C # application.
Hope my question is clear. Help required.
source share