Please help.. what am I doing wrong here?
format PE GUI 4.0
include 'J:\fasmw16727\INCLUDE\win32ax.inc'
library version,'VERSION.DLL'
import version,GetFileVersionInfoSize,'GetFileVersionInfoSizeA'
section '.text' code readable executable
text:
invoke GetFileVersionInfoSize,somedll,thingy
invoke ExitProcess,0
section '.data' data readable writeable
somedll db "kernel32.dll",0
thingy dd ?
.end text
I found many examples on Google of how to use this function, but no matter what I do it crashes.. and I can't just directly copy and paste anything I find because it's not FASM syntax..
P.S. why did I have to manually do the library and import thing for it even though I included win32ax.inc?