Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

View Poll Results: how to use CreateFileMapping in SWFKit pro
aa 0 0%
cc 0 0%
Voters: 0. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2008, 10:17 AM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default how to use CreateFileMapping in SWFKit pro

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
Reply With Quote
  #2 (permalink)  
Old 06-05-2008, 10:24 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: how to use CreateFileMapping in SWFKit pro

Why do you want to do that? On the running exe file?
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:14 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.