I'm about to write the following interaction:
When there is a process about to start, driver will notify user app and then it will wait for response from the app.
The app will decide whether or not to allow that process to be created normally or terminated immediately, and send its decision back to the driver.
Base on the decision from user app. The driver will then allow or block the process execution.
My question is: What is recommended way to notify user-mode app from driver and then make the driver wait for the response?
CreateProcessNotifyEx, but since it runs in the context of the thread which created the new process I guess it should be OK. - Harry Johnston