Re: How to find file size from pe32 header



"be.geek" <spamtrap@xxxxxxxxxx> wrote:

> This may not be the right forum (pls. point me if not)
>
> Is it possible to find the size of a pe32 file just from the header
> information?
>
> This question is pertinent when the file is not on the disk but rather
> embedded in a network flow, and I want to know where it begins and
> where it ends.

You need to walk the segment descriptors and find the last segment.
The info you need is in a sdk header file, winnt.h or something like that.


.