title: TerminateProcess not working in Windows 7
body: <p>I am writing an application in c++ on win7 platform which needs to close another application.
  The steps I use are: </p>
  
  <ol>
  <li>Enumerate all processes with EnumProcess(). </li>
  <li>Open a Process handle with OpenProcess(). The access rights are PROCESS_ALL_ACCESS|PROCESS_VM_READ. </li>
  <li>Then enumerate process modules with EnumProcessModules()</li>
  <li>I extract the module name with GetModuleBaseName() and compare it with the process name that I have.</li>
  <li>When I find a match, I use TerminateProcess() to kill the process.</li>
  </ol>
  
  <p>The problem I am facing is this works in WindowsXP but not in Windows 7(64 bit). Using getlasterror(),
  I get the error as "Access Denied". I guess it has something to do with access rights.
  Is there any way I can do this on both the platforms? Or is there an API specific to win7?</p>