

Public extern static int OpenProcess(int access, bool inherit, int pid) I want to do something like the "sCreateProcessNotifyRoutineEx" function from C++ in C#. The problem is that the code below is executed when all threads in the process are loaded and the process is doing its job. I am developing an application to monitor new running processes before the main thread starts running.
