Re: How to get imagebase after a DLL gets loaded
- From: "William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx>
- Date: Sat, 2 Dec 2006 08:13:46 -0500
"anton bassov" <soviet_bloke@xxxxxxxxxxx> wrote in message
news:1165040770.676528.296720@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If you know DLL's name, it is better just to call GetModuleHandle() -
in terms of overhead,
Hardcoding the DLL's name is a far too brittle option for me.
this is much less expensive call, ...
Premature optimization is the root of much evil.
As I said, I do that where I put up a dialog in a function exported from a
DLL. I an afford the call into the kernel.
In fact, if you don't mind a bit of "hacking",
I do mind.
you can obtain all info about user-mode modules from the
PEB yourself - this is how Toolhelp32 obtains info about modules
You never cease to disappoint. First you criticize my use of a documented
function in a totally legitimate way raising some specious argument about
performance. And then you propose an alternative that involves your favored
appriach to software development - the slimy hack.
Regards,
Will
.
- Follow-Ups:
- Re: How to get imagebase after a DLL gets loaded
- From: anton bassov
- Re: How to get imagebase after a DLL gets loaded
- References:
- How to get imagebase after a DLL gets loaded
- From: Jack
- Re: How to get imagebase after a DLL gets loaded
- From: William DePalo [MVP VC++]
- Re: How to get imagebase after a DLL gets loaded
- From: anton bassov
- Re: How to get imagebase after a DLL gets loaded
- From: William DePalo [MVP VC++]
- Re: How to get imagebase after a DLL gets loaded
- From: anton bassov
- Re: How to get imagebase after a DLL gets loaded
- From: William DePalo [MVP VC++]
- Re: How to get imagebase after a DLL gets loaded
- From: anton bassov
- How to get imagebase after a DLL gets loaded
- Prev by Date: Re: Intro to writing kernel hooks
- Next by Date: Re: Dealing with HANDLEs
- Previous by thread: Re: How to get imagebase after a DLL gets loaded
- Next by thread: Re: How to get imagebase after a DLL gets loaded
- Index(es):
Relevant Pages
|