[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [exelist] Re: FileChecksum? MH.



Haya Liquid & Senna Spy!
------------------------

ThanXs for your fastest answers, but
both solutions use the "imagehlp.dll".

This wasn't my origin intention, i want a
pure DOS function (like asm or TP).


###  Senna
> Do you can download a good C source code at:
> www.collakesoftware.com

well.. this was my first attempt to receive
a good tutorial for my problem, but..


### Liquid
>   You can simply use CheckSumMappedFile():
> 
> PIMAGE_NT_HEADERS
> IMAGEAPI
> CheckSumMappedFile (
>     PVOID BaseAddress,
>     DWORD FileLength,
>     PDWORD HeaderSum,
>     PDWORD CheckSum
>     );

could you give me  more information
about record above

Maybe a sample file, that would be nice!!

I want to remember you
MH >  the fileoffset at begin    = BaseAddress
MH >  the blocksize (512 bytes?)
MH >  the length of calculation  = FileLength
    - HeaderSum ??

BtW: If a have solved this problem, i would
     think "time for a new public release".

---------------------------------------------
4 all a good time..   bye says    |\o?o/|