how does one find the size of an opened file?
for example the size of (bbb.exe which is attached with the post)!

i find the following information related to the query:
GetFileSize function ‘retrieves the size of the specified file, in bytes.’
‘if the function succeeds, the return value is the low-order doubleword of the file size’

So, i use this code snippet (please correct it if needed)
        Push 0
        Push Filhandle
        Call GetFileSize
        Mov  FilSize,eax
        cmp  eax,0ffffffffh
        Jz exit

so, the function has retrieved the size of the specified file in bytes.

but how/where do i ‘see’ this value ?
what is a low-order doubleword ?

thank you!
Posted on 2009-07-11 11:21:20 by hell0
Doubleword, or DWORD, is a 32-bit value in Microsoft nomenclature.

Windows supports 64-bit file sizes. the lower 32 bits (lower dword) is returned in eax when GetFileSize returns. The higher dword is stored at the address you (optionally) give as one of the parameters (and you better do! Otherwise your app will work strangely with files larger than 2GB).

To "see"  the value, you have to present it somehow to the user. But this is entirely different topic related to things starting from number systems to user interface.
Posted on 2009-07-11 12:25:46 by ti_mo_n
ti_mo_n !

The associated information that low-order dword is returned to and high dword is stored at a different location is helpful and your effort is appreciated.

Thank you.
Posted on 2009-07-12 00:21:10 by hell0