title: Get pointer to IMAGE_DOS_HEADER with GetModuleHandle?
body: <p>I am trying to get the image base of my process once it is loaded in memory. From my understanding, you can call GetModuleHandle to get the image base. My question is, does the handle returned essentially point to the IMAGE_DOS_HEADER struct such that you could do the following:</p>
  
  <pre><code>PIMAGE_DOS_HEADER DosHeader;
  DosHeader = (PIMAGE_DOS_HEADER)GetModuleHandle(NULL);
  </code></pre>
  
  <p>If this is not correct, what other method could you use?</p>