dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]extracting IL from PE....


From: Rhys Weatherley
Subject: Re: [DotGNU]extracting IL from PE....
Date: Mon, 21 Apr 2003 09:41:22 +1000
User-agent: KMail/1.4.3

On Monday 21 April 2003 04:35 am, Nargis Anjaria wrote:

> i want to read IL from PE through C++( unmanaged code).. but the length of
> header and metadata is variable...so how would i know from where the IL is
> starting ...and more over the IL is not in simple format according to my
> knowledge it is in Hashed format ...so how to get that IL code ...one way
> of doing this is using reflection...but i dont want to use any .NET
> language...isnt there any way around...

The full format is described in Partition II of ECMA 335:

    http://www.ecma.ch/ecma1/STAND/ECMA-335.htm

It is quite complex.  Alternatively, if your project is GPL-compatible, you 
can use the IL reading API's in Portable.NET.  The relevant include files are 
"il_image.h" and "il_program.h".  Wrapping this in C++ shouldn't be too 
difficult if you prefer C++ over C.

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]