title: 'GetProcessIdOfThread': identifier not found
body: <p>Here is my codes in <strong>stdafx.h</strong> :   </p>
  
  <pre><code>// stdafx.h : include file for standard system include files,
  // or project specific include files that are used frequently, but
  // are changed infrequently
  //
  
  #pragma once
  
  #define _WIN32_WINNT  0x0502
  
  #include "winsock2.h"
  #include "windows.h"
  #include "stdio.h"
  #include "Iphlpapi.h"
  #include &lt;psapi.h&gt;
  #include "Ntsecapi.h"
  #include "txdtc.h"
  #include "xolehlp.h" 
  #include &lt;iostream&gt;
  #include &lt;tchar.h&gt;
  
  // TODO: reference additional headers your program requires here
  </code></pre>
  
  <p>As you see i have included "windows.h"   </p>
  
  <p>And here is main codes :   </p>
  
  <pre><code>#include "stdafx.h"    
  ...
  if (hThread &amp;&amp; dwRpcssPid == GetProcessIdOfThread(hThread))   
  ... 
  </code></pre>
  
  <p>My errors are :     </p>
  
  <blockquote>
    <p>'GetProcessIdOfThread': identifier not found</p>
    
    <p>IntelliSense: identifier "GetProcessIdOfThread" is undefined</p>
  </blockquote>
  
  <p>How can i fix these errors?    </p>