Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShared directories Pin
Fernando A. Gomez F.25-Aug-07 14:52
Fernando A. Gomez F.25-Aug-07 14:52 
AnswerRe: Shared directories Pin
Garth J Lancaster25-Aug-07 17:52
professionalGarth J Lancaster25-Aug-07 17:52 
GeneralRe: Shared directories Pin
Fernando A. Gomez F.25-Aug-07 18:45
Fernando A. Gomez F.25-Aug-07 18:45 
AnswerRe: Shared directories Pin
aks.26-Aug-07 17:28
aks.26-Aug-07 17:28 
QuestionSendMessage set LPARAM data Pin
Perspx25-Aug-07 13:59
Perspx25-Aug-07 13:59 
AnswerRe: SendMessage set LPARAM data Pin
machengzhi25-Aug-07 14:49
machengzhi25-Aug-07 14:49 
GeneralRe: SendMessage set LPARAM data Pin
Perspx25-Aug-07 23:37
Perspx25-Aug-07 23:37 
QuestionHooking ExitProcess Pin
Waldermort25-Aug-07 13:35
Waldermort25-Aug-07 13:35 
To those who said running an exe from within the resource section is impossible :p I did it!

But, here's a problem that is turning my hair grey. The exe I'm running ( a console app from a console app ) loads a single dll ( FooBar.dll ), This dll in turn loads kernel32. The problem is, when the loaded exe finishes execution, ExitProcess() is called from within FooBar.dll.

Now I need to trap this and return back to my main program, but everything I have tried so far just doesn't work. I'm guessing I need to set a hook and all the tuts I have read on the subject say to create and inject a dll. Is this really necessary to hook an api call for my own process?
AnswerRe: Hooking ExitProcess Pin
Perspx25-Aug-07 13:48
Perspx25-Aug-07 13:48 
GeneralRe: Hooking ExitProcess Pin
Waldermort25-Aug-07 13:59
Waldermort25-Aug-07 13:59 
AnswerRe: Hooking ExitProcess Pin
Perspx25-Aug-07 14:06
Perspx25-Aug-07 14:06 
GeneralRe: Hooking ExitProcess Pin
Richard Andrew x6425-Aug-07 14:32
professionalRichard Andrew x6425-Aug-07 14:32 
GeneralRe: Hooking ExitProcess Pin
Waldermort25-Aug-07 14:37
Waldermort25-Aug-07 14:37 
GeneralRe: Hooking ExitProcess Pin
Richard Andrew x6425-Aug-07 15:18
professionalRichard Andrew x6425-Aug-07 15:18 
GeneralRe: Hooking ExitProcess Pin
Waldermort25-Aug-07 15:22
Waldermort25-Aug-07 15:22 
GeneralRe: Hooking ExitProcess Pin
Richard Andrew x6425-Aug-07 15:25
professionalRichard Andrew x6425-Aug-07 15:25 
GeneralRe: Hooking ExitProcess Pin
Waldermort25-Aug-07 15:29
Waldermort25-Aug-07 15:29 
GeneralRe: Hooking ExitProcess Pin
Richard Andrew x6425-Aug-07 15:23
professionalRichard Andrew x6425-Aug-07 15:23 
GeneralRe: Hooking ExitProcess Pin
Waldermort25-Aug-07 16:27
Waldermort25-Aug-07 16:27 
GeneralRe: Hooking ExitProcess Pin
Richard Andrew x6425-Aug-07 19:22
professionalRichard Andrew x6425-Aug-07 19:22 
GeneralRe: Hooking ExitProcess Pin
Waldermort26-Aug-07 0:12
Waldermort26-Aug-07 0:12 
AnswerRe: Hooking ExitProcess Pin
Naveen26-Aug-07 19:31
Naveen26-Aug-07 19:31 
GeneralRe: Hooking ExitProcess Pin
Waldermort26-Aug-07 19:43
Waldermort26-Aug-07 19:43 
GeneralRe: Hooking ExitProcess Pin
Naveen26-Aug-07 19:57
Naveen26-Aug-07 19:57 
GeneralRe: Hooking ExitProcess Pin
Waldermort26-Aug-07 20:05
Waldermort26-Aug-07 20: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.