This would work for a program i devlope but suppose i want to find and
launch a program not developed by me. Is there a document that explains the
memory layout and where the programs reside in  memory.
> 
> > > In other words, how can i determine the starting address.
> >=20
> > More generally, what are you really trying to accomplish?
> 
>   the best you can do is get a pointer reference to the start()=20
>   function that is built into the program loader using code like
>   this:
> 
>   extern ULong start();
>   {
>     BytePtr startAddress =3D (BytePtr)&start;
>   }
> 
>   if you want to use this to perform 'check sum' checks, then
>   you will have to insert a piece of data at the END of the=20
>   program (maybe a "NULL") - and then search for it. you should
>   be able to work right through your programs address space :)
> 
>   cheers
> 
> az.
> --
> Aaron Ardiri=20
> Java Certified Programmer      http://www.hig.se/~ardiri/
> University-College i G=E4vle     mailto:[EMAIL PROTECTED]
> SE 801 76 G=E4vle SWEDEN      =20
> Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
> Mob: +46 70 656 1143           A/H: +46 26 10 16 11
> 
> 
> 
> 

Reply via email to