title: How to get the PID of a PyWin32 process
body: <p>I'm using the PyWin32 extensions to do some Microsoft Office calculations through my Python code.</p>
  
  <p>This is how I start Word:</p>
  
  <pre><code>import win32com.client
  
  wordApp = win32com.client.Dispatch("Word.Application")
  # calculations...
  # Now, how do I get its PID?
  </code></pre>
  
  <p>What I am trying to figure out here is <strong>how to get the wordApp process ID (PID)</strong> since I am not using the <code>subprocess</code> module here and I can't just type <code>wordApp.pid</code>.</p>
  
  <p>Thanks in advance.</p>