Re: specifying memory location for DLL load

New Message Reply About this list Date view Thread view Subject view Author view

acpizer@mach.unseen.org
Wed, 25 Nov 1998 08:22:50 +0000 (GMT)


On Tue, 24 Nov 1998 staym@accessdata.com wrote:

> Is there any way to tell windows to load a DLL at a specific address?
there is a way, in the PE header there is a dword which defines the load
address, it is called 'Image base' look it up in the PE exe format specs.

> If not, is there any way to change the flags on the page it was loaded
> into so as to allow the DLL to be self-modifying?
there is also another dword which defines the flags, r/w/x, for every
section, .data, .txt etc.

and, there is even another way to change these flags once the dll has
already loaded ;)

call VirtualQuery to get the protection flags, and VirtualProtect to
apply new flags, look these API's in the win32 sdk ;)

Signed,
            acpizer.

> --
> Mike Stay
> Cryptographer / Programmer
> AccessData Corp.
> mailto:staym@accessdata.com
>


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:17:19