How to get imagebase after a DLL gets loaded



I am wondering whether I should use
MapViewofFile to get the imagebase of a DLL
after loading that module using LoadLibrary? or maybe CreateProcess
It seems to me like a "static-loading" and "dynamic-loading" problem.
If I load it from hard drive, I would need to use MapViewofFile, otherwise I
should use LoadLibrary
or CreateProcess????
Thanks



.



Relevant Pages

  • Re: How to get imagebase after a DLL gets loaded
    ... after loading that module using LoadLibrary? ... or maybe CreateProcess ... If I load it from hard drive, I would need to use MapViewofFile, otherwise I should use LoadLibrary ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to get imagebase after a DLL gets loaded
    ... MapViewofFile to get the imagebase of a DLL ... after loading that module using LoadLibrary? ... or maybe CreateProcess ... If I load it from hard drive, I would need to use MapViewofFile, otherwise ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to get imagebase after a DLL gets loaded
    ... you can also use LoadLibraryEx() - it can ... load a library into your address space without calling its entry point ... MapViewofFile() for the section, opened with SEC_IMAGE flag. ...
    (microsoft.public.win32.programmer.kernel)

Quantcast