title: Is there a way to recieve a event about a process starting in windows?
body: <p>TL;DR</p>
  
  <p>I have written a program in C++ to close all "new" programs that start that were not running when my program started. Currently I do this by capturing all PIDs and then constantly checking all registered applications against this list. Those who are not on my list I attempt to close/kill. This is very CPU intensive for such a simple task. Is there a way to receive some sort of windows event so I don't need to have a very active thread?</p>
  
  <p>I found <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms644977(v=vs.85).aspx" rel="nofollow noreferrer">this</a> hook which might do what I need it to do, but it kind of seems geared towards other purposes, not quite what I need.</p>
  
  <p>In a nutshell:</p>
  
  <p>Is there a event I can receive from windows right after/before a process launches?</p>