How do I prevent the process from being started?

In order to handle the OnProcessCreation event, validate the new process using the information provided in the event handler parameters, and finally throw an 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