title: Calculate Size of PE header in C / Capstone
body: <p>I'm struggling to write a C function to calculate the size of the PE header in a executable. I'm trying to disassemble a bunch of files using Capstone. In order for Capstone to disassemble the file, the data buffer has to start AFTER the PE header in a executable. Basically, I can't just give Capstone a file and say disassemble. </p>
  
  <p>I know how to use Capstone and I have some functions written to start the disassembly process. But I don't know how to seek in a file to the end of the PE header. If someone could provide me with some pointers or tips I would appreciate it. Thank You.</p>
  
  <p>-Mike</p>