title: Injecting thread with codecave
body: <p>By using 'codecave' technique to inject code into another process; is it possible to inject code to create a new thread (and also inject the code for the new thread) and let that thread execute parallel with the target process main thread?</p>
  
  <p>I can manage this with dll injection but I want to know if it is possible with just pure code injection.</p>
  
  <p>The intention is first of all to learn about different injection techniques but in the end create a heartbeat feature for random processes in order to supervise execution (High Availability). Windows is the target OS and language is C/C++ (with inline ASM when required).</p>
  
  <p>Thanks.</p>