title: In python with pywin32, win32job, the CreateJobObject function, how do I pass NULL for the name parameter?
body: <p>I'm trying to use the win32job API that is part of the PyWin32 package.  I want to do this:</p>
  
  <pre><code>win32job.CreateJobObject(None, NULL)
  </code></pre>
  
  <p>I want to pass NULL as the second parameter as documented here:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms682409(v=vs.85).aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/windows/desktop/ms682409(v=vs.85).aspx</a></p>
  
  <blockquote>
    <p>If lpName is NULL, the job is created without a name.</p>
  </blockquote>
  
  <p>How do I pass in NULL?</p>
  
  <p>Here's what I hoped would work, but doesn't:</p>
  
  <pre><code>win32job.CreateJobObject(None, None)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>TypeError: None is not a valid string in this context
  </code></pre>
  
  <hr>
  
  <p>(Side question... if anyone knows how to view JobObjects associated with a process in Windows, that would be helpful.)</p>