How do I prevent the process from being started?

In order to handle OnProcessCreation event, validate the new process using the information provided in the event handler parameters, and finally throw ECBProcError exception with the error code of ERROR_ACCESS_DENIED (this is Windows error code 5).

Ready to get started?

Learn more about Callback Technologies or download a free trial.

Download Now