News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

finding current module start addr

Started by realcr, August 18, 2007, 03:27:06 PM

Previous topic - Next topic

realcr

Is there any simple way of finding the start address of the running program?
I thought about doing something like LoadLibrary to the current program...
I wonder if there is actually a nice way of doing that.

realcr.

evlncrn8

base address would be GetModuleHandle method
start address (ie: entrypoint ) would be GetModuleHandle -> Process MZ/PE header, read entrypoint from that, and add it to the base..

realcr

Cool , great thanks evlncrn8  :U

realcr.