title: How to assign process created via CreateProcessWithLogon to job object created by my process?
body: <p>I am working with sandbox project Spawner (<a href="https://github.com/klenin/Spawner" rel="nofollow">https://github.com/klenin/Spawner</a>) under Windows platform.</p>
  
  <p>I encountered a problem: how I can assign process, created with CreateWithLogonW function, to job object, created by my process?</p>
  
  <p>I've tried to create custom security descriptor allowing all actions to everyone and use it in CreateJobObject, but nothing happens. Result still the same: </p>
  
  <pre><code>Access denied.
  </code></pre>
  
  <p>Can do I do it at all? Or there is no solution in such way?</p>