Hello forks,

Could anyone tell me how to calculate checksum in Section Definitions(Auxiliary Format 5) in a COFF?

Posted on 2006-03-12 12:23:56 by uwata
You can use the CheckSumMappedFile function in IMAGEHLP.DLL to calculate the checksum
Posted on 2006-03-12 13:12:25 by donkey
To donkey,

Thank you for your comment.

But, the function CheckSumMappedFile seems to be for image file, while I mean .obj file.

So, I'd like to ask again; Could anyone tell me how to calculate a checksum in a Auxiliary Format 5 following a code section. C or C++ source code would be very appreciated.

Thank you.
uwata
Posted on 2006-03-12 23:12:31 by uwata
http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/pecoff.doc
from reading that, it looks to be a regular crc32 algorithm which you can find almost any where.
Posted on 2006-03-15 22:30:49 by Qages