title: Access denied error when using VirtualQueryEx
body: <p>So, I wrote a program which is able to successfully read memory from most of processes using <code>VirtualQueryEx</code>. However, I've come across a process for which this function fails. It's not a system process, just a game process. Without Debug privileges I couldn't even open the process's handle. With them I am able to get the process's handle but still get access denied for <code>VirtualQueryEx</code>.</p>
  
  <p>I'm not sure but maybe the process is private? If that's the case, what should I do to successfully use <code>VirtualQueryEx</code> function?</p>
  
  <p>I've also read somewhere that I might have to suspend whole process's threads before running <code>VirtualQueryEx</code>, but so far I didn't need that... And when I used function <code>Thread32First</code> to get the first thread it gave me an error: <code>ERROR_BAD_LENGTH</code>...</p>
  
  <p>I would be very grateful for any help in this matter!</p>