Click here to Skip to main content
16,015,274 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Return value Pin
Timothy198214-Sep-04 0:15
Timothy198214-Sep-04 0:15 
GeneralRe: Return value Pin
BlackDice13-Sep-04 12:04
BlackDice13-Sep-04 12:04 
GeneralFullscreen weirdness in XP Pin
Jörgen Sigvardsson13-Sep-04 5:34
Jörgen Sigvardsson13-Sep-04 5:34 
GeneralRe: Fullscreen weirdness in XP Pin
mcgahanfl13-Sep-04 7:09
mcgahanfl13-Sep-04 7:09 
GeneralShow 2 dialog windows Pin
Larsson13-Sep-04 5:07
Larsson13-Sep-04 5:07 
GeneralRe: Show 2 dialog windows Pin
David Crow13-Sep-04 7:49
David Crow13-Sep-04 7:49 
Questionanyone knows of this control? Pin
GerhardC13-Sep-04 4:50
GerhardC13-Sep-04 4:50 
GeneralExecute an .exe read in memory Pin
mich213-Sep-04 3:35
mich213-Sep-04 3:35 
Hi,

I just want to execute an .exe program already read by myself in memory, say:

:
uchar *buf = (uchar*)malloc(file-byte-size);
FILE *fp = fopen("test.exe", "rb");
fread(buf, 1, file-byte-size, fp);
// Cool | :cool: do some specific codes here Cool | :cool:
run-exe-image(buf); // This is what I want
:


Seemingly, I could't find any API function so far to do this.
All execution functions require .exe file name. (e.g. CreateProcess, ShellExecute, spawn..., exec..., what else?)
I have a need to modify some data in the binary image on the fly without using external parameter file nor modified version of the .exe in temporary folder because of security reasons.
Could someone point me out or lead to links?
Thanks in advance.

mich
GeneralRe: Execute an .exe read in memory Pin
David Crow13-Sep-04 3:55
David Crow13-Sep-04 3:55 
GeneralRe: Execute an .exe read in memory Pin
Alexander M.,13-Sep-04 4:05
Alexander M.,13-Sep-04 4:05 
GeneralRe: Execute an .exe read in memory Pin
David Crow13-Sep-04 4:07
David Crow13-Sep-04 4:07 
GeneralRe: Execute an .exe read in memory Pin
mich213-Sep-04 4:17
mich213-Sep-04 4:17 
GeneralRe: Execute an .exe read in memory Pin
BlackDice13-Sep-04 12:07
BlackDice13-Sep-04 12:07 
GeneralRe: Execute an .exe read in memory Pin
mich213-Sep-04 14:34
mich213-Sep-04 14:34 
GeneralRe: Execute an .exe read in memory Pin
Arsalan Malik13-Sep-04 19:31
Arsalan Malik13-Sep-04 19:31 
GeneralRe: Execute an .exe read in memory Pin
mich213-Sep-04 19:45
mich213-Sep-04 19:45 
GeneralCreating shareware Pin
Hoornet9313-Sep-04 3:15
Hoornet9313-Sep-04 3:15 
GeneralRe: Creating shareware Pin
Antti Keskinen13-Sep-04 3:42
Antti Keskinen13-Sep-04 3:42 
GeneralRe: Creating shareware Pin
Hoornet9313-Sep-04 5:02
Hoornet9313-Sep-04 5:02 
GeneralRe: Creating shareware Pin
Alexander M.,13-Sep-04 4:07
Alexander M.,13-Sep-04 4:07 
GeneralRe: Creating shareware Pin
Henry miller13-Sep-04 4:33
Henry miller13-Sep-04 4:33 
GeneralRe: Creating shareware Pin
Antony M Kancidrowski13-Sep-04 4:33
Antony M Kancidrowski13-Sep-04 4:33 
GeneralODBC programming - need help Pin
acroitoriu13-Sep-04 2:47
acroitoriu13-Sep-04 2:47 
GeneralRe: ODBC programming - need help Pin
Hardy_Smith13-Sep-04 2:52
Hardy_Smith13-Sep-04 2:52 
GeneralRe: ODBC programming - need help Pin
David Crow13-Sep-04 4:05
David Crow13-Sep-04 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.