title: how to get process handle from process id?
body: <p>I have process Id , I want to get its process handle.</p>
  
  <p>Is there any API available for that.</p>
  
  <p>I tried to use OpenProcess but it returns NULL, and GetLastError =0.</p>
  
  <p>This I am trying on Vista.</p>
  
  <p>I guess I need to enable SeDebugPrivilege before using  OpenProcess .
  But for enabling SeDebugPrivilege I need to get its Process handle.</p>