Determine memory address of 'self' (exe)?

Windows specific forum
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Determine memory address of 'self' (exe)?

Post by jassing »

Is there a way to get the start address of an exe in memory?
User avatar
spikey
Enthusiast
Enthusiast
Posts: 778
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Determine memory address of 'self' (exe)?

Post by spikey »

Only if you enjoy pain - the exe has three different 'base' addresses, the address of the image, the address of the start of the code in the image and of course the mapping between the virtual and physical memory but have a look at:-

I assume you're referring to Windoze - if its Linux or Mac - I've no idea where to start!

http://msdn.microsoft.com/en-us/library ... s.85).aspx
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: Determine memory address of 'self' (exe)?

Post by jassing »

spikey wrote:I assume you're referring to Windoze
Of course, that's why I posted in the windows forum...

Thanks for the link, will read it over lunch.

-j
User avatar
spikey
Enthusiast
Enthusiast
Posts: 778
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Determine memory address of 'self' (exe)?

Post by spikey »

:oops: I just saw the posting in the unanswered postings list - I didn't really take any notice of where it had originated.
Post Reply