title: Unmanaged C++ Get the current process id? (Console Application)
body: <p>How can I get the current process id from an unmanaged C++ console application? I see that</p>
  
  <pre><code>GetWindowThreadProcessId
  </code></pre>
  
  <p>Works when you have an HWND, but what can I do for a console application?</p>