title: Find out where PE file ends through PE header?
body: <p>I want to append some binary data to the end of my executable. This is just to make my program into a single file. I tried using UpdateResource but I hit some bug inside it with my specific data, so I have to use another solution. So I need to know the original file size to determine if there is actually any data appended to it. Is it possible to obtain this information from the PE headers?</p>
  
  <p>Thanks!</p>