Search found 5 matches

by Kendy
Thu Jun 01, 2006 2:25 pm
Forum: madCodeHook
Topic: How to get the EXE's name and path?
Replies: 4
Views: 3549

madshi wrote:Yes, that's what the code is doing. Just try it!!
GetModuleFileName(HInstance,...) —> failure,return the dll's path.
GetModuleFileName(0,...) —> success,return the exe's path.
Thank you very very much!!!!!!!!!!
:crazy:
by Kendy
Thu Jun 01, 2006 1:49 pm
Forum: madCodeHook
Topic: How to get the EXE's name and path?
Replies: 4
Views: 3549

madshi wrote:In the hook DLL simply call "GetModuleFileName(0, ...)".
I want to get the Exe's path ,not the DLL's.
by Kendy
Thu Jun 01, 2006 12:43 pm
Forum: madCodeHook
Topic: How to get the EXE's name and path?
Replies: 4
Views: 3549

How to get the EXE's name and path?

When I use the madcodehook to Hook some system API with a DLL,
How to get the EXE's name and path which be hooked?
by Kendy
Wed May 31, 2006 12:47 pm
Forum: madCodeHook
Topic: a newer's question
Replies: 1
Views: 2198

a newer's question

Is the "madCHook.dll" necessary when use "madcodehook"??? :oops:
by Kendy
Fri Mar 31, 2006 3:58 pm
Forum: madBasic
Topic: [madRes] Update Exe Resources
Replies: 8
Views: 27256

procedure UpdateRes(exeFile, ResName, resFile: string); var resHandle : dword; resMem : TMemoryStream; begin resHandle := BeginUpdateResourceW(PWideChar(wideString(exeFile)), false); //try <<< resMem := TMemoryStream.Create; try //<<< resMem.LoadFromFile(ResFile); if resHandle <> 0 then begin Updat...