Re: How to get imagebase after a DLL gets loaded



"Jack" <jl@xxxxxxxxxx> wrote in message
news:uUz3aYFFHHA.2268@xxxxxxxxxxxxxxxxxxxxxxx
I am wondering whether I should use
MapViewofFile to get the imagebase of a DLL
after loading that module using LoadLibrary?

I see that you have already gotten a few suggestions.

FWIW: Another thing that you can do _after_ the load is to call
VirtualQuery() passing it the address of some function in the DLL. That will
yield the DLL's base address among other bits of information.

Regards,
Will


.



Relevant Pages

  • Re: Dynamic DLL Loading or Static ?
    ... Loading it on demand the cuts down on load time for the app and on memory foot ... the DLL contains functionality that depends on specific platform features. ... There are two areas where static and dynamic loading differ. ... If you use static loading the DLL will be loaded and its Initialization ...
    (borland.public.delphi.nativeapi)
  • Re: Dynamic DLL Loading or Static ?
    ... A DLL is dynamic linked always: ... terms are load-time dynamic linking and run-time dynamic linking. ... > initialize this DLL and I'm loading it dynamically. ... This is the default value for WinXP SP1 and WinSrv03. ...
    (borland.public.delphi.nativeapi)
  • Re: Network Drive Issue
    ... > CHKDSK isn't sufficient to determin the heath of the drive. ... This is related to some network device driver ... renamed to disable it in VS 2005 due to slow and long delay loading ... the last DLL loaded is FEACP.DLL as well. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Manifest Requires Win2K Compatibility?
    ... You need to call InitCommonControlsEx() in a controlled manner in order to load the new version Common Controls before the VB6 runtime gets the chance to force loading of the older version DLL. ... Once VBRUN has made this call, the system won't try to handle DLL loading failures - expecting the "I'm so smart" VBRUN to handle them. ...
    (microsoft.public.vb.general.discussion)
  • Re: Unloading a DLL to update it.
    ... Since I am loading the dll ... >> Private Shared Sub StartApplication() ...
    (microsoft.public.dotnet.languages.vb)