hello SWFKit!
help me!
Code:
dllimport "kernel32.dll" stdcall long CreateFileA(String,long,long,pointer,long,long,long) as creatfile;
dllimport "kernel32.dll" stdcall long CreateFileMappingA(long,long,long,long,long,String) as CFMap
var filename=getExeName().split("\\").join("\\\\")
filhandle=creatfile(filename, 0x80000000/*GENERIC_READ*/,
0x00000001/*FILE_SHARE_READ*/, null, 3/*OPEN_EXISTING*/,
0x00000080/*FILE_ATTRIBUTE_NORMAL*/, 0)
trace(filhandle)
//why can not the code bellow normal execution?
trace(CFMap(filhandle,0,0x8000000 /*SEC_COMMIT*/,0,0,"mapping"))//out put 0